Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcodebuild: error: option 'Destination' requires at least one parameter of the form 'key=value'

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'.
like image 393
Mike Taverne Avatar asked May 15 '17 22:05

Mike Taverne


1 Answers

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.

like image 65
dmeyerson Avatar answered Sep 29 '22 23:09

dmeyerson