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

Posted jisa

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了pod lib lint xxx.podspec 验证出错 Could not find a `ios` simulator相关的知识,希望对你有一定的参考价值。

执行 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 spec lint 失败

pod spec lint - 获取 xcodebuild 注释

Cocoapod“pod spec lint”CompileSwift返回了一个不成功的退出代码

运行“pod spec lint”时出现“错误:预期类型”错误

无法在某些本地化上通过 pod spec lint 验证

tslint 更新错误“找不到模块 'tslint/lib/lint'”