ARTICLE

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

The original article
Declaration: The author declares this article as original, without the author's consent, please do not re-publish, if re-publish, please indicate the site from where it comes, and the platform reserves the right to investigate legal liability for infringement of rights.

不管是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'

Write your thoughts.
Share views, friendly communication
Please keep friendly, reasonable discussion.
0 Words

No comments, let’s post the first comment.