My application processes URL schemes. When it is already running and receives a call from another application, it behaves correctly and without problems. However, when it is completely closed (as in "not in the background" mode), and another application calls it, it is immediately reset.
I already set the parameter “Wait until it starts” so that I can debug application:willFinishLaunchingWithOptions:, but it seems that it is not called. I also implemented it -application:openURL:sourceApplication:annotation:, but it seems that it is also not called.
Here's the accident:
libsystem_kernel.dylib`__pthread_kill:
0x10a79e278: movl $0x2000148, %eax
0x10a79e27d: movq %rcx, %r10
0x10a79e280: syscall
0x10a79e282: jae 0x10a79e28c ; __pthread_kill + 20
0x10a79e284: movq %rax, %rdi
0x10a79e287: jmp 0x10a799ca3 ; cerror_nocancel
0x10a79e28c: retq
0x10a79e28d: nop
0x10a79e28e: nop
0x10a79e28f: nop
Any idea on how to solve this problem, or what am I doing wrong? I am using iOS 8 GM and Xcode 6 GM.