架构x86_64的未定义符号:“ _OBJC_CLASS _ $ _ RCCManager”

时间:2018-06-21 08:33:18

标签: xcode react-native

发生此错误,但是当我升级到0.55.4时仍然存在。

ld: warning: directory not found for option '-L/Users/nick/Library./Developer/Xcode/DerivedData/bioreact-fmazebcdwsflmwcjcomjfrqlztce/Build/Products/Debug-iphonesimulator/React'
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_RCCManager", referenced from:
      objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

您可以找到错误的屏幕截图:
控制台:

enter image description here

Xcode:

enter image description here

反应本机信息的输出:

Environment:
  OS: macOS Sierra 10.12.6
  Node: 8.9.4
  Yarn: 1.7.0
  npm: 5.6.0
  Watchman: 4.9.0
  Xcode: Xcode 9.2 Build version 9C40b
  Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed)
  react: 16.2.0 => 16.2.0
  react-native: 0.53.0 => 0.53.0

0 个答案:

没有答案