xcode - 我找不到 podfile

标签 xcode cocoapods 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 initcreate a podfile .

$ pod init

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

关于xcode - 我找不到 podfile,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40280286/

相关文章:

xcode - 在 macOS 命令行应用程序上设置框架 - Reason : image not found

ios - Cocoapods:未在 xcodebuild 上加载 Google SDK

swift - 当我编译应用程序时,我得到一个等于这个 : Could not build Objective-C module 'Firebase' 的错误

ios - 从开源仓库创建 CocoaPods 库

c++ - 有人在 Xcode 3.2 中输入字符串有问题吗?

ios - 使用 Cocoapods 的 SinchService 集成失败

ios - Podfile 未下载最新 Swift 3 版本的 pod

iphone - buildDate 和 buildNumber 的 plist 属性名称?

iOS模拟器不显示应用程序

ios - 在对象库中哪里可以找到View对象?