Game crashes when I attempt to attach MonoDevlop debugger

I used to be able to do script debugging on device on the very rare occasions when I needed to. Lately I always seem to crash when I attempt to attach MonoDevelop to the Xcode-iOS process. This used to work fine, but seems broken now. I’m still on version 4.0.1 because of issues with 4.1.

Here is the dump I get in XCode:

libsystem_kernel.dylib`__semwait_signal:
0x395c568c:  mov    r12, sp
0x395c5690:  push   {r4, r5, r6, r8}
0x395c5694:  ldm    r12, {r4, r5, r6}
0x395c5698:  mov    r12, #256
0x395c569c:  orr    r12, r12, #78
0x395c56a0:  svc    #128
0x395c56a4:  pop    {r4, r5, r6, r8}
0x395c56a8:  blo    0x395c56c0                ; __semwait_signal + 52
0x395c56ac:  ldr    r12, [pc, #4]             ; __semwait_signal + 44
0x395c56b0:  ldr    r12, [pc, r12]
0x395c56b4:  b      0x395c56bc                ; __semwait_signal + 48
0x395c56b8:  .long  0x01af6970                ; unknown opcode
0x395c56bc:  bx     r12
0x395c56c0:  bx     lr

The actual line it crashes on is the pop instruction with the green bar that highlights the line stating: Thread 19: signal SIGUSR1
Any help would be appreciated.

= Ed =

I’m seeing something very similar, when attempting to attach Monodevelop to the iOS Unity Player, once run via XCode.

Can anyone comment on this? As soon as the debugger attaches, XCode receives some kind of crash — this is the first time I’ve tried to do any source-level debugging using Unity on iOS

-js

I am getting the same issue also… any ideas?

For me the following seems to work:

  • Build project and run on device.
  • Quit XCode.
  • Reload game on device.
  • Attach MonoDevelop.