The selected run destination is not valid for this action

前端 未结 16 2456
抹茶落季
抹茶落季 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:32

    Tried the rest of these with no joy.

    AFIAK this is a version control problem, in general not just a Git problem!

    I gave a colleague a copy of a project that had modified files in it and this problem occurred.

    However when I committed/updated the repo and gave him fresh copy.

    This problem was fixed!

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

    I just installed Xcode 4.1 (painful!) and when I opened one of my apps that built fine before the upgrade, the only active scheme was "My 64-bit Mac". In this case, the required change was to Edit Schemes, and for the Build scheme's Info tab, set the Executable dropdown to my target. It was set to None. As soon as I did that, the simulator/device showed up instead.

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

    I ran in to this issue recently and i solved it by changing the value of the executable from "None" to "AppName.app" on xcode.

    You should change:

    Product > Edit scheme -> Run AppName.app -> Info tab -> Executable -> None

    to:

    Product > Edit scheme -> Run AppName.app -> Info tab -> Executable -> AppName.app

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

    For me I had to combine a couple of the solutions here to get it to work. For me the Project Build Settings were set to "Latest iOS" already.

    To fix it, I had to change it to "OS X 10.6", then build the app (it will fail to build), then set it back to "Latest iOS", which now works again.

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

    Have you tried editing the Scheme? (I'm assuming you are running XCode 4). I believe you just might need to set the "Base SDK" setting to "iphoneos" (this translates to "Latest iOS").

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

    I've just got this error, for me it was because of some reasons my device name didn't appear in xcode devices dropdown, just a generic name. Unplugged and plugged back the device and was fine.

    0 讨论(0)
提交回复
热议问题