LoginSignup
3
0

More than 3 years have passed since last update.

Carthage の "Could not find any available simulators for iOS" というエラー対応方法

Last updated at Posted at 2019-04-12

とりあえずバージョンをあげる

$ brew upgrade carthage

でとりあえずCarthageを最新のバージョンにします。

fastlaneを使う

Carthageの古いバージョンから、19/4/12現在 最新のCartahge v0.33.0 にしても、

$ carthage build --platform iOS

などしている最中に

Could not find any available simulators for iOS

というエラーで怒られるときは、

$ fastlane snapshot reset_simulators

fastlaneを使ってシミュレーターの再インストールをすると良いです。

CI上でこのエラーが発生している場合

$ fastlane snapshot reset_simulators --force

のように --force オプションをつけると、コマンドライン上で確認が発生せず、「キー入力待ち」状態にならずに reset_simulators してくれます。
「キー入力待ち」状態になってしまうとJenkinsビルドが止まってしまうので、この方法がよろしいかと思います。

参考リンク

carthage build command complains about "Could not find any available simulators for iOS" · Issue #2602 · Carthage/Carthage · GitHub
https://github.com/Carthage/Carthage/issues/2602#issuecomment-426956743

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0