体系结构 x86_64 的未定义符号:“_OBJC_CLASS_$_RCTImageLoader”

Gar*_*tua 6 xcode ios react-native

经过大量测试,我的应用程序无法在iOS上运行。

我有这个错误:

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_RCTImageLoader", referenced from:
     objc-class-ref in libRCTImageResizer.a(RCTImageResizer.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)

我用 :

react: 16.12.0
react-native: 0.60.6
Run Code Online (Sandbox Code Playgroud)

小智 0

看来您正在尝试在模拟器上运行应用程序,并且 RCTImageResizer 的库不可用于模拟器。

您能否尝试在设备上运行它并检查。