使用react-native

时间:2018-04-01 01:24:16

标签: ios xcode reactjs react-native

我有一个反应原生的应用程序,今天早上工作正常,但现在我根本无法构建它。我今天遇到了一些主要的链接错误,并且在一段时间内出现了构建错误。在放弃手动链接并使用react-native linkpod install的组合后,我终于设法让构建成功。但是现在当构建成功时,Xcode本身崩溃了。模拟器正在打开,但Xcode崩溃后才能尝试安装新版本。我之前从未见过类似Xcode的东西。

react-native 0.51.0
react 16.0.0
node 7.8.0
Xcode 9.2
Cocoapods 1.4.0

错误报告:

  

处理:Xcode [3747]路径:
  /Applications/Xcode.app/Contents/MacOS/Xcode标识符:
  Xcode版本:9.2(13772)应用商品ID:
  497799835 App外部ID:825038102代码类型:
  X86-64(Native)父进程:??? [1]负责人:
  Xcode [3747]用户ID:502

     

日期/时间:2018-03-31 20:10:21.783 -0500操作系统版本:
  Mac OS X 10.13.3(17D102)报告版本:12匿名UUID:
  D8F23055-EFF7-4CD7-5BEE-671DADA76EF5

     

自启动以来的时间清醒:640秒

     

系统完整性保护:已启用

     

Crashed Thread:18 Dispatch queue:ConcurrentQueue:    - [DVTiPhoneSimulator launchSimulatedExecutable:launchService:error:] _ block_invoke_3

     

异常类型:EXC_CRASH(SIGABRT)异常代码:
  0x0000000000000000,0x0000000000000000异常注意:
  EXC_CORPSE_NOTIFY

     

特定应用信息:ProductBuildVersion:9C40b UNCAUGHT   EXCEPTION(NSInvalidArgumentException):***    - [__ NSPlaceholderDictionary initWithObjects:forKeys:count:]:尝试从对象插入nil对象[0] UserInfo:(null)提示:
  Backtrace:0 __exceptionPreprocess(在CoreFoundation中)1
  DVTFailureHintExceptionPreprocessor(在DVTFoundation中)2
  objc_exception_throw(在libobjc.A.dylib中)3
  _CFThrowFormattedException(在CoreFoundation中)4 - [__ NSPlaceholderDictionary initWithObjects:forKeys:count:](在CoreFoundation中)5 + [NSDictionary   dictionaryWithObjects:forKeys:count:](在CoreFoundation中)6
  __68- [DVTiPhoneSimulator launchSimulatedExecutable:launchService:error:] _ block_invoke.807(in   IDEiOSSupportCore)7 __38- [DVTFuture(DVTFutureAdditions)   然后:] _ block_invoke_2(在DVTFoundation中)8 __44- [DVTFuture   _internalSetState:result:error:] _ block_invoke.207(在DVTFoundation中)9 - [DVTFuture setState:result:error:](在DVTFoundation中)10
  __54- [DVTFuture trackFuture:progress:取消:结果:错误:] _ block_invoke.266(in   DVTFoundation)11 - [DVTFuture observeFinish:](在DVTFoundation中)   12 - [DVTFuture trackFuture:progress:cancel:result:error:](in   DVTFoundation)13 - [DVTFuture trackFuture:](在DVTFoundation中)14   __38- [DVTFuture(DVTFutureAdditions)然后:] _ block_invoke_2(在DVTFoundation中)15 __44- [DVTFuture   _internalSetState:result:error:] _ block_invoke.207(在DVTFoundation中)16 - [DVTFuture setState:result:error:](在DVTFoundation中)17
  __54- [DVTFuture trackFuture:progress:取消:结果:错误:] _ block_invoke.266(in   DVTFoundation)18 __44- [DVTFuture   _internalSetState:result:error:] _ block_invoke.207(在DVTFoundation中)19 - [DVTFuture setState:result:error:](在DVTFoundation中)20
   - [DVTFuture succeedWithResult:](在DVTFoundation中)21 __68- [DVTiPhoneSimulator launchSimulatedExecutable:launchService:error:] _ block_invoke_4(in   IDEiOSSupportCore)22 __DVTCreateSingleCallBlock_block_invoke(in   DVTFoundation)23 _dispatch_client_callout(在libdispatch.dylib中)   24 _dispatch_block_invoke_direct(在libdispatch.dylib中)25
  __DVTDispatchAsync_block_invoke(在DVTFoundation)26 _dispatch_call_block_and_release(在libdispatch.dylib)27 _dispatch_client_callout(在libdispatch.dylib)28 _dispatch_continuation_pop(在libdispatch.dylib)29 _dispatch_async_redirect_invoke(在libdispatch.dylib)30 _dispatch_root_queue_drain(在libdispatch.dylib)31 _dispatch_worker_thread3(在libdispatch .dylib)32 _pthread_wqthread(在libsystem_pthread.dylib中)33 start_wqthread(在libsystem_pthread.dylib中)abort()调用

     

特定于应用程序的签名:NSInvalidArgumentException

     

应用程序特定的Backtrace 1:0 CoreFoundation
  0x00007fff50ccafcb __exceptionPreprocess + 171 1 DVTFoundation
  0x0000000107063a5c DVTFailureHintExceptionPreprocessor + 274 2
  libobjc.A.dylib 0x00007fff77980c76   objc_exception_throw + 48 3 CoreFoundation
  0x00007fff50d0c264 _CFThrowFormattedException + 202 4 CoreFoundation   0x00007fff50bce6c2 - [__ NSPlaceholderDictionary   initWithObjects:forKeys:count:] + 322 5 CoreFoundation
  0x00007fff50bce54b + [NSDictionary   dictionaryWithObjects:forKeys:count:] + 59 6 IDEiOSSupportCore
  0x0000000119710f51 __68- [DVTiPhoneSimulator   launchSimulatedExecutable:launchService:error:] _ block_invoke.807 + 108   7 DVTFoundation 0x0000000106fbd909   __38- [DVTFuture(DVTFutureAdditions)然后:] _ block_invoke_2 + 104 8 DVTFoundation 0x0000000106fbb5c3 __44- [DVTFuture   _internalSetState:result:error:] _ block_invoke.207 + 89 9 DVTFoundation 0x0000000106fbb8d9 - [DVTFuture   setState:result:error:] + 199 10 DVTFoundation
  0x0000000106fbca1a __54- [DVTFuture   trackFuture:progress:取消:结果:错误:] _ block_invoke.266 + 119 11   DVTFoundation 0x0000000106fb9565 - [DVTFuture   observeFinish:] + 277 12 DVTFoundation
  0x0000000106fbc7e8 - [DVTFuture   trackFuture:进度:取消:结果:错误:] + 331 13 DVTFoundation
  0x0000000106fbd0a8 - [DVTFuture trackFuture:] + 42 14 DVTFoundation
  0x0000000106fbd927 __38- [DVTFuture(DVTFutureAdditions)   然后:] _ block_invoke_2 + 134 15 DVTFoundation
  0x0000000106fbb5c3 __44- [DVTFuture   _internalSetState:result:error:] _ block_invoke.207 + 89 16 DVTFoundation 0x0000000106fbb8d9 - [DVTFuture   setState:result:error:] + 199 17 DVTFoundation
  0x0000000106fbca1a __54- [DVTFuture   trackFuture:progress:取消:结果:错误:] _ block_invoke.266 + 119 18   DVTFoundation 0x0000000106fbb5c3 __44- [DVTFuture   _internalSetState:result:error:] _ block_invoke.207 + 89 19 DVTFoundation 0x0000000106fbb8d9 - [DVTFuture   setState:result:error:] + 199 20 DVTFoundation
  0x0000000106fbbb0a - [DVTFuture succeedWithResult:] + 31 21   IDEiOSSupportCore 0x0000000119710abf   __68- [DVTiPhoneSimulator launchSimulatedExecutable:launchService:error:] _ block_invoke_4 + 70 22   DVTFoundation 0x0000000106f8606d   __DVTCreateSingleCallBlock_block_invoke + 133 23 libdispatch.dylib 0x00007fff78536d50 _dispatch_client_callout + 8 24 libdispatch.dylib   0x00007fff78549333 _dispatch_block_invoke_direct + 317 25   DVTFoundation 0x00000001070b9a4f   __DVTDispatchAsync_block_invoke + 806 26 libdispatch.dylib 0x00007fff7853e591 _dispatch_call_block_and_release + 12 27   libdispatch.dylib 0x00007fff78536d50   _dispatch_client_callout + 8 28 libdispatch.dylib 0x00007fff78549e76 _dispatch_continuation_pop + 472 29   libdispatch.dylib 0x00007fff785416cb   _dispatch_async_redirect_invoke + 703 30 libdispatch.dylib 0x00007fff78538941 _dispatch_root_queue_drain + 515 31   libdispatch.dylib 0x00007fff785386ed   _dispatch_worker_thread3 + 101 32 libsystem_pthread.dylib 0x00007fff787fb1ca _pthread_wqthread + 1387 33   libsystem_pthread.dylib 0x00007fff787fac4d start_wqthread   + 13

     

Thread 0 :: Dispatch queue:com.apple.main-thread 0
  libsystem_kernel.dylib 0x00007fff786b67c​​2 mach_msg_trap + 10 1   libsystem_kernel.dylib 0x00007fff786b5cdc mach_msg + 60 2
  com.apple.CoreFoundation 0x00007fff50c46575   __CFRunLoopServiceMachPort + 341 3 com.apple.CoreFoundation 0x00007fff50c458c7 __CFRunLoopRun + 1783 4 com.apple.CoreFoundation     0x00007fff50c44f43 CFRunLoopRunSpecific + 483 5 com.apple.HIToolbox     0x00007fff4ff5ce26 RunCurrentEventLoopInMode + 286 6
  com.apple.HIToolbox 0x00007fff4ff5cb96   ReceiveNextEventCommon + 613 7 com.apple.HIToolbox
    0x00007fff4ff5c914 _BlockUntilNextEventMatchingListInModeWithFilter +   64 8 com.apple.AppKit 0x00007fff4e227f5f _DPSNextEvent   + 2085 9 com.apple.AppKit 0x00007fff4e9bdb4c - [NSApplication(NSEvent)_nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044 10 com.apple.dt.DVTKit 0x0000000107672f9a - [DVTApplication   nextEventMatchingMask:untilDate:inMode:dequeue:] + 390 11   com.apple.AppKit 0x00007fff4e21cd6d - [NSApplication run]   + 764 12 com.apple.AppKit 0x00007fff4e1ebf1a NSApplicationMain + 804 13 libdyld.dylib
    0x00007fff78570115 start + 1

     

线程1:0 libsystem_kernel.dylib 0x00007fff786b67c​​2   mach_msg_trap + 10 1 libsystem_kernel.dylib
    0x00007fff786b5cdc mach_msg + 60 2 com.apple.CoreFoundation
    0x00007fff50c46575 CFRunLoopServiceMachPort + 341 3
  com.apple.CoreFoundation 0x00007fff50c458c7 __CFRunLoopRun +   1783 4 com.apple.CoreFoundation 0x00007fff50c44f43   CFRunLoopRunSpecific + 483 5 com.apple.Foundation
    0x00007fff52d16c16 - [NSRunLoop(NSRunLoop)runMode:beforeDate:] + 277   6 com.apple.DTDeviceKitBase 0x00000001197c9917   + [DTDKRemoteDeviceConnection startServiceBrowsers] + 217 7 com.apple.Foundation 0x00007fff52d24ee8 __NSThread__start
  + 1197 8 libsystem_pthread.dylib 0x00007fff787fb6c1 _pthread_body + 340 9 libsystem_pthread.dylib 0x00007fff787fb56d _pthread_start + 377 10 libsystem_pthread.dylib
    0x00007fff787fac5d thread_start + 13

错误报告一直在继续,但似乎没有任何相关内容。

1 个答案:

答案 0 :(得分:0)

作为我的故障排除的一部分,我覆盖了一些文件,并意外删除了我的项目包标识符。重置使一切恢复正常。