Xcode 버전 7.3.1 노드 버전 v4.4.6 및 npm 버전 3.8.6이 있습니다.React^0.14.8 & React-native^0.24.1에서 React 15.0.2로 React-native 0.26.3으로 업그레이드하는 방법
그래서 지금 내 IOS는 기본 응용 프로그램이 문제없이 구축하지만 라이브러리를 사용하는 것을 시도하고 반작용 : https://github.com/aksonov/react-native-router-flux/blob/master/docs/MIGRATION.md
반작용 네이티브 버전
0.26.3 그래서 나는 https://github.com/facebook/react-native/blob/0.26-stable/package.json를 확인하고 찾을 필요 React-native 0.26.3 및 React 15.0.2의 안정 버전이 있음
그래서 package.json의 프로젝트에서 내 의존성을 변경하고 내 node_modules
폴더를 제거하고 다시 설치했습니다.
"dependencies": {
"react": "15.0.2",
"react-native": "0.26.3",
"react-native-sound": "^0.8.3",
"react-redux": "^4.4.5",
"redux": "^3.5.2",
"redux-thunk": "^2.1.0"
}
그러나 내 앱이 더 이상 작동하지 않으며 시작시이 오류가 계속 발생합니다. React 15로 올바르게 업그레이드하려면 어떻게해야합니까?
ld: warning: object file (/Users/appollo_liu/Documents/workspace/laybium_workspace/laybium/ios/build/Build/Products/Debug-iphonesimulator/libRNSound.a(RNSound.o)) was built for newer iOS version (9.0) than being linked (7.0)
Undefined symbols for architecture x86_64:
"std::terminate()", referenced from:
___clang_call_terminate in libReact.a(RCTJSCExecutor.o)
"___cxa_begin_catch", referenced from:
___clang_call_terminate in libReact.a(RCTJSCExecutor.o)
"___gxx_personality_v0", referenced from:
-[RCTJavaScriptContext initWithJSContext:onThread:] in libReact.a(RCTJSCExecutor.o)
-[RCTJavaScriptContext init] in libReact.a(RCTJSCExecutor.o)
-[RCTJavaScriptContext invalidate] in libReact.a(RCTJSCExecutor.o)
_RCTNSErrorFromJSError in libReact.a(RCTJSCExecutor.o)
+[RCTJSCExecutor runRunLoopThread] in libReact.a(RCTJSCExecutor.o)
-[RCTJSCExecutor init] in libReact.a(RCTJSCExecutor.o)
-[RCTJSCExecutor context] in libReact.a(RCTJSCExecutor.o)
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld build/Build/Products/Debug-iphonesimulator/laybium.app/laybium normal x86_64
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/laybium.app
An error was encountered processing the command (domain=LaunchServicesError, code=0):
The operation couldn’t be completed. (LaunchServicesError error 0.)
Launching org.reactjs.native.example.laybium
An error was encountered processing the command (domain=FBSOpenApplicationErrorDomain, code=4):
The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 4.)
[this guide] (https://facebook.github.io/react-native/docs/upgrading.html)를 보셨습니까? '반응 네이티브 업그레이드 '를 실행 했습니까? 이는 새로운 버전에 대한 네이티브 반응과 함께 제공되는 모든 종속성과 파일을 업데이트하기위한 것입니다. 업그레이드가 나중에 덮어 쓰는 값을 수동으로 수정해야합니다. –
업그레이드가 네이티브 0.26에 반응하도록 작동하지 않습니다. 0.14에서 시도하려고합니다. -> 0.26.3 –