Alex Rivera | Logout

Xcode 4 hangs at "Attaching to (app name)"

Asked 2011-03-21T20:03:05.900
209

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.

For summary you can try following things to tackle the issue:

  1. Restart the simulator.
  2. Make sure that you haven't included the Info.plist file in your Building Phases -> Copy Bundle Resources.
  3. Resources folder added to the project as a folder reference (the blue folder icon). That caused the trouble, after adding the folder as a group the problem went away.
Edit
Report

3 Answers

0

I think it can be a simulator problem. If your application was built on an old simulator and you are trying to run on the old simulator but your xcode version is new, try to switch your simulator to new version

answered 2012-04-11T08:28:22.503
0

Solved here using Xcode 4.3.3 repairing disk permissions.

answered 2012-07-17T15:19:09.203
0

I had the problem that in Xcode 4.2 on Snow Leopard 10.6.8 when trying to use GDB as Debugger, it would just show "Running..." but non of the breakpoints would actually work. In fact debugging of the app wouldn't even start.

A quick glimpse at Activity Monitor revealed gdb-i386-apple-darwin would hang at 100% CPU activity.

For me the solution was to reset my heavily customized ~/.gdbinit file (several thousand lines long) which would otherwise work fine when gdb is launched from the command line. As soon as I renamed that file so GDB wouldn't load it everything worked fine.

For the record I had that gdbinit file mess up GDB in Xcode 3.2.6 and Xcode 4.2 on the same machine.

answered 2013-06-25T03:12:16.270

Your Answer