小编Xav*_*eer的帖子

npx pod-install 返回“此项目不支持 CocoaPods”

上下文:我正在尝试使用react-native-video. iOs 安装说明以npx pod-install.

跑步:

npx pod-install
Run Code Online (Sandbox Code Playgroud)

返回:

npx: installed 1 in 1.113s
Scanning for pods...
CocoaPods is not supported in this project
Run Code Online (Sandbox Code Playgroud)

输出消息对我还没有帮助。所以我去了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"
  }, …
Run Code Online (Sandbox Code Playgroud)

cocoapods react-native expo react-native-video pod-install

8
推荐指数
1
解决办法
1万
查看次数