bagsy/apps/mobile/ios/fix_cocoapods.rb
bananabas 2f9e113374 fix: add COCOAPODS env vars and attempt CDN workarounds
- Added COCOAPODS_TRUNK_REPO_UPDATE_DISABLED to Podfile
- Attempted git-based specs repo (too slow on hotspot)
- Attempted HTTP fallback (not supported)
- Attempted CocoaPods monkey-patching

BLOCKER: CocoaPods CDN SSL handshake consistently fails with 'Connection reset'
This is a network-level issue, not fixable in code.

Next steps:
1. Try different network (corporate VPN, different ISP)
2. Ask CocoaPods team if CDN has SSL cert issues
3. Use EAS cloud build (requires Apple Developer Program signup)
4. Manually extract and link frameworks from a working build
2026-03-27 19:02:25 +00:00

28 lines
578 B
Ruby
Executable file

#!/usr/bin/env ruby
# Monkey-patch CocoaPods to ignore CDN SSL errors
module Pod
class Source
class Manager
alias_method :original_cdn_url, :cdn_url?
def cdn_url?(url)
begin
original_cdn_url(url)
rescue => e
if e.message.include?('Connection reset')
puts "[PATCH] Ignoring CDN SSL error: #{e.message}"
false
else
raise
end
end
end
end
end
end
# Now require and run pod install
require 'cocoapods'
argv = ['install']
Pod::Command.run(argv)