17.5 C
Canberra
Thursday, March 19, 2026

ios – Replace SDK platform of xcrun in my CI atmosphere


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

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

[td_block_social_counter facebook="tagdiv" twitter="tagdivofficial" youtube="tagdiv" style="style8 td-social-boxed td-social-font-icons" tdc_css="eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjM4IiwiZGlzcGxheSI6IiJ9LCJwb3J0cmFpdCI6eyJtYXJnaW4tYm90dG9tIjoiMzAiLCJkaXNwbGF5IjoiIn0sInBvcnRyYWl0X21heF93aWR0aCI6MTAxOCwicG9ydHJhaXRfbWluX3dpZHRoIjo3Njh9" custom_title="Stay Connected" block_template_id="td_block_template_8" f_header_font_family="712" f_header_font_transform="uppercase" f_header_font_weight="500" f_header_font_size="17" border_color="#dd3333"]
- Advertisement -spot_img

Latest Articles