Unable to build using Xcode 4 - The selected run destination is not valid for this action

后端 未结 12 2303
耶瑟儿~
耶瑟儿~ 2021-01-30 21:44

So I\'m horribly confused by this error, other threads on Stack Overflow mention I should set the SDK, but I see no option to do this. I\'m trying to build:http://wafflesoftwar

12条回答
  •  误落风尘
    2021-01-30 21:51

    Firstly, I have observed that when Xcode 4 decides my Mac is 64 bit and all my other schemes have vanished, a restart of Xcode fixes that.

    If you still have the issue after a restart, go to Manage Schemes... (under the Product Menu) and click on Autocreate Schemes now button. Try to delete the other schemes and see if you can run the project now.

    However, if the issue is that you need to set the SDK, that's different:

    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".

    FWIW I'm seriously considering reverting to Xcode 3.2.5 at the moment, 4 seems horrendously buggy.

提交回复
热议问题