【问题标题】:Podfile not recognized in Xcode DirectoryXcode 目录中无法识别 Podfile
【发布时间】:2021-08-26 19:07:57
【问题描述】:

我第一次尝试在 Xcode 中使用 CocoaPods,但在尝试安装 pod 时遇到了错误。

我安装了最新版本的 Cocoapods。我使用终端导航到我的 Xcode 项目的文件夹并使用 pod init 创建 Podfile。

之后,我打开 Podfile,包含安装我要查找的 pod 所需的所有代码,然后在同一目录中使用 pod install

此时,我收到以下错误:

[!] No `Podfile' found in the project directory.

当我再次尝试pod init 时,它告诉我:

[!] Existing Podfile found in directory

因此,它似乎可以看到 Podfile,但是当我尝试安装它时它无法识别它。

这是 Podfile 本身,如果有帮助的话:

platform :ios, '9.0'

target 'Flash Chat iOS13' do

  use_frameworks!

  # Pods for Flash Chat iOS13

  pod 'CLTypingLabel'

end

【问题讨论】:

    标签: xcode cocoapods zsh


    【解决方案1】:

    我可能发现了问题。我的一个目录有一个非常荒谬的名字,同时使用日文字符和日式数字。我更改了目录的名称,它找到了 Podfile。我希望这对将来的人有所帮助!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-10-19
      • 2018-05-02
      • 1970-01-01
      • 2021-07-01
      • 1970-01-01
      • 2021-05-13
      • 2015-11-09
      • 2014-07-10
      相关资源
      最近更新 更多