2017-09-04 6 views
0

반응이있는 기본 ios 앱을 실행하는 데 실제 문제가 있습니다.ios Xcode에서 내 반응 네이티브 앱을 실행할 수 없습니다.

react-native init AwesomeProject 
    cd AwesomeProject 
    react-native run-ios 

그리고 무슨 일하면 AwesomeProject 응용 프로그램이 종료 다음 두 번째 열립니다이다 : 나는 엑스 코드 (버전 8.3.3) 및 필요한 다른 모든 기본 종속성을 설치, 내가 한 모든했다.

2017-09-04 20:38:11.369 [info][tid:main][RCTCxxBridge.mm:188] 

Initializing <RCTCxxBridge: 0x6000001a0540> (parent: <RCTBridge: 0x6000000a9a20>, executor: (null)) 
2017-09-04 20:38:11.390 [warn][tid:main][RCTBridge.m:114] Class RCTCxxModule was not exported. Did you forget to use RCT_EXPORT_MODULE()? 
2017-09-04 20:38:11.404 [info][tid:main][RCTRootView.m:301] Running application AwesomeProject ({ 
    initialProps =  { 
    }; 
    rootTag = 1; 
}) 
2017-09-04 20:38:11.467 AwesomeProject[10363:1261593] -[NSTaggedPointerString unsignedIntValue]: unrecognized selector sent to instance 0xa383534303930327 
2017-09-04 20:38:11.509 AwesomeProject[10363:1261593] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSTaggedPointerString unsignedIntValue]: unrecognized selector sent to instance 0xa383534303930327' 
*** First throw call stack: 
(
    0 CoreFoundation      0x000000010e4f4b0b __exceptionPreprocess + 171 
    1 libobjc.A.dylib      0x000000010d3aa141 objc_exception_throw + 48 
    2 CoreFoundation      0x000000010e564134 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132 
    3 CoreFoundation      0x000000010e47b840 ___forwarding___ + 1024 
    4 CoreFoundation      0x000000010e47b3b8 _CF_forwarding_prep_0 + 120 
    5 AwesomeProject      0x000000010c7653f4 -[RCTMultipartStreamReader emitProgress:contentLength:final:callback:] + 244 
    6 AwesomeProject      0x000000010c765bea -[RCTMultipartStreamReader readAllPartsWithCompletionCallback:progressCallback:] + 1610 
    7 AwesomeProject      0x000000010c7b551c -[RCTMultipartDataTask URLSession:streamTask:didBecomeInputStream:outputStream:] + 444 
    8 CFNetwork       0x000000010df54c51 __88-[NSURLSession delegate_streamTask:didBecomeInputStream:outputStream:completionHandler:]_block_invoke + 51 
    9 Foundation       0x000000010ceb43b7 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 7 
    10 Foundation       0x000000010ceb40bb -[NSBlockOperation main] + 101 
    11 Foundation       0x000000010ceb2877 -[__NSOperationInternal _start:] + 627 
    12 Foundation       0x000000010ceae5fc __NSOQSchedule_f + 198 
    13 libdispatch.dylib     0x00000001121d605c _dispatch_client_callout + 8 
    14 libdispatch.dylib     0x00000001121b494f _dispatch_queue_serial_drain + 221 
    15 libdispatch.dylib     0x00000001121b5669 _dispatch_queue_invoke + 1084 
    16 libdispatch.dylib     0x00000001121b7ec4 _dispatch_root_queue_drain + 634 
    17 libdispatch.dylib     0x00000001121b7bef _dispatch_worker_thread3 + 123 
    18 libsystem_pthread.dylib    0x000000011256d5a2 _pthread_wqthread + 1299 
    19 libsystem_pthread.dylib    0x000000011256d07d start_wqthread + 13 
) 
libc++abi.dylib: terminating with uncaught exception of type NSException 
(lldb) 

그리고 난 다음 스레드 8이 페이지로 이동 얻을 : 신호 SIGABRT 오류 :

나는 또한이어야의 오류를보고 있지만, 엑스 코드를 통해 실행하고 같은 문제를 얻을 시도
-> 0x112538d42 <+10>: jae 0x112538d4c    ; <+20> 

나는 NSEXCEPTION에 관해서 많이 봤지만 나는 여전히 내 앱을 돌릴 수 없다. 어떤 도움을 많이 주시면 감사하겠습니다.

답변

1

반응 네이티브 0.48.0에 문제가있는 것 같습니다.

아래 스레드를 따라갈 수 있습니다. 0.48.1로 고정해야합니다. https://github.com/facebook/react-native/issues/15768

편집 : 0.48.1이 잘 작동하는지 확인할 수 있습니다. 다음을 사용하여 업데이트 :

npm install -g react-native-git-upgrade

react-native-git-upgrade