Xcode 10.0 Beta 5 Released

Here’s my current workaround:

  1. Use xcrun simctl boot "iPhone 8" to pre-boot the simulator, rather than using Instruments.
  2. Grab hold of the first simulator ID into an enviroment variable:
    SIMULATOR_ID=`xcrun instruments -s devices | grep -m 1 "iPhone 8 (12.0)" | cut -d "[" -f 2 | cut -d "]" -f 1
  3. Use the env variable in the xcode test command: -destination "platform=iOS Simulator,OS=latest,id=$SIMULATOR_ID"