-
Notifications
You must be signed in to change notification settings - Fork 10
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
CocoaPods CDN Returns 403 Error While Fetching EmbraceIO Pod Source #167
Comments
Hey @lasha-dave ! Thanks for submitting the issue. Gonna give a bit of context: Context:This issue occurs because, for some reason, the CocoaPods CDN didn't update correctly (yet), even though we updated all podspecs with the new download URLs a while ago (as you can see, for example, for the official 5.25.2 podspec). This means that some users are still retrieving an outdated version of the podspec, leading to requests being made to the old Amazon S3 URL (the correct URL is Unfortunately, this is out of our control since it is related to how CocoaPods manages caching, both locally and on its CDN. Solutions:Switch to the Git-based CocoaPods Specs repoAs you pointed out, one of the easiest solutions is to bypass the CDN entirely by explicitly specifying the Git-based CocoaPods specs repo in your Podfile:
And then run pod repo update ; pod install
# Other would be
# pod install --repo-update but I prefer the aforementioned one to see the problems the update could have) Clear the CocoaPods local cacheAlternatively, you can try clearing the local CocoaPods cache to force an update (but, considering the CDN is also caching, there's a possibility it won't help at all):
or the more aggressive approach (be cautious as this removes all repos, including private ones):
Upgrade to version 6.x or laterAnother option is to update to version The reason this works is that the TL;DR: Since this is a caching issue on CocoaPods side, there’s not much we can do to force an immediate fix, but the above solutions should help resolve it. |
@ArielDemarco Thank you for providing such a thorough and detailed response! |
Issue
When attempting to install the EmbraceIO (v5.25.2) using Cocoapods, the process fails due to a 403 error returned by the CDN when accessing the source file.
However, the pod successfully downloads when fetching from the https://github.com/CocoaPods/Specs.git repository.
Details
https://cdn.embrace.io/ios-sdk/EmbraceIO-5.25.1.zip
Potential Causes:
Environment
OS: Apple M2 Pro
Xcode Version: 16.0
Cocoapods Version: 1.16.2
Ruby Version: 3.1.4
The text was updated successfully, but these errors were encountered: