ARTICLE
CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/0/9/9/libevent/2.1.12/libevent.podspec.json
不管是react native还是单独的iOS中,当使用到iOS的cocoapods管理库时,有时候会遇到"CDN: trunk URL couldn't be downloaded"的错误,这大概是由于jsdelivr的安全策略导致的网络download fail
错误类似如下:

这个时候的解决办法是,修改pod的source,指定从cocoapods的官方仓库进行install。
具体如下:
Podfile
source 'https://github.com/CocoaPods/Specs.git'
截图如下:

Veröffentlicht in2024-03-01 09:46:34
Die Anzahl der Surf1365·
Schreiben Sie Ihre Gedanken
Meinungen zu teilen, freundliche KommunikationKeine Kommentare, erstmals kommentieren.