pod lib lint xxx.podspec 验证出错 Could not find a `ios` simulator

pod lib lint xxx.podspec 验证出错 Could not find a `ios` simulator,第1张

概述执行 pod lib lint 时,报错: ERROR | [iOS] unknown: Encountered an unknown error (Could not find a `ios` simulator (valid values: com.apple.coresimulator.simruntime.ios-10-3, com.apple.coresimulator.simrunti

执行 pod lib lint 时,报错:

ERROR | [iOS] unkNown: Encountered an unkNown error (Could not find a `ios` simulator (valID values: com.apple.coresimulator.simruntime.ios-10-3,com.apple.coresimulator.simruntime.ios-12-1,com.apple.coresimulator.simruntime.ios-8-1,com.apple.coresimulator.simruntime.tvos-12-1,com.apple.coresimulator.simruntime.watchos-5-1). Ensure that Xcode -> Window -> Devices has at least one `ios` simulator Listed or otherwise add one.

 原因rubygem源发生变化

 https://gems.ruby-china.org/ 域名不可用 要换成 https://gems.ruby-china.com/

移除旧源添加新的ruby源

gem sources --add https://gems.ruby-china.com/ --remove https://gems.ruby-china.org/

查看ruby源是否替换成功

gem sources -l

如果替换成功,重新初始化cocoapods

sudo gem install cocoapods

总结

以上是内存溢出为你收集整理的pod lib lint xxx.podspec 验证出错 Could not find a `ios` simulator全部内容,希望文章能够帮你解决pod lib lint xxx.podspec 验证出错 Could not find a `ios` simulator所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1005024.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存