如何打开 Podfile 进行编辑

How can I open Podfile for editing

我在我的应用程序中使用了 CocoaPods 我注意到我无法打开 pod file 并且文件变成了 exec 文件,如下图所示,我需要编辑它以添加新图书馆。

使用 TextEdit 打开 Podfile 使用终端

 $ cd "your_project_location"
 $ open -a TextEdit Podfile

1.open 来自终端的 podfile

$ cd "your_project_location that contain podfile"
$ nano Podfile

2.You 也可以使用 xcode

打开 podfile

右键单击 podfile 并选择打开方式 xcode。

将其拖放到 TextEdit 或在 XCode 中打开项目并在那里编辑。

我想你会尝试这些步骤:

1- $ cd 你的文件位置

2- $ open -a Xcode Podfile

从终端打开文件

vim Podfile