ReactNative 集成到已有iOS项目的坑点

【错误】error An unexpected error occurred: "https://registry.npm.taobao.org/jsc-android/dow...

taobao镜像不可用
还原节点

执行yarn config set registry https://registry.npmjs.org --global

【错误】[!] The name of the given podspec Yoga doesn't match the expected one yoga

pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

官方文档的名称写的不对,应该是 Yoga 而不是 yoga

pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

【错误】[!] CocoaPods could not find compatible versions for pod "yoga":
In Podfile:
yoga (from ../node_modules/react-native/ReactCommon/yoga)

Specs satisfying the yoga (from../node_modules/react-native/ReactCommon/yoga) dependency were found, but they required a higher minimum deployment target.

podfile 中 platform :ios, '8.0' 版本改的高一点

你可能感兴趣的:(ReactNative 集成到已有iOS项目的坑点)