上下文:我正在尝试使用react-native-video
. iOs 安装说明以npx pod-install
.
跑步:
npx pod-install
回报:
npx: installed 1 in 1.113s
Scanning for pods...
CocoaPods is not supported in this project
输出消息对我还没有帮助。所以我去了npm pod-install。看起来它抽象了 CocoaPods 和 gem 的复杂性。
有没有比学习 CocoaPods 和 gem 更简单的方法来解决这个问题?
包.json
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
},
"dependencies": {
"expo": "~37.0.3",
"react": "~16.9.0",
"react-dom": "~16.9.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-37.0.1.tar.gz",
"react-native-video": "^4.4.5",
"react-native-web": "~0.11.7"
},
"devDependencies": {
"babel-preset-expo": "~8.1.0",
"@babel/core": "^7.8.6"
},
"private": true
}