react-native: Unable to add a source with url `https://cdn.cocoapods.org/` named `trunk`
Description
Init ios project failed on pod install
React Native version:
“react-native”: “0.63.2”
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
1.
react-native init AwesomeProject
error Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template.
Please try again manually: “cd ./AwesomeProject/ios && pod install”.
cd ./AwesomeProject/ios && pod install
2.
Stanimirs-Mac-mini:ios sytolk$ `pod install`
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `Folly` from `../node_modules/react-native/third-party-podspecs/Folly.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
Cloning spec repo `trunk` from `https://cdn.cocoapods.org/`
[!] Unable to add a source with url `https://cdn.cocoapods.org/` named `trunk`.
You can try adding it manually in `/Users/sytolk/.cocoapods/repos` or via `pod repo add`.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 23
- Comments: 39 (2 by maintainers)
99% there’s a CDN issue. The temporary workaround is to insert into the podfile this:
Once the CDN issue is solved just leave :
source 'https://cdn.cocoapods.org/'
I have the same problem. Tried with 1.8 and with the new 1.9.3 but I can’t install any pods 😦
This is not fixed
This is not a react native specific issue, but is due to CocoaPods CDN being down
Worked for me thank you - cloning the repo also took upwards of 10+ minutes for me.
I have add:
pod repo add-cdn trunk 'https://cdn.cocoapods.org'
now its have:I can’t see where you added that but. add
source 'https://github.com/CocoaPods/Specs.git'
afterplatform :ios, '9.0'
Also working for me as of Dec 2020 on a Windows 10 box.
I have a faster connection and it took 10 minutes. Don’t know what to say
Same for me!
@DanielZanchi I did:
The same result:
Pod 1.9.3 - maybe this is my trouble?
Sorry, @DanielZanchi - what Podfile to fix?
I added
source 'https://github.com/CocoaPods/Specs.git'
toios/Podfile
- doesn’t helpin case adding
source 'https://github.com/CocoaPods/Specs.git'
doesnt work for you, try to erase trunk from cocoapods reposrm -rf ~/.cocoapods/repos/trunk
I am getting the same issue: