ios - My app crashes XCode on device, no crash on simulator -


after big changes made in ios app, (mainly removing parts objective c framework , use in swift app)   running app on device without breakpoints crashes xcode ( not app ) error message of xcode below. running same app on simulator not crash xcode. running app on device not crash xcode.

does not matter whether have breakpoint or not. 

here xcode crash log :

<code> process:               xcode [1364] path:                  /applications/xcode.app/contents/macos/xcode identifier:            com.apple.dt.xcode version:               6.3.1 (7703) build info:            ideframeworks-7703000000000000~4 app item id:           497799835 app external id:       812230896 code type:             x86-64 (native) parent process:        ??? [1] responsible:           xcode [1364] user id:               501  date/time:             2015-06-19 13:45:22.218 +0300 os version:            mac os x 10.10.3 (14d136) report version:        11 anonymous uuid:        a0b813fc-1fe1-d484-fdb2-f36afff2ea43  sleep/wake uuid:       e3c58018-8450-4dbc-90f5-2f5ffc1d8724  time awake since boot: 5100 seconds time since wake:       3900 seconds  crashed thread:        24  exception type:        exc_bad_access (sigsegv) exception codes:       kern_invalid_address @ 0x0000000000000000  vm regions near 0: -->      __text                 0000000101510000-0000000101511000 [    4k] r-x/rwx sm=cow  /applications/xcode.app/contents/macos/xcode  application specific information: productbuildversion: 6d1002  thread 0:: dispatch queue: com.apple.main-thread 0   libsystem_kernel.dylib         0x00007fff88b224de mach_msg_trap + 10 1   libsystem_kernel.dylib         0x00007fff88b2164f mach_msg + 55 2   com.apple.corefoundation       0x00007fff9152deb4 __cfrunloopservicemachport + 212 3   com.apple.corefoundation       0x00007fff9152d37b __cfrunlooprun + 1371 4   com.apple.corefoundation       0x00007fff9152cbd8 cfrunlooprunspecific + 296 5   com.apple.hitoolbox           0x00007fff89c4f56f runcurrenteventloopinmode + 235 6   com.apple.hitoolbox           0x00007fff89c4f2ea receivenexteventcommon + 431 7   com.apple.hitoolbox           0x00007fff89c4f12b _blockuntilnexteventmatchinglistinmodewithfilter + 71 8   com.apple.appkit               0x00007fff8c1c59bb _dpsnextevent + 978 9   com.apple.appkit               0x00007fff8c1c4f68 -[nsapplication nexteventmatchingmask:untildate:inmode:dequeue:] + 346 10  com.apple.dt.dvtkit           0x0000000101c69dda -[dvtapplication nexteventmatchingmask:untildate:inmode:dequeue:] + 237 11  com.apple.appkit               0x00007fff8c1babf3 -[nsapplication run] + 594 12  com.apple.appkit               0x00007fff8c137354 nsapplicationmain + 1832 13  libdyld.dylib                 0x00007fff88c0d5c9 start + 1  thread 1:: dispatch queue: com.apple.libdispatch-manager 0   libsystem_kernel.dylib         0x00007fff88b28232 kevent64 + 10 1   libdispatch.dylib             0x00007fff87d49a6a _dispatch_mgr_thread + 52  thread 2:: com.apple.nsurlconnectionloader 0   libsystem_kernel.dylib         0x00007fff88b224de mach_msg_trap + 10 1   libsystem_kernel.dylib         0x00007fff88b2164f mach_msg + 55 2   com.apple.corefoundation       0x00007fff9152deb4 __cfrunloopservicemachport + 212 3   com.apple.corefoundation       0x00007fff9152d37b __cfrunlooprun + 1371 4   com.apple.corefoundation       0x00007fff9152cbd8 cfrunlooprunspecific + 296 5   com.apple.cfnetwork           0x00007fff8b947220 +[nsurlconnection(loader) _resourceloadloop:] + 434 6   com.apple.foundation           0x00007fff90af7dc2 __nsthread__main__ + 1345 7   libsystem_pthread.dylib       0x00007fff8f958268 _pthread_body + 131 8   libsystem_pthread.dylib       0x00007fff8f9581e5 _pthread_start + 176 9   libsystem_pthread.dylib       0x00007fff8f95641d thread_start + 13  thread 3:: com.apple.cfsocket.private 0   libsystem_kernel.dylib         0x00007fff88b273fa __select + 10 1   libsystem_pthread.dylib       0x00007fff8f958268 _pthread_body + 131 2   libsystem_pthread.dylib       0x00007fff8f9581e5 _pthread_start + 176 3   libsystem_pthread.dylib       0x00007fff8f95641d thread_start + 13  thread 4: 0   libsystem_kernel.dylib         0x00007fff88b224de mach_msg_trap + 10 1   libsystem_kernel.dylib         0x00007fff88b2164f mach_msg + 55 2   com.apple.corefoundation       0x00007fff9152deb4 __cfrunloopservicemachport + 212 3   com.apple.corefoundation       0x00007fff9152d37b __cfrunlooprun + 1371 4   com.apple.corefoundation       0x00007fff9152cbd8 cfrunlooprunspecific + 296 5   com.apple.foundation           0x00007fff90b49a59 -[nsrunloop(nsrunloop) runmode:beforedate:] + 278 6   com.apple.dtdevicekitbase     0x000000010bc73f2c -[dtdkremotedevicedatalistener listenerthreadimplementation] + 974 7   com.apple.foundation           0x00007fff90af7dc2 __nsthread__main__ + 1345 8   libsystem_pthread.dylib       0x00007fff8f958268 _pthread_body + 131 9   libsystem_pthread.dylib       0x00007fff8f9581e5 _pthread_start + 176 10  libsystem_pthread.dylib       0x00007fff8f95641d thread_start + 13  thread 5: 0   libsystem_kernel.dylib         0x00007fff88b224de mach_msg_trap + 10 1   libsystem_kernel.dylib         0x00007fff88b2164f mach_msg + 55 2   com.apple.corefoundation       0x00007fff9152deb4 __cfrunloopservicemachport + 212 3   com.apple.corefoundation       0x00007fff9152d37b __cfrunlooprun + 1371 4   com.apple.corefoundation       0x00007fff9152cbd8 cfrunlooprunspecific + 296 5   com.apple.foundation           0x00007fff90b49a59 -[nsrunloop(nsrunloop) runmode:beforedate:] + 278 6   com.apple.dtdevicekitbase     0x000000010bc658c6 +[dtdkremotedeviceconnection startservicebrowsers] + 213 7   com.apple.foundation           0x00007fff90af7dc2 __nsthread__main__ + 1345 8   libsystem_pthread.dylib       0x00007fff8f958268 _pthread_body + 131 9   libsystem_pthread.dylib       0x00007fff8f9581e5 _pthread_start + 176 10  libsystem_pthread.dylib       0x00007fff8f95641d thread_start + 13  thread 6: 0   libsystem_kernel.dylib         0x00007fff88b224de mach_msg_trap + 10 1   libsystem_kernel.dylib         0x00007fff88b2164f mach_msg + 55 2   com.apple.corefoundation       0x00007fff9152deb4 __cfrunloopservicemachport + 212 3   com.apple.corefoundation       0x00007fff9152d37b __cfrunlooprun + 1371 4   com.apple.corefoundation       0x00007fff9152cbd8 cfrunlooprunspecific + 296 5   com.apple.appkit               0x00007fff8c28d66b _nseventthread + 137 6   libsystem_pthread.dylib       0x00007fff8f958268 _pthread_body + 131 7   libsystem_pthread.dylib       0x00007fff8f9581e5 _pthread_start + 176 8   libsystem_pthread.dylib       0x00007fff8f95641d thread_start + 13  thread 7:: dymobiledevicemanager 0   libsystem_kernel.dylib         0x00007fff88b224de mach_msg_trap + 10 1   libsystem_kernel.dylib         0x00007fff88b2164f mach_msg + 55 2   com.apple.corefoundation       0x00007fff9152deb4 __cfrunloopservicemachport + 212 3   com.apple.corefoundation       0x00007fff9152d37b __cfrunlooprun + 1371 4   com.apple.corefoundation       0x00007fff9152cbd8 cfrunlooprunspecific + 296 5   com.apple.foundation           0x00007fff90b49a59 -[nsrunloop(nsrunloop) runmode:beforedate:] + 278 6   com.apple.foundation           0x00007fff90bbf17f -[nsrunloop(nsrunloop) run] + 74 7   com.apple.gputoolsmobilefoundation 0x000000011246a89b -[dymobiledevicemanager _devicenotificationthread:] + 134 8   com.apple.foundation           0x00007fff90af7dc2 __nsthread__main__ + 1345 9   libsystem_pthread.dylib       0x00007fff8f958268 _pthread_body + 131 10  libsystem_pthread.dylib       0x00007fff8f9581e5 _pthread_start + 176 11  libsystem_pthread.dylib       0x00007fff8f95641d thread_start + 13  thread 8: 0   libsystem_kernel.dylib         0x00007fff88b27136 __psynch_cvwait + 10 1   com.apple.xcode.devtoolscore   0x000000010b63c426 -[xcblockqueue _processblocksinthreadslotnumber:] + 456 2   com.apple.foundation           0x00007fff90af7dc2 __nsthread__main__ + 1345 3   libsystem_pthread.dylib       0x00007fff8f958268 _pthread_body + 131 4   libsystem_pthread.dylib       0x00007fff8f9581e5 _pthread_start + 176 5   libsystem_pthread.dylib       0x00007fff8f95641d thread_start + 13  thread 9: 0   libsystem_kernel.dylib         0x00007fff88b27136 __psynch_cvwait + 10 1   com.apple.xcode.devtoolscore   0x000000010b63c426 -[xcblockqueue _processblocksinthreadslotnumber:] + 456 2   com.apple.foundation           0x00007fff90af7dc2 __nsthread__main__ + 1345 3   libsystem_pthread.dylib       0x00007fff8f958268 _pthread_body + 131 4   libsystem_pthread.dylib       0x00007fff8f9581e5 _pthread_start + 176 5   libsystem_pthread.dylib       0x00007fff8f95641d thread_start + 13  thread 10: 0   libsystem_kernel.dylib         0x00007fff88b27136 __psynch_cvwait + 10 1   com.apple.xcode.devtoolscore   0x000000010b63c426 -[xcblockqueue _processblocksinthreadslotnumber:] + 456 2   com.apple.foundation           0x00007fff90af7dc2 __nsthread__main__ + 1345 3   libsystem_pthread.dylib       0x00007fff8f958268 _pthread_body + 131 4   libsystem_pthread.dylib       0x00007fff8f9581e5 _pthread_start + 176 5   libsystem_pthread.dylib       0x00007fff8f95641d thread_start + 13  thread 11: 0   libsystem_kernel.dylib         0x00007fff88b2794a __workq_kernreturn + 10 1   libsystem_pthread.dylib       0x00007fff8f95640d start_wqthread + 13  thread 12: 0   libsystem_kernel.dylib         0x00007fff88b2794a __workq_kernreturn + 10 1   libsystem_pthread.dylib       0x00007fff8f95640d start_wqthread + 13  thread 13: 0   libsystem_kernel.dylib         0x00007fff88b2794a __workq_kernreturn + 10 1   libsystem_pthread.dylib       0x00007fff8f95640d start_wqthread + 13  thread 14: 0   libsystem_kernel.dylib         0x00007fff88b2794a __workq_kernreturn + 10 1   libsystem_pthread.dylib       0x00007fff8f95640d start_wqthread + 13  thread 15: 0   libsystem_kernel.dylib         0x00007fff88b2794a __workq_kernreturn + 10 1   libsystem_pthread.dylib       0x00007fff8f95640d start_wqthread + 13  thread 16:: dispatch queue: parsing queue 0   libsystem_kernel.dylib         0x00007fff88b2251a semaphore_wait_trap + 10 1   libdispatch.dylib             0x00007fff87d4dc55 _dispatch_semaphore_wait_slow + 213 2   com.apple.dt.instruments.dtxconnectionservices 0x000000010355cd7a -[dtxmessageparser waitformoredata:incrementalbuffer:] + 87 3   com.apple.dt.instruments.dtxconnectionservices 0x000000010355c9b8 -[dtxmessageparser parsemessage] + 50 4   com.apple.dt.instruments.dtxconnectionservices 0x000000010355c776 __43-[dtxmessageparser initwithmessagehandler:]_block_invoke + 35 5   libdispatch.dylib             0x00007fff87d4b323 _dispatch_call_block_and_release + 12 6   libdispatch.dylib             0x00007fff87d46c13 _dispatch_client_callout + 8 7   libdispatch.dylib             0x00007fff87d4a365 _dispatch_queue_drain + 1100 8   libdispatch.dylib             0x00007fff87d4becc _dispatch_queue_invoke + 202 9   libdispatch.dylib             0x00007fff87d496b7 _dispatch_root_queue_drain + 463 10  libdispatch.dylib             0x00007fff87d57fe4 _dispatch_worker_thread3 + 91 11  libsystem_pthread.dylib       0x00007fff8f958637 _pthread_wqthread + 729 12  libsystem_pthread.dylib       0x00007fff8f95640d start_wqthread + 13  thread 17: 0   libsystem_kernel.dylib         0x00007fff88b2730a __read_nocancel + 10 1   libsystem_c.dylib             0x00007fff88ac6f4b __srefill1 + 24 2   libsystem_c.dylib             0x00007fff88ac07db fgets + 104 3   com.apple.lldb.framework       0x000000010a18cbc1 lldb_private::iohandlereditline::getline(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, bool&) + 341 4   com.apple.lldb.framework       0x000000010a18d03c lldb_private::iohandlereditline::run() + 176 5   com.apple.lldb.framework       0x000000010a0a446c lldb_private::debugger::executeiohanders() + 86 6   com.apple.lldb.framework       0x000000010a0a64c8 lldb_private::debugger::iohandlerthread(void*) + 14 7   libsystem_pthread.dylib       0x00007fff8f958268 _pthread_body + 131 8   libsystem_pthread.dylib       0x00007fff8f9581e5 _pthread_start + 176 9   libsystem_pthread.dylib       0x00007fff8f95641d thread_start + 13  thread 18: 0   libsystem_kernel.dylib         0x00007fff88b224de mach_msg_trap + 10 1   libsystem_kernel.dylib         0x00007fff88b2164f mach_msg + 55 2   com.apple.corefoundation       0x00007fff9152deb4 __cfrunloopservicemachport + 212 3   com.apple.corefoundation       0x00007fff9152d37b __cfrunlooprun + 1371 4   com.apple.corefoundation       0x00007fff9152cbd8 cfrunlooprunspecific + 296 5   com.apple.corefoundation       0x00007fff915e4671 cfrunlooprun + 97 6   com.apple.debugsymbols         0x00007fff89949b8f spotlightquerythread(void*) + 463 7   libsystem_pthread.dylib       0x00007fff8f958268 _pthread_body + 131 8   libsystem_pthread.dylib       0x00007fff8f9581e5 _pthread_start + 176 9   libsystem_pthread.dylib       0x00007fff8f95641d thread_start + 13  thread 19: 0   libsystem_kernel.dylib         0x00007fff88b27136 __psynch_cvwait + 10 1   com.apple.lldb.framework       0x000000010a156049 lldb_private::condition::wait(lldb_private::mutex&, lldb_private::timevalue const*, bool*) + 109 2   com.apple.lldb.framework       0x000000010a15769a lldb_private::predicate<bool>::waitforvalueequalto(bool, lldb_private::timevalue const*, bool*) + 90 3   com.apple.lldb.framework       0x000000010a0b23e7 lldb_private::listener::waitforeventsinternal(lldb_private::timevalue const*, lldb_private::broadcaster*, lldb_private::conststring const*, unsigned int, unsigned int, std::__1::shared_ptr<lldb_private::event>&) + 327 4   com.apple.lldb.framework       0x000000010a0b24fb lldb_private::listener::waitforevent(lldb_private::timevalue const*, std::__1::shared_ptr<lldb_private::event>&) + 27 5   com.apple.lldb.framework       0x000000010a1c87e0 processgdbremote::asyncthread(void*) + 1228 6   libsystem_pthread.dylib       0x00007fff8f958268 _pthread_body + 131 7   libsystem_pthread.dylib       0x00007fff8f9581e5 _pthread_start + 176 8   libsystem_pthread.dylib       0x00007fff8f95641d thread_start + 13   vm region summary: readonly portion of libraries: total=415.9m resident=152.4m(37%) swapped_out_or_unallocated=263.6m(63%) writable regions: total=1.5g written=329.4m(21%) resident=404.7m(26%) swapped_out=608k(0%) unallocated=1.1g(74%)   region type                        virtual ===========                        ======= activity tracing                     2048k cg backing stores                    8392k cg image                             1088k cg shared images                      432k coreanimation                        9048k coredata object ids                  4100k coreimage                               8k coreui image data                     220k dispatch continuations               8192k foundation                             16k image io                              188k js jit generated code                   8k js jit generated code (reserved)      1.0g        reserved vm address space (unallocated) kernel alloc once                       8k malloc                              399.2m malloc (admin)                         32k memory tag 242                         12k memory tag 249                        156k memory tag 251                         44k opencl                                 24k sqlite page cache                    2048k stack guard                          56.1m stack                                42.2m vm_allocate                          17.3m webkit malloc                         464k __data                               45.3m __image                               528k __linkedit                          106.7m __text                              309.2m __unicode                             552k mapped file                         537.2m shared memory                           4k ===========                        ======= total           `enter code here`                      2.5g total, minus reserved vm space        1.5g </code> 

i using framework i've created in project. adding framework embedded binaries solved crash in xcode.

to add framework embedded binaries: 1. open general tab in target 2. in embedded binaries section add framework


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -