最近执行pod install安装第三方库的时候,报了下面的错误:
Unable to add a source with url 'https://cdn.cocoapods.org/` named 'trunk'.You can try adding it manually in‘/Users/long/.cocoapods/repos ’ or via `pod repo add` .
查询发现这个cdn访问的问题。需要换cdn。
执行下面的语句
pod repo add-cdn trunk https://cdn.cocoapods.org/
参考链接
https://stackoverflow.com/questions/60884826/unable-to-add-a-source-with-url-https-cdn-cocoapods-org-named-trunk