I'm building an app with capacitor for ios. When I launch the command 'npx cap sync ios'
(which launch pod install
) and I get this error :
✖ Updating iOS native dependencies with "pod install" (may take several minutes):
✖ update ios:
[error] Error running update: Analyzing dependencies
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/damien/.cocoapods/repos` or via `pod repo add`.
If i execute the recommandation :
pod repo add trunk https://cdn.cocoapods.org/
I get this error
[!] Repo name `trunk` is reserved for CocoaPods' main spec repo accessed via CDN.
I'm blocked on this issue since 6 hours. I read all post mentionning this error on internet.
pod repo add master https://github.com/CocoaPods/Specs.git
, not working. I tried addsource https://github.com/CocoaPods/Specs.git
in Podfile, not working, I triedpod repo remove trunk
,pod repo add trunk https://cdn.cocoapods.org/
. Neither works. – Book