2017-01-20 2 views
3

私はリアクションのネイティブドキュメントに従うだけで、デバイス上で実行したりリリースすることができます[1]。リアクションネイティブアプリを構築する場合:アーキテクチャの定義されていないシンボルgxx_personality_v0

新しく反応したネイティブアプリでも、次のエラーが発生しました。アプリはシミュレータで正常に動作します。私は、Xcodeプロジェクトを開くリリースするスキームを変更し、構築しようとした場合、私は基本的にやっている

Undefined symbols for architecture i386: "___gxx_personality_v0",
referenced from:
     _RCTDefaultLogFunction_block_invoke in libReact.a(RCTLog.o)
     _RCTFormatLog in libReact.a(RCTLog.o)
     ___RCTAddLogFunction_block_invoke in libReact.a(RCTLog.o)
     _RCTPerformBlockWithLogFunction in libReact.a(RCTLog.o)
     _RCTPerformBlockWithLogPrefix in libReact.a(RCTLog.o)
     RCTGetLocalLogFunction() in libReact.a(RCTLog.o)
     ___RCTPerformBlockWithLogPrefix_block_invoke in libReact.a(RCTLog.o)
     ...
ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

react-native init SampleApp 
... generates app 
react-native run-ios # works fine (on simulator) 
react-native run-ios --configuration Release # fails with the error above. 

それは同じで失敗します。

何が起こっているか私は図書館がないように見えますか?それがそこにあることをどのようにチェックするのですか? (私はネイティブとiOSのどちらにも反応しないので、あまり知っているとは思わないでください)

ありがとう!

-

[1] https://facebook.github.io/react-native/docs/running-on-device.html

答えて

0

私はこの正確なエラーを持っていたし、これらの命令を経由して、それを解決した:私はちょうど削除し、Xcodeで私の計画を作成することによって、これを固定

(クレジットに行きますこのSOの投稿)。ここで私はXcodeの7.3.1でやったことだ:私は、HTH :)

をしなければならなかったすべてです

Open your project in Xcode. 
Click Product > Scheme > Manage Schemes. 
Select the scheme for your project, then click the minus (—) near the 
    bottom left to delete it. 
Now click the plus (+) to create a new scheme for your project. 

関連する問題