CDN: trunk Repo update failed - 12 error(s): - macos

Getting error when I tried to update pod,
pod update
Error found,
[!] CDN: trunk Repo update failed - 12 error(s):
CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/9/b/5/FBSDKCoreKit/6.1.0-alpha/FBSDKCoreKit.podspec.json Response: Timeout was reached
However, I can access the json path smoothly from my browser.
How to resolve this?

I have same issue like yours, I fixed it by running:
pod repo remove trunk and then pod install, once these are complete I ran pod update and it updated everything.

I ran into same issue , following steps helped me to fix these errors-
comment git path for cocoa pods and add path for CDN
pod 'TensorFlowLiteSelectTfOps', '~> 0.0.1-nightly'
pod repo remove trunk
pod install
No of errors reduced , keep repeating step 4 until u get no errors and it starts installing pod

I got this error with FirebaseRemoteConfig 7.1.0.
In my case, above answers didn't work.
pod repo remove trunk
Add GitHub path to Podfile
But it was resolved after I ate dinner... (maybe caused by CDN server)

if you are on mac
just run
git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master
then go do
pod install

If none of things works for you then try to update your cocoapods using
sudo gem install cocoapods
It will definitely fix issue. :)

Related

CocoaPods trunk no Specs

I installed Cocoapods v1.7.0 on Mac Catalina 10.15.7 (19H2). Now I'm upgrading Cocoapods to v1.10.0.
Firstly I uninstall v1.7.0 following https://superuser.com/a/686319.
Then install v1.10.0 with no issue:
sudo gem install cocoapods
In my project folder, I run pod repo update:
$pod repo update  ✔  6s  17:17:13
Updating spec repo `trunk`
$pod repo update  ✔  3s  17:34:21
It only takes 3s with no issue, but I get nothing in folder ~/.cocoapods/repos/trunk/Specs(empty folder):(
Then as you may already know it cannot find any spec when running pod install:
pod install --repo-update
Updating local specs repositories
Adding spec repo `trunk` with CDN `https://cdn.cocoapods.org/`
Analyzing dependencies
[!] Unable to find a specification for `Firebase/Analytics`
You have either:
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
Note: Not pod Firebase/Analytics issue, tried other pods also got this error.
Any suggestion to fetch Cococapods CDN trunk Specs normally? Thanks in advance.
It's working by uninstalling CocoaPods v1.10.0 & then installing v1.8.0.
Don't know the root cause yet, guess have to install the first CocoaPods version with CDN.

iOS : How to get updated version of cocoapods in swift

I have created my own Cocoapod. When I released a new version, then it should be available for the users. I have pushed the latest changes to git Cocoapods repository. Then I ran the command:
pod update
It showing the message for latest version update. But I am not getting the changes in my pod.
1: Run this command in terminal to update pod repo in your system
pod repo update
2: Then run
pod deintegrate
pod clean
pod install

how to call 'pod setup' with cocoapods 0.39

I am using cocoapods 0.39 and i am getting a '1.0 required' error.
[!] The `master` repo requires CocoaPods 1.0.0 -  (currently using 0.39.0)
Update Cocoapods, or checkout the appropriate tag in the repo.
Error when running pod install explains how to make pod install command work, but I can't figure out how to succesfully pass pod setup as it seems to have the new repo build-in
Here is some info about what happened.
http://blog.cocoapods.org/Sharding/
Just replace the current source in your Podfile with this:
https://github.com/CocoaPods/Old-Specs
Then run pod install.
you can just execute this commande :
sudo gem install cocoapods
For others who are facing the same problem, write following command in terminal
sudo gem install -n /usr/local/bin cocoapods
if you need to run pod setup with 0.39 call this instead:
(cd ~/.cocoapods/repos && git clone https://github.com/CocoaPods/Specs.git && mv Specs master && cd master && git checkout v0.32.1)
for making pod install follow my link in the original post or look at Mereuta's answer.

CocoaPods Pod trunk delete not work

when I do:
$ pod --version
0.39.0
but if I try:
$ pod trunk delete
[!] Unknown command: delete Did you mean: register
Usage:
$ pod trunk COMMAND
Interact with the CocoaPods API (e.g. publishing new specs)
Commands:
+ add-owner Add an owner to a pod
+ info Returns information about a Pod.
+ me Display information about your sessions
+ push Publish a podspec
+ register Manage sessions
+ remove-owner Remove an owner from a pod
Options:
--silent Show nothing
--verbose Show more debugging information
--no-ansi Show output without ANSI codes
--help Show help banner of specified command
Delete isn't a command for trunk.
You have a list of valid commands in your post.
It looks like the CocoaPods documentation for pod trunk delete is referring to the command which has been added in the (currently unreleased) CocoaPods 1.0 beta. You can see in the cocoapods-trunk changelog that this command has been added. Once that is released you'll be able to use it. In the meantime you could install the beta with
[sudo] gem install cocoapods --pre
The command pod trunk is for the third-party libraries which are upload to cocoapods by yourselves.
And if you want to delete a version of your third-party library like ABCManager(v1.0.2),you can type this:pod trunk delete ABCManager v1.0.2 and your library of version v1.0.2 will be deleted.

Install CocoaPods error

When I write pod install in terminal I have:
Setting up CocoaPods master repo
[!] The master repo is not a git repo.
What does mean? How to repair?

Resources