Post

Replies

Boosts

Views

Activity

Running Watch test target from the command line
We can now create dedicated watch extension unit test targets in XCode 12.5. I've had no trouble getting this to work via XCode, but I'm struggling to work out how to correctly build and run the tests from the command line using xcodebuild. Running the test target using xcodebuild always produces the same error related to unavailable destinations, despite the destination being available. xcodebuild: error: Unable to find a destination matching the provided destination specifier: { name:iPhone 12 Pro Max } The requested device could not be found because no available devices matched the request. Available destinations for the "Tracking" scheme: { platform:iOS Simulator, id:D021919E-4F3C-48CE-A0DF-29051DF0E1A4, OS:14.5, name:iPhone 12 } { platform:iOS Simulator, id:795802A8-C2C6-4AEB-97BD-D2135D2758FB, OS:14.5, name:iPhone 12 Pro } { platform:iOS Simulator, id:6080176F-8319-4726-B487-E764966D34FB, OS:14.5, name:iPhone 12 Pro Max } { platform:iOS Simulator, id:04698195-28BA-487F-88B4-F06854ECCAD8, OS:14.5, name:iPhone 12 mini }
0
0
819
May ’21