-
Notifications
You must be signed in to change notification settings - Fork 986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong Cocoapods source url #738
Comments
Thanks for the pointer! Definitively something we should change. Do you happen to know if the new CDN works with older versions of CocoaPods, too? Otherwise, this would be a breaking change. |
Which Cordova-iOS version are you using? Latest release included some fixes for cocoa pods 1.8.0+ Also, I think the source comes from plugins, not from cordova itself. |
I'm using cordova-ios v5.1.1. However, I'm not the only one with that issue, since I discovered the solution by following some other people's advice. Was hard to find though and I don't know where I found it.. |
I don't think it's hanging, it just takes a lot of time as it has to download all CocoaPods (about 10-20 minutes). The CDN is supposed to avoid the downloading, but as I said, the source comes from plugins. But maybe cordova-ios should not write the source if it's the old one and the user is in CocoaPods 1.8.0+ |
To be honest, I have no idea how cocoapods works internally, I just noticed that it didn't work out of the box so i created the issue. It's not just hanging though. Otherwise downloading would take 20+ minutes, which would be weird given that when I change the url it downloads within 10 seconds. |
yeah, if the old url is used, CocoaPods downloads the whole CocoaPods repository into your computer, while the CDN url only download the required dependencies. |
I tried to set new cdn from a virtualized mac OS Catalina commenting out the source line in platforms/ios/Podfile file, to increase the installation time performance to a one minute as pointed on: here are the relevant programs versions: % npm list -g --depth=0 % xcodebuild -version % pod --version pod install takes a minute but it didn't work when later execute
I ended up doing classic installation (pod install from platforms/ios) with default Podfile source, it takes almost 1 hour % du -sh ~/.cocoapods |
Closing as we have bumped the required CocoaPods version in cordova-ios@6 to ensure the CDN is used. |
pod install
hangs at "Downloading specs".This is because the Cocoapods team changed their hosting.
Check this out: LINK
TLRD:
Change the first line of "Podfile" to "source 'https://cdn.cocoapods.org/" instead of the Github thing.
The text was updated successfully, but these errors were encountered: