iis服务器助手广告广告
返回顶部
首页 > 资讯 > 移动开发 >pod install 时遇到 Automatically assigning platform `iOS` with version `11.0` on target XXX......
  • 715
分享到

pod install 时遇到 Automatically assigning platform `iOS` with version `11.0` on target XXX......

cocoapods 2023-09-14 16:09:04 715人浏览 八月长安
摘要

pod install的时候遇到的问题: [!] CDN: trunk Repo update failed - 2 error(s): CDN: trunk URL couldn't be downloaded: https://c

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`.

自己的测试项目,好久没用了,从线上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 reachedCDN: 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`

按着提示去到https://guides.cocoapods.org/syntax/podfile.html看了下,大致意思是需要指定平台。打开项目的podfile,如下,将箭头指出的这句注释给解开,好像改不改这个9.0,都可以顺利的pod install下来了。

 

下图是我遇错的截图:

 

来源地址:https://blog.csdn.net/jdd92/article/details/127446216

--结束END--

本文标题: pod install 时遇到 Automatically assigning platform `iOS` with version `11.0` on target XXX......

本文链接: https://www.lsjlt.com/news/407499.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作