Run destination is not valid - Deployment target 10.2.1

I want to set my iOS deployment target for a new version of my app to 10.2.1. The app is an enterprise app so we have say over which versions of iOS the iPhones should be running.

I am on Xcode 8.2.1. I installed the iOS 10.2.1 update on my iPhone. I set the iOS Deployment Target to 10.2.1 for the project and the target.

When I try to build & run on my device, Xcode complains with a message that says, "The run destination My iPhone SE is not valid for Running the scheme 'MyApp'."

If I reduce the deployment target to 10.2 it builds and runs.

But I was hoping to use deployment target as an additional means of making sure that iPhones running our enterprise app are on the most secure version of iOS.

Any ideas how to troubleshoot this or workaround it?

Thanks,

Del

Answered by KMT in 207699022

>I set the iOS Deployment Target to 10.2.1 for the project and the target.


While Xcode will collect and process symbol files for x.x.x releases higher than what it offers via DT, I don't think you can scheme for them.


As you discovered, 10.2 (xx.x) is as high as you can go when building for your 10.2.1 device via Xcode 8.2.1. Anything higher and Xcode 8.2.1 won't even see my iPhone w/10.2.1 (√ symbols processed).


Might be a fresh Xcode beta RSN that will handle your goal....


>I was hoping to use deployment target as an additional means of making sure that iPhones running our enterprise app are on the most secure version of iOS.


Not sure I'd use a (singularly) deployed app to enforce that...sounds more like an MDM task.

Accepted Answer

>I set the iOS Deployment Target to 10.2.1 for the project and the target.


While Xcode will collect and process symbol files for x.x.x releases higher than what it offers via DT, I don't think you can scheme for them.


As you discovered, 10.2 (xx.x) is as high as you can go when building for your 10.2.1 device via Xcode 8.2.1. Anything higher and Xcode 8.2.1 won't even see my iPhone w/10.2.1 (√ symbols processed).


Might be a fresh Xcode beta RSN that will handle your goal....


>I was hoping to use deployment target as an additional means of making sure that iPhones running our enterprise app are on the most secure version of iOS.


Not sure I'd use a (singularly) deployed app to enforce that...sounds more like an MDM task.

The latest version of iOS not ever is supported by Xcode, you need to make a downgrade of the device OS

Run destination is not valid - Deployment target 10.2.1
 
 
Q