$ pod install 后出现下面错误:node
[!] CocoaPods could not find compatible versions for pod "Folly":react
In snapshot (Podfile.lock):react-native
Folly (from `./RNComponent/node_modules/react-native/third-party-podspecs/Folly.podspec`)ui
In Podfile:spa
Folly (from `./RNComponent/node_modules/react-native/third-party-podspecs/Folly.podspec`)rem
React/CxxBridge (from `./RNComponent/node_modules/react-native`) was resolved to 0.57.5, which depends onio
Folly (= 2016.10.31.00)class
觉得是cocoapods 版本高了,用低版本的试试require
$ pod _1.1.1_ install ,依然报错module
[!] Unable to satisfy the following requirements:
- `Folly (from `./RNComponent/node_modules/react-native/third-party-podspecs/Folly.podspec`)` required by `Podfile`
- `Folly (= 2016.10.31.00)` required by `React/CxxBridge (0.57.5)`
仔细看下错误缘由,发现 CxxBridge 应该去掉,去掉便可