码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2019-07-26 19:21:00      阅读:135      评论:0      收藏:0      [点我收藏+]

标签:xcode   nbsp   app   ast   sudo   ensure   https   dsp   could   

执行 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

标签:xcode   nbsp   app   ast   sudo   ensure   https   dsp   could   

原文地址:https://www.cnblogs.com/jisa/p/11252007.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!