架构 i386 的未定义符号:“_OBJC_CLASS_$_RCTBundleURLProvider”
Undefined symbols for architecture i386: "_OBJC_CLASS_$_RCTBundleURLProvider"
我在为 react native
构建 IOS 项目时遇到此错误:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_RCTBundleURLProvider", referenced from:
objc-class-ref in AppDelegate.o "_OBJC_CLASS_$_RCTRootView", referenced from:
objc-class-ref in AppDelegate.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1
(use -v to see invocation)
有什么解决办法吗?
您必须在 Link Binary With Libraries 部分添加来自 React 的所有 lib*.a。
有关详细信息,请参阅 and
我在为 react native
构建 IOS 项目时遇到此错误:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_RCTBundleURLProvider", referenced from: objc-class-ref in AppDelegate.o "_OBJC_CLASS_$_RCTRootView", referenced from: objc-class-ref in AppDelegate.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
有什么解决办法吗?
您必须在 Link Binary With Libraries 部分添加来自 React 的所有 lib*.a。
有关详细信息,请参阅 and