MacOS app does not run on the Xcode simulator

前端 未结 10 1046
抹茶落季
抹茶落季 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-14 00:09

    I had the same issue in late 2017 with Xcode 9.2.

    I had to uncheck 'Debug Executable' and then my app was able to both run and stop.

    You can open the settings by clicking Product -> Scheme -> Edit Scheme...

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

    Simple

    Select the desired active scheme and device/simulator from the toolbar (next to the "play" and "stop" buttons).

    The scheme selection should look something like below where the name is that of the appropriate target.

    Set proper scheme and device/simulator.

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

    I had similar problems. I found that the problem was in ~/.gdbinit file. And a second time - at the window initialization function loadWithNibName/initWithWindow (wrong name nib file or frame properties). Also check the file Info.plist in your project (parameters "Main nib file base name" and "Principal class").

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

    Try removing the dev tools by running

    sudo Developer/Library/uninstall-devtools --mode=all
    

    in Terminal. This will properly remove all components of the dev tools, including the command-line components.

    You can then try a re-install.

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