报错信息为:
[!] CocoaPods could not find compatible versions for pod "React/Core":
In Podfile:
React/Core (from `./RNModule/node_modules/react-native`)
Specs satisfying the `React/Core (from `./RNModule/node_modules/react-native`)` dependency were found, but they required a higher minimum deployment target.
这里说React/Core需要依赖更高的系统版本,出现这个错误可以进node_modules/react-native
找到React.podspec
文件查看,会看到这么一行s.platforms = { :ios => "9.0", :tvos => "9.2" }
说明iOS版本最低要求9.0,调整到9.0即可
网友评论