Post

Replies

Boosts

Views

Activity

Reply to xcodebuild can't find destination for testing but Xcode via UI can
We had a similar issue after updating Xcode to version 15.3 where the command: xcodebuild -scheme AppScheme -destination 'platform=iOS Simulator,id=3ECD61FB-8C8C-44AB-9D9D-27FD1386D261' build test failed with the following error: xcodebuild: error: Unable to find a destination matching the provided destination specifier: { platform:iOS Simulator, id:3ECD61FB-8C8C-44AB-9D9D-27FD1386D261 } Ineligible destinations for the "AppScheme" scheme: [15:40:38]: ▸ { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device, error:iOS 17.4 is not installed. To use with Xcode, first download and install the platform } Our destination was a 17.0.1 simulator which was installed and also listed for xcrun simctl list devices. It turned out that xcodebuild was not able to find any destinations when running: xcodebuild -scheme "MyScheme" -showdestinations Our solution was to ensure that the LATEST Simulator version installed for the Xcode Version, which in this case was iOS 17.4. Maybe this helps others as well ✌️
May ’24