xcodebuild: error: Unable to find a destination matching the provided destination specifier:

This message may appear when trying to build an iOS app. Sometimes the simulators are not ready before the build step. In this case, you can pre-start the simulators:

# ...
steps:
  - run:
      name: pre-start simulator
      command: xcrun instruments -w "iPhone 11 Pro (13.3) [" || true

Note: the [ character is necessary to uniquely identify the iPhone 7 simulator, as the phone + watch simulator is also present in the build image:

  • iPhone 11 Pro (13.3) [<uuid>] for the iPhone simulator.
  • iPhone 11 Pro (13.3) + Apple Watch Series 5 - 40mm (6.1.1) [<uuid>] for the phone + watch pair.

You can also add the following run step to check for available simulators:

- run: xcrun simctl list &>/dev/null

 

Was this article helpful?
0 out of 6 found this helpful

Comments

0 comments

Article is closed for comments.