【发布时间】: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
【问题讨论】: