ARTICLE

CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/0/9/9/libevent/2.1.12/libevent.podspec.json

Original Artikel
Erklärung: Der Autor erklärt, dass dieses Artikel ursprünglich ist, ohne Zustimmung des Autors, nicht neu veröffentlicht, wenn neu veröffentlicht wird, muss diese Website anzeigen, und die Plattform behält sich das Recht vor, die gesetzliche Verantwortung für Verstöße zu verfolgen.

不管是react native还是单独的iOS中,当使用到iOS的cocoapods管理库时,有时候会遇到"CDN: trunk URL couldn't be downloaded"的错误,这大概是由于jsdelivr的安全策略导致的网络download fail

错误类似如下:
CDN: trunk URL couldn't be downloaded

这个时候的解决办法是,修改pod的source,指定从cocoapods的官方仓库进行install。

具体如下:

Podfile Copy
source 'https://github.com/CocoaPods/Specs.git'

截图如下:
source 'https://github.com/CocoaPods/Specs.git'

Schreiben Sie Ihre Gedanken
Meinungen zu teilen, freundliche Kommunikation
Bitte bleiben Sie freundlich und vernünftig diskutiert
0 Worte

Keine Kommentare, erstmals kommentieren.