ERROR | [iOS] unknown: Encountered an unknown error (Could not find a `ios` simulator (valid values:

ZY_FlyWay發表於2019-04-23

環境:

os:Mac os Mojave10.14.4
Cocospod:1.6.0beta

 

操作:

pod spec lint

 

錯誤:

ERROR | [iOS] unknown: Encountered an unknown error (Could not find a `ios` simulator (valid values: com.apple.coresimulator.simruntime.ios-12-1, 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.

 

資料分析(作者issue):

很多人發生了這個問題。

https://github.com/CocoaPods/fourflusher/issues/18
https://github.com/CocoaPods/CocoaPods/issues/8458

解決辦法:

1.升級Cocospod
2.更新fourflusher 2.2.0

本文更新到1.6.1解決,更新操作傳送門

相關文章