- 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
51 lines
1.4 KiB
Markdown
51 lines
1.4 KiB
Markdown
# ✅ 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`:
|
|
```bash
|
|
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:
|
|
```bash
|
|
pod install --repo-update
|
|
# Should complete without SSL errors!
|
|
```
|