$ 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 應該去掉,去掉便可