Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/103.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios React本机生成失败,带有未定义的符号\u RCTInjectedAssertFunction_Ios_React Native - Fatal编程技术网

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安装
反应本机升级
反应本机链接


这对我很有用。

谢谢你的帮助。可能是某些模块依赖于不同的版本,并将其链接到不同的静态库以导致此错误。