问题描述:
pod lib lint
出现如下提示(找不到模拟器)
- ERROR | [iOS] unknown: Encountered an unknown error (Could
not find a `ios` simulator (valid values: com.apple.coresimulator.simruntime.ios-10-0,
com.apple.coresimulator.simruntime.ios-12-2, com.apple.coresimulator.simruntime.tvos-12-
2, com.apple.coresimulator.simruntime.watchos-5-2). Ensure that Xcode -> Window ->
Devices has at least one `ios` simulator listed or otherwise add one.) during validation.
解决方案
升级cocoapods即可解决 sudo gem install cocoapods
特别提醒
gem的源 https://gems.ruby-china.org/已经更改为https://gems.ruby-china.com/
列出所有的源
gem sources -l
更换源
gem sources --add https://gems.ruby-china.com --remove https://rubygems.org/
更新缓存
gem sources -u