MacOS app does not run on the Xcode simulator

前端 未结 10 1045
抹茶落季
抹茶落季 2020-12-13 23:39

I\'ve installed Xcode 4.2.1 on Mac OS X Lion.

When I create a new (Mac OS X Cocoa) project and I click \"Run\", Xcode says build succeeded, but does

相关标签:
10条回答
  • 2020-12-13 23:58

    Do you have the correct project selected to run?

    Click on the project name next to the stop button (top left). Are there multiple projects listed? Do you have the correct one selected?

    0 讨论(0)
  • 2020-12-13 23:58

    Xcode 10.2

    Steps:

    1. Product -> Scheme -> Edit Scheme
    2. Run
    3. Info
    4. Executable -> Yourproject.app
    5. Run whole project again

    Screenshot:

    0 讨论(0)
  • 2020-12-14 00:02

    I had a similar problem with Xcode 4.5.2.

    To fix it I had to go to the menu Product > Edit Scheme... > Select "Run " (in the sidebar) > Info (tab). In here is a drop down box labeled Executable, select it and choose your app that you wish to launch when the Run button is clicked.

    0 讨论(0)
  • 2020-12-14 00:04

    I know this is a well accepted answered question, however for those who are building / running on a physical device

    SOLUTION: Hard-restart the device, then clean the project in Xcode ⇧+⌘+K.

    I think the bundle gets confused causing Xcode to "think" it already ran the project, therefore showing "Finished" instead of launching whichever application you selected to run.

    0 讨论(0)
  • 2020-12-14 00:05

    I messed up my settings and had this same issue - builds the app but doesn't launch (either in the simulator or the device).

    The answer Product > Edit Scheme got me half way there - then choose Run {your app} on the left. There is a launch Automatically radio button to check: enter image description here

    0 讨论(0)
  • 2020-12-14 00:06

    Check if your project has entitlements enabled. Sandbox or iCloud or both.

    If you have that enabled and you dont have an appropriate cert from the Dev portal your app will build but not launch.

    Switch the entitlements off if you are not actively developing functionality around them.

    The Console app will show this up as a permissions failure. But oddly not the Xcode debug console.

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