Ios React本机生成失败,带有未定义的符号\u RCTInjectedAssertFunction
我使用以下工具构建我的项目Ios React本机生成失败,带有未定义的符号\u RCTInjectedAssertFunction,ios,react-native,Ios,React Native,我使用以下工具构建我的项目 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:ca
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)
我做错了什么?构建设置中有什么?
试试这个,从项目目录中删除
ios
、android
和node\u modeules
文件夹。
然后跑,,
npm安装
反应本机升级
反应本机链接
这对我很有用。谢谢你的帮助。可能是某些模块依赖于不同的版本,并将其链接到不同的静态库以导致此错误。