Xcode Cannot Run on the Selected Destination

后端 未结 30 2272
梦如初夏
梦如初夏 2020-12-02 18:22

I was running my app this morning and now all of a sudden I am getting the following error when I try to run on the iPhone 5.1 simulator.

Cannot run on the selected

相关标签:
30条回答
  • 2020-12-02 18:34

    For me this worked:- Check all you product references are consistent in the settings and plists. Also check the product name does not contain any SPACE or other "illegal" characters.

    0 讨论(0)
  • 2020-12-02 18:34

    try to rename your project. I solved by this way.

    0 讨论(0)
  • 2020-12-02 18:35

    Remove Info.plist from the Copy Bundle Resource build phase.That worked for me!

    0 讨论(0)
  • 2020-12-02 18:36

    In my case, the problem occurs after removing whole Resources folder, copying Resources folder from other or old project over current one then adding back that folder.

    I solve the problem with the help from Analyse tool: after analysing, it warms me about Info.plist inside "Copy Bundle Resources".

    Simply go to Copy Bundle Resource (at Build Phrase tab) delete Info.plist, then restart Xcode, clean and build. My project is back to normal.

    Hope that help someones :)

    0 讨论(0)
  • 2020-12-02 18:38

    You'll be happy to know this problem has a very simple solution. Select Info.plist in your project navigator tree and make sure it is not assigned to a target. I have confirmed this is the correct solution. If building for iOS 6 or earlier you may also need to add armv6 to supported architectures

    0 讨论(0)
  • 2020-12-02 18:38

    I've got this problem after accidentally removing the Resources folder, when I added it again to the project, Bam !

    I'm also running Mountain Lion and XCode 4.4 !

    trying to find out what's causing this, but it seems to be reproduced when you delete then add the info.plist file ! can someone confirm that ?

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