'Cocoapods: Unable to add a source with url `https://cdn.cocoapods.org/` named `trunk`
Unable to install pods in the project.
Getting the following error:
[!] Unable to add a source with url https://cdn.cocoapods.org/ named trunk.
You can try adding it manually in /Users/comp-user/.cocoapods/repos or via pod repo add.
I tried using pod install command but failed to install pods.
Solution 1:[1]
Add `source 'https://github.com/CocoaPods/Specs.git' in your pod file.
E.g.:
....
platform :ios, '11.0'
source 'https://github.com/CocoaPods/Specs.git'
target 'ProjectTech' do
use_frameworks!
....
This resolves the above issue.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Avinash |
