我正在實現鍵盤擴展。但有時它會在啓動時遇到SIGQUIT信號。iOS鍵盤擴展SIGQUIT啓動時
的情況如下:
- 點擊TextView的,和鍵盤出現
- 點擊任何東西,隱藏鍵盤
- 切換到另一個應用程序
- 點擊TextView的,等待鍵盤出現
CRASH !!! SIGQUIT
Exception Type: EXC_CRASH (SIGQUIT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Quit: 3
Termination Reason: Namespace SIGNAL, Code 0x3
Terminating Process: launchd [1]
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x000000018819b260 semaphore_wait_trap + 8
1 libdispatch.dylib 0x00000001880895e8 _os_semaphore_wait + 24
2 libdispatch.dylib 0x0000000188088ca0 _dispatch_semaphore_wait_slow + 140
3 DTXConnectionServices 0x00000001012a9ec4 0x10129c000 + 57028
4 DTXConnectionServices 0x00000001012a95ec 0x10129c000 + 54764
5 libfsmonitor_interpose.dylib 0x000000010128a040 0x101288000 + 8256
6 libfsmonitor_interpose.dylib 0x000000010128a3b4 0x101288000 + 9140
7 dyld 0x00000001013326b0 ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 356
8 dyld 0x00000001013328e0 ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 36
9 dyld 0x000000010132db44 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 368
10 dyld 0x000000010132cb74 ImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 136
11 dyld 0x000000010132cc30 ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 84
12 dyld 0x000000010131e440 dyld::initializeMainExecutable() + 140
13 dyld 0x00000001013226bc dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) + 3640
14 dyld 0x000000010131d044 _dyld_start + 68
在回溯,這是所有的系統調用。擴展代碼並沒有真正運行!每次碰撞發生時,斷點都是不同的。
我嘗試了很多東西,但都沒有幫助。
有誰知道解決方案?
有沒有人解決方法我有同樣的問題 – ANE