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.)
[このガイド](https://facebook.github.io/react-native/docs/upgrading.html)をご覧になりましたか? 'react-native upgrade'を実行しましたか?これは、新しいバージョンのネイティブと反応するすべての依存関係とファイルを更新することを意味します。アップグレードが後で上書きする値を手動で修正する必要があります。 –
アップグレードはネイティブ0.26に反応するようには機能していません私は0.14から進めようとしています - > 0.26.3 –