RN 0.42升级到0.47,ios:Apple Mach-O Linker Error.

RN 0.42升级到0.47,ios:Apple Mach-O Linker Error._第1张图片

js升级完,ios build项目的时候会出现上图的错误。参考这个官方的 链接 ,


RN 0.42升级到0.47,ios:Apple Mach-O Linker Error._第2张图片

在React 数组里 添加 CxxBridge 组件,再pod install ,出现Folly XXXX的错。此时再参考这个链接,需要添加react-native这些podspec,然后再pod就ok!

#Third party deps

pod'DoubleConversion',:podspec=> react_native_path+'/third-party-podspecs/DoubleConversion.podspec'

pod'GLog',:podspec=> react_native_path+'/third-party-podspecs/GLog.podspec'

pod'Folly',:podspec=> react_native_path+'/third-party-podspecs/Folly.podspec'

你可能感兴趣的:(RN 0.42升级到0.47,ios:Apple Mach-O Linker Error.)