yan*_*One 2 xcode cocoapods podfile
我使用终端创建podfile:
$ cd /Users/user_name/Desktop/CocoaPodsTest
$ touch Podfile
Run Code Online (Sandbox Code Playgroud)
但我在finder中找不到podfile,但我可以用'vim podfile'来编辑它.当我安装podfile时,它会显示以下信息:
[!]无法自动选择Xcode项目.在Podfile中指定一个,如下所示:
Run Code Online (Sandbox Code Playgroud)project 'path/to/Project.xcodeproj'
当我重新启动我的Mac,如果我安装pod,它显示此pod不存在!
它发生从我更新xcode版本到8.0.
使用命令荚初始化到创建podfile.
$ pod init
Run Code Online (Sandbox Code Playgroud)
提示:CocoaPods提供了pod init命令来创建具有智能默认值的Podfile.你应该使用它.