Xcode 4 hangs at “Attaching to (app name)”

后端 未结 30 3220
执笔经年
执笔经年 2020-11-28 18:20

I just upgraded to Xcode 4 and for some reason my app won\'t run in the simulator or iOS device. It was working perfectly in Xcode 3, but all of a sudden now when I press ru

相关标签:
30条回答
  • 2020-11-28 18:39

    I solved this problem how:

    1) iOS Simulator->Reset Contents and Settings...

    2) Sure project name, scheme name and target name is identical. "AppName" and "Appname" is not true. Must be "AppName" and "AppName", or "Appname" and "Appname".

    3) Restart XCode and Quit Simulator.

    Project name at Build Settings->Product Name.

    Scheme name at Product->Manage Schemes. Click on current scheme once for rename.

    Target name at Column of Project with Targets. Click once on current target for rename.

    Good luck =)

    0 讨论(0)
  • 2020-11-28 18:39

    Under Product > Edit Scheme > Run > Info, changed the Debugger from LLDB to GDB worked perfect for me!

    0 讨论(0)
  • 2020-11-28 18:42

    All of the above suggestion didn't resolve my problem. After I added the Resources folder and and compile, it hangs on attaching to app-name. I removed Resources folder, still hang. I removed the project and recreate a new one ( with the same name ) but still having problem. If it was different name then it's ok. I restarted the OS but still doesn't help.

    To solve the issue, I did the following: 1. ps -ef | grep Xcode, and kill all the "Xcode" processes. 2. Reset the content of Simulator, and quit the Simulator. 3. Product > Clean to clean up the build. 4. Compile and run the product. It should work at this point.

    Hope it helps some else having this similar issue.

    0 讨论(0)
  • 2020-11-28 18:42

    Just came across the same problem: restarting the simulator and Xcode didn't work for me, while restarting my mac worked out pretty well!

    0 讨论(0)
  • 2020-11-28 18:43

    I tried everything in this page, and the "new" solution that worked for me was to go into the simulator, and "Reset Content and Settings" in the iOS simulator main menu.

    0 讨论(0)
  • 2020-11-28 18:44

    If your app still doesn't work after changing Product Name, try to change "Executable file" also. I'd solved same problem with this method.

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