17

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?

Sazzad Hissain Khan
  • 37,929
  • 33
  • 189
  • 256

6 Answers6

56

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.

Rob
  • 2,086
  • 18
  • 25
2

What works for me is adding the source 'https://github.com/CocoaPods/Specs.git' at the top of the pod file as follows:

platform :ios, '11.0'
source 'https://github.com/CocoaPods/Specs.git'

then I run this command in the ios root:

pod deintegrate && pod repo remove trunk && pod setup && pod install

Note: install/update cocoapods first by:

sudo gem install cocoapods
Muhamad Jalal
  • 312
  • 2
  • 14
  • I update cocoapods repo manually first by the following command `git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master` then I follow your steps and it works fine, thanks – Muhammad Abu Mandor Jul 03 '23 at 09:31
1

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)

Heedo Kim
  • 87
  • 1
  • 4
  • 16
0

I ran into same issue , following steps helped me to fix these errors-

  1. comment git path for cocoa pods and add path for CDN enter image description here

  2. pod 'TensorFlowLiteSelectTfOps', '~> 0.0.1-nightly'

  3. pod repo remove trunk

  4. pod install

  5. No of errors reduced , keep repeating step 4 until u get no errors and it starts installing pod

enter image description here

Waaheeda
  • 394
  • 3
  • 14
0

if you are on mac

just run

git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master

then go do

pod install
David Machara
  • 559
  • 9
  • 13
0

If none of things works for you then try to update your cocoapods using

sudo gem install cocoapods

It will definitely fix issue. :)

Sudhanshu.B
  • 626
  • 9
  • 22