xcode error: The selected run destination is not valid for this action
my app in 4.3 simulator and device work well. Now i want to test it in 4.0 simulator and i have also 4.2.1 device. So i set ios deployment target to 4.0 (tried also 4.2), but xcode give me that error :The selected run destination is not valid for this action.
Then i added my second iphone to provisioning profile and i see it in device in xcode for build but same thing: The selected run destination is not valid for this action.
How can i read (or if one can explain me) where to find how to setup project for run in 4.0 4.2 and 4.3 simulator for example?
I'm trying to "click everywhere" also in manage schemes but can't 开发者_开发知识库find nothing usefull.
Thx in advice.
You need to set the iOS Deployment Target on both the Project and the Target items. When you click the project icon in the Project navigator, on the left side you will se two groups, Project and Targets. Project will contain your project, and the Targets section will have your app and unit test targets. Set the iOS Deployment on your project settings and in the target (app, not tests) settings.
You need to change the base SDK for the project:
Voila!
PS: You should be able to see all the SDKs that you have installed on step 4).
Check your SDK and sign in identity in your build configuration. That's how I solved this issue.
精彩评论