How to test against non-iOS17 SDKs with Xcode15 series command line tools?

Hello. I would like to perform UnitTest using the xcodebuild command in Xcode15 series, but it does not work. Specifically, I want to run the test on an iPhone 14 with iOS 16.4 simulator environment, but for some reason it fails due to a certificate mismatch. For some reason I don't want to test on iOS17, so I specify iOS16.4. The following is a pseudo-command to run the test. Thank you!

xcodebuild -workspace AppWorkspace.xcworkspace -scheme App -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 14,OS=16.4" -configuration TestConfiguration test

I’m not 100% sure what you’re looking for but this goal:

How to test against non-iOS17 SDKs with Xcode15 series command line tools?

is not supported. Xcode, and also the Command Line Tools package, only support the SDKs that they include. So, Xcode 15.0 includes the iOS 17.0 SDK and there’s no supported way to use it with any other iOS SDK version, and the same applies to its associated Command Line Tools package.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

How to test against non-iOS17 SDKs with Xcode15 series command line tools?
 
 
Q