美文网首页iOS技术集合
升级Xcode后cocoapods找不到模拟器代码推送失败

升级Xcode后cocoapods找不到模拟器代码推送失败

作者: swift_honor | 来源:发表于2019-04-01 15:38 被阅读200次
image.png
问题描述:

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

相关文章

网友评论

    本文标题:升级Xcode后cocoapods找不到模拟器代码推送失败

    本文链接:https://www.haomeiwen.com/subject/dadvbqtx.html