bagsy/RUBY_SSL_FIX.md
bananabas 66f538049b fix: resolve React Native 0.76 + Expo 55 compatibility for old architecture
- Patch Expo.podspec to conditionally call get_folly_config() only in new arch
- Conditionally require ReactAppDependencyProvider (new arch only)
- Downgrade React Native 0.76.0 (instead of 0.73 which had get_folly_config errors)
- Successfully completed pod install, generated Podfile.lock
- Add postinstall script to apply patches automatically on bun install
- iOS build artifacts ready in Bagsy.xcworkspace
2026-03-27 17:24:57 +00:00

1.4 KiB

✅ SSL Issue Solved - Ruby 4 Fix

The Problem

  • System Ruby 2.6.10 was being used by CocoaPods
  • Ruby 2.6 has outdated SSL/TLS certificate store and broken M1 support
  • CocoaPods SSL handshake to cdn.cocoapods.org was failing: "Connection reset by peer"

The Solution

  • Installed Homebrew Ruby 4.0.2 (modern, M1-native)
  • Created pod alias in ~/.zshrc to use Ruby 4 instead of system Ruby
  • SSL handshake now works! ✓

How It Works

Before (Broken)

$ ruby --version
ruby 2.6.10 (system) ← outdated, SSL broken

$ pod install
[!] Couldn't determine repo type for URL: `https://cdn.cocoapods.org/`: Connection reset by peer - SSL_connect

After (Fixed)

$ pod install  
# Uses Ruby 4 via alias in ~/.zshrc
# SSL connects successfully ✓

What Changed

Added to your ~/.zshrc:

alias pod='/opt/homebrew/opt/ruby/bin/ruby ...' (Ruby 4 wrapper)

Next Steps

The SSL issue is fixed! However, there's now a React Native compatibility issue:

  • ReactAppDependencyProvider spec not found in CocoaPods repo
  • This is a React Native 0.76 + Expo version compatibility issue
  • Can be resolved by downgrading React Native or waiting for Expo updates

For now: Use cloud build (eas build --platform ios) which bypasses local pod install.

Testing

To verify the fix works:

pod install --repo-update
# Should complete without SSL errors!