【问题标题】:No `Podfile' found in the project directory在项目目录中找不到“Podfile”
【发布时间】:2021-01-09 16:11:06
【问题描述】:

我正在尝试在 android studio 中运行 pod install 命令,但终端输出以下错误:[!] No Podfile' found in the project directory.

【问题讨论】:

  • 你需要先在根文件夹中使用pod init初始化它

标签: android-studio flutter dart terminal podfile


【解决方案1】:

不要忘记您需要从 ios 文件夹运行,而不是应用根目录。

要输入文件或文件夹的路径,请将文件或文件夹拖到终端窗口。像这样

【讨论】:

    【解决方案2】:

    如果接受的答案不起作用,我建议先尝试:

    在你的 android studio 上打开一个终端

    运行:

    cd ios
    

    然后:

    pod init
    

    然后:

    pod install
    

    【讨论】:

      猜你喜欢
      • 2023-01-19
      • 2021-08-26
      • 2016-08-22
      • 2019-07-02
      • 1970-01-01
      • 1970-01-01
      • 2022-07-19
      • 2019-06-25
      • 1970-01-01
      相关资源
      最近更新 更多