【即解決】pod installでCDN: trunk URL couldn't be downloadedエラー

【即解決】pod installでCDN: trunk URL couldn't be downloadedエラー

pod installでエラー

% pod install --repo-update
....
[!] CDN: trunk URL couldn't be downloaded: <https://cdn.cocoapods.org/Specs/0/3/5/Firebase/12.0.0/Firebase.podspec.json> Response: Error in the HTTP2 framing layer

解決方法(pod repo remove trunk)

% pod repo remove trunk
Removing spec repo `trunk`

上記のコマンドを実行で解消。

% pod install --repo-update
Downloading dependencies
...
Generating Pods project
Integrating client project
Pod installation complete! There are 28 dependencies from the Podfile and 53 total pods installed.

参考サイト

https://github.com/CocoaPods/CocoaPods/issues/10356#issuecomment-908896957

Try using below commands:

pod repo remove trunk

and then

pod install or pod update

Or, cocoapods CDN not working due to DNS issues, try adding directly the url that cdn.cocoapods.org redirects to, as a source in the top level of your Podfile:

source '<https://cocoapods-cdn.netlify.app/'>

記事を書いた人

Matsuura

エンジニア

Matsuura

Anycloudでエンジニアしてます!FlutterやWebフロント、TypeScriptでバックエンド対応。