Xcode cannot run using the selected device after upgrade to Xcode 5.0

后端 未结 8 2029
南笙
南笙 2021-02-02 09:53

I upgraded to xcode 5.0 today. I then pressed play to run my project in the iOS simulator. This initially worked. Then I decided that I wanted to run the profiler. When I did th

相关标签:
8条回答
  • 2021-02-02 10:22

    This issue often occurs after duplicating targets on older projects.

    Set the following in your Info.plist for the target:

    Bundle Name = ${PRODUCT_NAME}
    Bundle Display Name = ${PRODUCT_NAME}
    Executable file = ${EXECUTABLE_NAME}
    

    Build and run with these settings, after a successful build they can be changed to anything you want.

    0 讨论(0)
  • 2021-02-02 10:24

    Check that the Executable File (also known as CFBundleExecutable) in the Info.plist file is set to ${EXECUTABLE_NAME} as opposed to any hardcoded value. This will ensure that even if you change your project name or target name or scheme name, that it still works.

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