我尝试了很多在网上找到的解决方案,但没有任何运气。我想存档一个本机反应项目,但由于该错误而不断失败
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_RCTCxxBridge", referenced from:
objc-class-ref in libReact.a(RCTBridge.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
这是我的podfile
rn_path = '../node_modules/react-native'
pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
pod 'React', path: rn_path, subspecs: [
'BatchedBridge',
'CxxBridge',
'DevSupport',
'RCTText',
'RCTImage',
'RCTNetwork',
'Core',
'RCTWebSocket',
]
# 'Core',
# 'CxxBridge',
# 'BatchedBridge',
# 'DevSupport',
# 'RCTActionSheet',
# 'RCTAnimation',
# 'RCTGeolocation',
# 'RCTImage',
# 'RCTLinkingIOS',
# 'RCTNetwork',
# 'RCTSettings',
# 'RCTText',
# 'RCTVibration',
# 'RCTWebSocket',
已注释的库是我最初尝试使用的库,在搜索时我对其进行了注释,并用那里的库替换了。
这是带有库列表的链接二进制文件:
反应版本:0.58.1
xcode版本:10.2