# ✅ 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! ```