In my CI atmosphere I’m working following command:
/Purposes/Xcode.app/Contents/Developer/usr/bin/xcodebuild clear -project Landmarks.xcodeproj -scheme Landmarks -destination "platform=iOS Simulator,identify=iPhone 17 Professional,OS=26.3"
Which provides following output:
09:49:00 xcodebuild: error: Unable to discover a machine matching the offered vacation spot specifier:
09:49:00 { platform:iOS Simulator, OS:26.3, identify:iPhone 17 Professional } 09:49:00
09:49:00 The requested machine couldn't be discovered as a result of no obtainable gadgets matched the request.
09:49:00
09:49:00 Ineligible locations for the "Landmarks" scheme:
09:49:00 { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, identify:Any iOS Machine, error:iOS 26.2 isn't put in. Please obtain and set up the platform from Xcode > Settings > Elements. }
I observed that I’ve the “mistaken” sdk platform 26.2 however Xcode 26.3:
> xcode-select --version
09:47:48 xcode-select model 2410.
> xcodebuild -version
09:47:48 Xcode 26.3 <----- 26.3
09:47:48 Construct model 17C529
> xcodebuild -showsdks
09:47:49 DriverKit SDKs:
09:47:49 DriverKit 25.2 -sdk driverkit25.2
09:47:49
09:47:49 iOS SDKs:
09:47:49 iOS 26.2 -sdk iphoneos26.2
09:47:49
09:47:49 iOS Simulator SDKs:
09:47:49 Simulator - iOS 26.2 -sdk iphonesimulator26.2
.
.
.
> xcrun --find xcodebuild
/Purposes/Xcode.app/Contents/Developer/usr/bin/xcodebuild
> xcrun --show-sdk-path
/Purposes/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
> xcrun --show-sdk-platform-version
26.2
I do assume I acquired the right model of simulator put in:
xcrun simctl record
09:47:49 == Gadgets ==
09:47:49 -- iOS 26.3 --
09:47:49 iPhone 17 Professional (9B635DA7-3351-4A85-8E45-391134BA1903) (Shutdown)
.
.
.
The easiest way ahead might be to attempt to improve the SDK to match 26.3 proper?
However I feel I additionally need to have the chance to run my apps on older variations, so I want to set up older simulators additionally.
The difficult half is that I want to have the ability to do all of the installations and upgrades by way of the terminal. As a result of this MAC act as a agent in a Jenkins CI atmosphere and I shouldn’t have entry to the bodily MAC pc. So I assume my query is how do I replace the SDK by way of comman line instruments within the terminal?
The larger image of this job is I need it to provide IPA-files from tasks after which we set up these in a MDM/In-Home evironment. I, in fact, get the identical error when I attempt to run archive:
/Purposes/Xcode.app/Contents/Developer/usr/bin/xcodebuild archive -archivePath ...
I do surprise if this has one thing to do with the issues in my construct, I can se duplicate and even triplets of the identical runtimes:
10:52:21 == Runtimes ==
10:52:21 iOS 26.3 (26.3.1 - 23D8133) - com.apple.CoreSimulator.SimRuntime.iOS-26-3
10:52:21 iOS 26.3 (26.3.1 - 23D8133) - com.apple.CoreSimulator.SimRuntime.iOS-26-3
10:52:21 iOS 26.3 (26.3.1 - 23D8133) - com.apple.CoreSimulator.SimRuntime.iOS-26-3
10:52:21 tvOS 16.0 (16.0 - 20J373) - com.apple.CoreSimulator.SimRuntime.tvOS-16-0
10:52:21 tvOS 26.2 (26.2 - 23K51) - com.apple.CoreSimulator.SimRuntime.tvOS-26-2
10:52:21 tvOS 26.2 (26.2 - 23K51) - com.apple.CoreSimulator.SimRuntime.tvOS-26-2
10:52:21 watchOS 9.0 (9.0 - 20R362) - com.apple.CoreSimulator.SimRuntime.watchOS-9-0
10:52:21 watchOS 26.2 (26.2 - 23S303) - com.apple.CoreSimulator.SimRuntime.watchOS-26-2
10:52:21 watchOS 26.2 (26.2 - 23S303) - com.apple.CoreSimulator.SimRuntime.watchOS-26-2
