Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

How are you supposed to test on earlier iOS versions if Xcode is incompatible with them?

My application targets iOS 15+. Attempting to build and run it on my iPhone SE (orphaned at iOS 15.6) results in "Failed to prepare the device for development."

I'm building with Xcode 15.2.

What is the expected procedure here?

Xcode is not incompatible. I just built an app on iPad iOS 15.8 with Xcode 15.0.1 and target set as 14+.

Problem usually due to a version of iOS too recent compared to Xcode. Inverse to what you describe.

See this, could help: https://www.swiftdevjournal.com/dealing-with-failed-to-prepare-device-for-development-error-message-in-xcode/#:~:text=Why%20Are%20You%20Getting%20This,along%20with%20the%20iOS%20SDK.

Thanks, but Xcode 15.2 was more than sufficient to target any version of iOS 15. Per Apple:

Xcode 15.2 includes SDKs for iOS 17.2, iPadOS 17.2, tvOS 17.2, watchOS 10.2, macOS Sonoma 14.2, and visionOS. The Xcode 15.2 release supports on-device debugging in iOS 12 and later

I've since upped my target to iOS 17 so the problem is moot.

How are you supposed to test on earlier iOS versions if Xcode is incompatible with them?
 
 
Q