pod install的时候遇到的问题:
[!] CDN: trunk Repo update failed - 2 error(s):
CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/1/1/7/SDWebImage/5.13.3/SDWebImage.podspec.json Response: Timeout was reached
CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/1/1/7/SDWebImage/5.13.4/SDWebImage.podspec.json Response: Timeout was reached
[!] Automatically assigning platform `iOS` with version `11.0` on target `JDDDemo` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
自己的测试项目,好久没用了,从线上clone下来之后,需要先执行一下
pod install
然后没有按着想像的那样正常走下去,而是报了个这样的错
[!] CDN: trunk Repo update failed - 2 error(s):
CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/1/1/7/SDWebImage/5.13.3/SDWebImage.podspec.json Response: Timeout was reached
CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/1/1/7/SDWebImage/5.13.4/SDWebImage.podspec.json Response: Timeout was reached
[!] Automatically assigning platform `iOS` with version `11.0` on target `JDDDemo` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`
按着提示去到https://guides.cocoapods.org/syntax/podfile.html#platform看了下,大致意思是需要指定平台。打开项目的podfile,如下,将箭头指出的这句注释给解开,好像改不改这个9.0,都可以顺利的pod install下来了。
文章来源地址https://www.toymoban.com/news/detail-559832.html
下图是我遇错的截图:
文章来源:https://www.toymoban.com/news/detail-559832.html
到了这里,关于pod install 时遇到 Automatically assigning platform `iOS` with version `11.0` on target XXX......的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!