The selected run destination is not valid for this action

前端 未结 16 2371
抹茶落季
抹茶落季 2020-12-04 16:31

I have opened a project that has always been iphone/ipad. I can\'t build it now because for some reason my only \"Scheme\" option is \"MyApp My Mac 64-bit\". How can I get t

相关标签:
16条回答
  • 2020-12-04 16:41

    I had that issue several times. Basically, just set the Base SDK in Build Settings to Latest OS X and it should work properly.

    0 讨论(0)
  • 2020-12-04 16:44

    I also just ran in to the issue. For me I was trying to "Build for Testing" and was running into this error.

    To fix it I had to "Edit Scheme..." and then in the "Build" dropdown click on "Build" and made sure to check the "Test" checkbox for the Target.

    enter image description here

    0 讨论(0)
  • 2020-12-04 16:45

    Deployment target is missing for specified SDK ...

    Choose other "Deployment Target" (in the Build settings) and simulator will appear.

    Note:It's happening when use 5.1 SDK(latest) with XCode 4 on Snow Leopard..

    0 讨论(0)
  • 2020-12-04 16:47

    I have the same problem, it appears that you also made the jump with the new Xcode 4 upgrade and this appears to be a code incompatibility.

    If you want to keep it for IOS (Iphone / Imac ) edit Scheme [Product/Edit Scheme/ Build/ build => Destination drop down list.

    Make sure you have installed the Ios SDK before running Xcode.

    Elsewhere if you have to compile the same app for the Mac, I'd like also to know the answer as this generate the same errors as you.

    0 讨论(0)
  • 2020-12-04 16:48

    The above solutions didn't work for me because Xcode 4 didn't give me any choices to go back to iOS. I closed Xcode, opened it again, and then it worked!

    0 讨论(0)
  • 2020-12-04 16:48

    I had similar issue recently. Got it solved by doing some changes in Base SDK of Project. Following are steps :

    1. Click on the top-level project icon in the left hand panel
    2. In the right hand panel that appears, select Build Settings (near the top).
    3. Select "All" option (instead of Combined)
    4. Ensure Base SDK is set appropriately, like "OS X 10.7", "Latest iOS(6.1)" etc.
    0 讨论(0)
提交回复
热议问题