I'm using Visual Studio Team Services to build my app. When I try to run unit tests, I'm getting an error:
xcodebuild: error: option 'Destination' requires at least one parameter of the form 'key=value'
This started after upgrading to Xcode 8.3. The build server has 8.3, but when I run unit tests it wants to use the 8.2 simulator. This fails.
When I try to specify the 8.3 simulator explicitly, using the -destination
switch, it fails.
-destination "platform=iOS Simulator,name=iPad Pro (9.7 inch),OS=10.3"
I've also tried using apostrophes ' around the destination, no quotes or apostrophes, and simulator IDs, but nothing helps. Without quotes, I get this error:
xcodebuild: error: Unknown build action 'Pro'.
Try using double quotes instead of single quotes, like so:
-destination "platform=iOS Simulator,name=iPad Pro (9.7 inch),OS=10.3"
That fixed the same problem for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With