Xcode error: the selected launch destination is not valid for this action

my app in 4.3 simulator and device works well. Now I want to test it in simulator 4.0, and I also have device 4.2.1. So I set the goal of deploying ios in 4.0 (I also tried 4.2), but xcode gave me this error: the selected destination is not valid for this action.

Then I added my second iphone to the provisioning profile and I see it on the device in xcode for assembly, but the same thing: the selected launch destination is not valid for this action.

How can I read (or, if you can explain to me) where can I find how to configure a project to run in 4.0 4.2 and 4.3, for example, a simulator?

I try to "click everywhere" also in control circuits, but I can not find anything useful.

thanks in advice.

+3
source share
3 answers

You need to set the target iOS deployment environment for Project and Target objects. When you click the project icon in the project navigator, on the left side you will see two groups: "Project and goals". The project will contain your project, and in the "Goals" section your application and unit test goals will be indicated. Install the iOS deployment in the settings of your project and in the settings of the target (application, not test).

+10
source

You need to change the base SDK for the project:

1) PROJECT_NAME 2) PROJECT_NAME "PROJECT" 3) " " 4) "" → " SDK" → "", " (iOS4.3)" 5) " " → "" → " SDK iOS" Apple Provisioning Profile 6) iPhone/iPad.

Voila!
PS: SDK, 4).

+4

SDK . .

0

All Articles