2 Replies
      Latest reply on Apr 9, 2018 3:07 AM by eskimo
      echoic Level 1 Level 1 (0 points)

        Hello: I found a problem with the xcode 9.3 system. I use xcode9.3 to run the APP project with no problem. However, after using xcode to generate the ad hoc installation package, the APP will crash. The location of the problem is a tripartite library fmdb(FMDatabaseQueue). Then the same code, I use xcode9.2 to generate ad hoc installation package, everything is normal after installation, without any crash. I do not know where xcode 9.3 has been modified, resulting in the use of xcode 9.3 unison to run normally does not crash, but the installation package installation will crash. Is the use of fmdb wrong or that this is a problem with xcode9.3. Trouble give me an answer, thank you!

        • Re: xcode9.3 fmdb problem
          echoic Level 1 Level 1 (0 points)

          I uploaded a new version to the App Store, but the reviewer rejected it.

          a part of log:

          Date/Time:           2018-04-03 17:29:38.8424 +0800

          Launch Time:         2018-04-03 17:29:27.9140 +0800

          OS Version:          iPhone OS 11.3 (15E216)

          Baseband Version:    4.56.00

          Report Version:      104

          Exception Type:  EXC_BREAKPOINT (SIGTRAP)

          Exception Codes: 0x0000000000000001, 0x00000001812655a0

          Termination Signal: Trace/BPT trap: 5

          Termination Reason: Namespace SIGNAL, Code 0x5

          Terminating Process: exc handler [0]

          Triggered by Thread:  0

          Application Specific Information:

          BUG IN CLIENT OF LIBDISPATCH: Release of a locked queue

          Abort Cause 27021597764223744

          Filtered syslog:

          None found

          Thread 0 Crashed:

          0   libdispatch.dylib             0x00000001812655a0 _dispatch_queue_destroy$VARIANT$mp + 340

          1   libdispatch.dylib             0x0000000181262874 _dispatch_dispose$VARIANT$mp + 80

          2   libdispatch.dylib             0x0000000181262874 _dispatch_dispose$VARIANT$mp + 80

          3   libdispatch.dylib             0x000000018128ebe0 -[OS_dispatch_queue _xref_dispose] + 52

          4   WoChat                        0x00000001008657fc -[FMDatabaseQueue dealloc] + 1202172 (FMDatabaseQueue.m:143)

          5   WoChat                        0x000000010090dec0 -[ECDataBase insertDataWithSQL:argumentsArray:tableName:operateStateBlock:] + 1892032 (ECDataBase.m:72)

          6   WoChat                        0x00000001008cfa94 -[UserDataBase insertVersionInfoWithString:] + 1637012 (UserDataBase.m:200)

          7   WoChat                        0x00000001008cfc30 __33-[UserDataBase setVersionDBInfo:]_block_invoke + 1637424 (UserDataBase.m:217)

          8   WoChat                        0x00000001008cf4cc __31-[UserDataBase getDBInfoValue:]_block_invoke + 1635532 (UserDataBase.m:169)

          9   WoChat                        0x000000010090e7b0 __63-[ECDataBase queryDataWithSQL:argumentsArray:tableName:result:]_block_invoke + 1894320 (ECDataBase.m:126)

          10  WoChat                        0x0000000100865b38 __30-[FMDatabaseQueue inDatabase:]_block_invoke + 1203000 (FMDatabaseQueue.m:197)

          11  libdispatch.dylib             0x0000000181260ae4 _dispatch_client_callout + 16

          12  libdispatch.dylib             0x0000000181269640 _dispatch_queue_barrier_sync_invoke_and_complete + 56

          13  WoChat                        0x0000000100865ab0 -[FMDatabaseQueue inDatabase:] + 1202864 (FMDatabaseQueue.m:211)

          14  WoChat                        0x000000010090e70c -[ECDataBase queryDataWithSQL:argumentsArray:tableName:result:] + 1894156 (ECDataBase.m:127)

          15  WoChat                        0x00000001008cf3ec -[UserDataBase getDBInfoValue:] + 1635308 (UserDataBase.m:170)

          16  WoChat                        0x00000001008cfbb8 -[UserDataBase setVersionDBInfo:] + 1637304 (UserDataBase.m:220)

          17  WoChat                        0x00000001008cf120 -[UserDataBase createAllTable] + 1634592 (UserDataBase.m:84)

          18  WoChat                        0x000000010099c670 __43-[LoginViewControllerViewModel login:user:]_block_invoke_2 + 2475632 (LoginViewControllerViewModel.m:116)

          19  WoChat                        0x000000010081c0ac __59-[ECHttpRequest request:method:parameters:success:failure:]_block_invoke + 901292 (ECHttpRequest.m:108)

          20  WoChat                        0x000000010096106c __116-[AFHTTPSessionManager dataTaskWithHTTPMethod:URLString:parameters:uploadProgress:downloadProgress:success:failure:]_block_invoke.80 + 2232428 (AFHTTPSessionManager.m:284)

          21  WoChat                        0x00000001007d52c8 __72-[AFURLSessionManagerTaskDelegate URLSession:task:didCompleteWithError:]_block_invoke_2.150 + 611016 (AFURLSessionManager.m:304)

          22  libdispatch.dylib             0x0000000181260b24 _dispatch_call_block_and_release + 24

          23  libdispatch.dylib             0x0000000181260ae4 _dispatch_client_callout + 16

          24  libdispatch.dylib             0x000000018126d520 _dispatch_main_queue_callback_4CF$VARIANT$mp + 564

          25  CoreFoundation                0x0000000181917070 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12

          26  CoreFoundation                0x0000000181914bc8 __CFRunLoopRun + 2272

          27  CoreFoundation                0x0000000181834da8 CFRunLoopRunSpecific + 552

          28  GraphicsServices              0x0000000183817020 GSEventRunModal + 100

          29  UIKit                         0x000000018b81578c UIApplicationMain + 236

          30  WoChat                        0x00000001009c78a8 main + 2652328 (main.m:14)

          31  libdyld.dylib                 0x00000001812c5fc0 start + 4

          Thread 1:

          0   libsystem_kernel.dylib        0x00000001813f5d84 __workq_kernreturn + 8

          1   libsystem_pthread.dylib       0x0000000181593eb4 _pthread_wqthread + 928

          2   libsystem_pthread.dylib       0x0000000181593b08 start_wqthread + 4

          Thread 2:

          0   libsystem_pthread.dylib       0x0000000181593b04 start_wqthread + 0

          Thread 3 name:  com.apple.uikit.eventfetch-thread

          Thread 3:

          0   libsystem_kernel.dylib        0x00000001813d3e08 mach_msg_trap + 8

          1   libsystem_kernel.dylib        0x00000001813d3c80 mach_msg + 72

          2   CoreFoundation                0x0000000181916e40 __CFRunLoopServiceMachPort + 196

          3   CoreFoundation                0x0000000181914908 __CFRunLoopRun + 1568

          4   CoreFoundation                0x0000000181834da8 CFRunLoopRunSpecific + 552

          5   Foundation                    0x00000001822a9674 -[NSRunLoop+ 34420 (NSRunLoop) runMode:beforeDate:] + 304

          6   Foundation                    0x00000001822a951c -[NSRunLoop+ 34076 (NSRunLoop) runUntilDate:] + 148

          7   UIKit                         0x000000018b4fa7e4 -[UIEventFetcher threadMain] + 136

          8   Foundation                    0x00000001823b9efc __NSThread__start__ + 1040

          9   libsystem_pthread.dylib       0x0000000181595220 _pthread_body + 272

          10  libsystem_pthread.dylib       0x0000000181595110 _pthread_body + 0

          11  libsystem_pthread.dylib       0x0000000181593b10 thread_start + 4

          Thread 4:

          0   libsystem_pthread.dylib       0x0000000181593b04 start_wqthread + 0

          Thread 5:

          0   libsystem_kernel.dylib        0x00000001813f50f4 __psynch_cvwait + 8

          1   libsystem_pthread.dylib       0x0000000181597c90 _pthread_cond_wait$VARIANT$mp + 644

          2   WoChat                        0x0000000100a24ecc _baidu_vi::CVEvent::Wait+ 3034828 (unsigned int) + 252

          3   WoChat                        0x0000000100a253a4 _baidu_vi::CVThreadEvent::Wait+ 3036068 () + 160

          4   WoChat                        0x0000000100a23d34 _baidu_vi::CVSocketMan::SocketThreadProc+ 3030324 (void*) + 1936

          5   libsystem_pthread.dylib       0x0000000181595220 _pthread_body + 272

          6   libsystem_pthread.dylib       0x0000000181595110 _pthread_body + 0

          7   libsystem_pthread.dylib       0x0000000181593b10 thread_start + 4

          Thread 6 name:  com.apple.NSURLConnectionLoader

          Thread 6:

          0   libsystem_kernel.dylib        0x00000001813d3e08 mach_msg_trap + 8

          1   libsystem_kernel.dylib        0x00000001813d3c80 mach_msg + 72

          2   CoreFoundation                0x0000000181916e40 __CFRunLoopServiceMachPort + 196

          3   CoreFoundation                0x0000000181914908 __CFRunLoopRun + 1568

          4   CoreFoundation                0x0000000181834da8 CFRunLoopRunSpecific + 552

          5   CFNetwork                     0x00000001821424b0 -[__CoreSchedulingSetRunnable runForever] + 220

          6   Foundation                    0x00000001823b9efc __NSThread__start__ + 1040

          7   libsystem_pthread.dylib       0x0000000181595220 _pthread_body + 272

          8   libsystem_pthread.dylib       0x0000000181595110 _pthread_body + 0

          9   libsystem_pthread.dylib       0x0000000181593b10 thread_start + 4

          Thread 7:

          0   libsystem_pthread.dylib       0x0000000181593b04 start_wqthread + 0

          Thread 8:

          0   libsystem_pthread.dylib       0x0000000181593b04 start_wqthread + 0

          Thread 0 crashed with ARM Thread State (64-bit):

              x0: 0x00000001c02e9100   x1: 0x000000016f6be39f   x2: 0x0000000000000008   x3: 0x000000018143d06c

              x4: 0x005ffc0000000000   x5: 0x0000000000000000   x6: 0x0000000000000000   x7: 0x0000000000000000

              x8: 0x0060000000000300   x9: 0x0060002000000300  x10: 0x001ffe0000000000  x11: 0xbaddc0dedeadbead

             x12: 0x00000001c00f72b0  x13: 0x00000001b3b6ca30  x14: 0x0000000000000000  x15: 0xfffffff000000001

             x16: 0x000000018158f8cc  x17: 0x0000000181260bdc  x18: 0x0000000000000000  x19: 0x00000001c02e9100

             x20: 0x000000016f6be39f  x21: 0x0000000000000000  x22: 0x00000001c02e9100  x23: 0x00000001c4178540

             x24: 0x00000001c01e7700  x25: 0x0000000000000010  x26: 0x00000001c066b800  x27: 0xb000000000000043

             x28: 0x0000000000000001   fp: 0x000000016f6be380   lr: 0x0000000181262874

              sp: 0x000000016f6be360   pc: 0x00000001812655a0 cpsr: 0x20000000

          Binary Images:

          0x100740000 - 0x100e7ffff WoChat arm64  <675b5a28fc4f3c2a86af17cf3c40d023> /var/containers/Bundle/Application/98470098-A81A-408B-9280-E230B3847EA0/WoChat.app/WoChat

          0x101448000 - 0x101483fff dyld arm64  <06dc98224ae03573bf72c78810c81a78> /usr/lib/dyld

          0x1014dc000 - 0x1019bbfff WebRTC arm64  <df9283c338e43daf9f9cc4396eec1a16> /var/containers/Bundle/Application/98470098-A81A-408B-9280-E230B3847EA0/WoChat.app/Frameworks/WebRTC.framework/WebRTC

            • Re: xcode9.3 fmdb problem
              eskimo Apple Staff Apple Staff (12,285 points)

              You seem to have started two threads for this issue, so I’m going to respond on your other thread.

              Share and Enjoy

              Quinn “The Eskimo!”
              Apple Developer Relations, Developer Technical Support, Core OS/Hardware
              let myEmail = "eskimo" + "1" + "@apple.com"