xcode - 我找不到 podfile

我使用终端创建 podfile:

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

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

[!] Could not automatically select an Xcode project. Specify one in your Podfile like so:

project 'path/to/Project.xcodeproj'

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

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

最佳答案

使用命令pod init 到create a podfile .

$ pod init

Tip: CocoaPods provides a pod init command to create a Podfile with smart defaults. You should use it.

https://stackoverflow.com/questions/40280286/

相关文章:

spring - 基于模型变量+Spring表单+JSP的选中单选按钮

winapi - Windows 函数调用中的堆栈是如何设置的?

macos - 从 Mac OSX 移除 Saltstack

php - OMDb API 多个结果

json - R + fromJSON - 如何发送标题信息?

r - 在 r 中为多个箱形图创建循环

angular - 循环调用 Angular2 服务

vb.net - 为什么异步函数返回 System.Threading.Tasks.Task`1[S

haskell - Haskell 中的 'let' 和变量

r - 删除取值小于 n 的列?