2

我使用终端创建 podfile:

$ cd /Users/user_name/Desktop/CocoaPodsTest
$ touch Podfile

但我在 finder 中找不到 podfile,但我可以使用“vim podfile”来编辑它。当我安装 podfile 时,它​​会显示以下信息:

[!] 无法自动选择 Xcode 项目。在您的 Podfile 中指定一个,如下所示:

project 'path/to/Project.xcodeproj'

当我重新启动我的 mac 时,如果我安装了 pod,它显示这个 pod 不存在!

它发生在我将 xcode 版本更新到 8.0 时。

4

1 回答 1

7

使用命令pod init创建一个 podfile

$ pod init

提示:CocoaPods 提供了一个 pod init 命令来创建一个具有智能默认值的 Podfile。你应该使用它。

于 2016-10-27T09:43:36.723 回答