XCode 4 hangs at "Attaching to (app name)"
This is driving me crazy! 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 run the program stops at "Attaching to...". There doesn't seem to be any other info to help with this problem either. Any ideas?
For summary you can try following things to tackle the issue:
Thanks.
Fixed it!! Hopefully this helps some people avoid a very frustrating couple hours. I solved this by:
Hope this helps!
Here was our fix:
In Project > Edit Schemes > Run.
Change the Debugger from GDB
to None
(directly above the green circle in the image above).
A tip I found at the Apple Developer Forums:
Go into your ProjectName.xcodeproj/ directory and delete anything named with your userid. Re-open the project in xcode and all that will get recreated and it should work. At least it did for me.
Another tip is to manually delete the build
directory.
Yet another tip is to navigate to the Organizer (Shift ⇧ Command ⌘ 2 in xcode 4), select Projects, select you application in the left hand side and then the Delete...-button to the right of Derived Data.
And never forget the universally useful tip: restart your computer and try again.
Good luck!
链接地址: http://www.djcxy.com/p/47394.html上一篇: Xcode 4.1多