I’m in the process of moving to Xcode 9 and although CircleCI prints out available simulators that contains:
iPhone 7 (11.0) [EC4E19CC-5F77-4D49-9828-99BC6417B0A8] (Simulator)
when I attempt:
dependencies: pre: # pre-start the simulator - xcrun instruments -w "iPhone 7 (11.0) [" || true
I’m met with:
CoreData: annotation: Failed to load optimized model at path '/Applications/Xcode-9.app/Contents/Applications/Instruments.app/Contents/Frameworks/InstrumentsPackaging.framework/Versions/A/Resources/XRPackageModel.momd/XRPackageModel 9.0.omo' instruments: Waiting for device to boot... 2017-09-21 07:24:07.852 instruments[1071:7816] [MT] iOSSimulator: Could not launch simulator: -10825 2017-09-21 07:24:07.852 instruments[1071:7816] Error encountered while starting session for "iPhone 7 (11.0)" (0D045C34-F3A0-4320-AF2D-C327CE4CEB04): Error Domain=NSOSStatusErrorDomain Code=-10825 "kLSIncompatibleSystemVersionErr: The app cannot run on the current OS version" Instruments Usage Error: No template (-t) specified instruments, version 9.0 (63198) usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument ...]]]
and later on when I attempt to run tests on the same simulator I receive the following error:
[07:29:22]: Ignoring 'iPhone 7 (11.0) [', couldn’t find matching simulator [07:29:22]: Couldn't find any matching simulators for '["iPhone 7 (11.0) ["]' - falling back to default simulator [07:29:22]: Found simulator "iPhone 5 (10.3)"
Another interesting fact, the devices listed when passing an invalid device does not contain an iPhone 5 (10.3) but does contain an iPhone 5 (10.3.1) so I’m not sure where xcrun and xcodebuild are looking for these devices but it doesn’t seem to be the correct location.
Can someone help me find out what I’m doing wrong here?