0
我使用以下工具構建我的項目。React-native構建失敗,未定義符號_RCTInjectedAssertFunction
react-native-cli: 2.0.1
react-native: 0.41.2
XCode Version 8.2.1 (8C1002)
但是我得到了一個錯誤。
Undefined symbols for architecture arm64:
"_RCTInjectedAssertFunction", referenced from:
-[RCTWebSocketExecutor executeJSCall:method:arguments:callback:] in libRCTWebSocketDebugger.a(RCTWebSocketExecutor.o)
-[RCTWebSocketExecutor dealloc] in libRCTWebSocketDebugger.a(RCTWebSocketExecutor.o)
"__RCTLogFormat", referenced from:
-[RCTWebSocketExecutor initWithURL:] in libRCTWebSocketDebugger.a(RCTWebSocketExecutor.o)
-[RCTWebSocketExecutor webSocket:didFailWithError:] in libRCTWebSocketDebugger.a(RCTWebSocketExecutor.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我在做什麼錯?在構建設置中的東西? enter image description here
謝謝你的幫助。可能是某個模塊依賴於不同版本的react-native並將其鏈接到不同的靜態庫引起此錯誤。 – wotiger