如何打开Podfile进行编辑

我用我的应用程序使用CocoaPods我注意到我无法打开pod文件,文件转向exec文件,如图像向下,我需要编辑它以添加新的库。

在此处输入图像描述

使用TextEdit打开Podfile使用终端

  $ cd "your_project_location" $ open -a TextEdit Podfile 

我想你会尝试这些步骤:

1- $ cd您的文件位置

2- $ open -a Xcode Podfile

从终端打开文件

vim Podfile

1.从终端打开podfile

 $ cd "your_project_location that contain podfile" $ nano Podfile 

你也可以用xcode打开podfile

右键单击podfile并选择openwith xcode。

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