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

> pod installエラー「CDN: trunk URL couldn't be downloaded」の解決方法。FlutterでiOSのpods関連の依存関係をpod repo remove trunkで解消します。

- 公開日: 2025-07-23
- 著者: Matsu
- タグ: Flutter
- URL: https://tech.anycloud.co.jp/articles/pod-install-cdn-trunk-url

---

## pod installでエラー

```plaintext
% 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）

```plaintext
% pod repo remove trunk
Removing spec repo `trunk`
```

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

```plaintext
% 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](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](http://net-informations.com/jq/intro/cdn.htm) not working due to DNS issues, try adding directly the url that [cdn.cocoapods.org](http://cdn.cocoapods.org) redirects to, as a source in the top level of your Podfile:
> 
> `source '<https://cocoapods-cdn.netlify.app/'`\>
