ios 如何打开 Podfile 进行编辑

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/38307085/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 09:40:32  来源:igfitidea点击:

How can I open Podfile for editing

ioscocoapods

提问by Ahmed Abdallah

I used CocoaPodswith my app I noticed I can't open pod fileand the file turn to execfile like the image down, I need to edit it to add new libraries.

CocoaPods与我的应用程序一起使用时我注意到我无法打开pod file并且文件变成了exec像图像一样的文件,我需要编辑它以添加新库。

enter image description here

在此处输入图片说明

回答by Ahmed Abdallah

Open the Podfile with TextEdituse terminal

使用 TextEdit使用终端打开 Podfile

 $ cd "your_project_location"
 $ open -a TextEdit Podfile

回答by Abd Aboudi

I think you will try these steps :

我想你会尝试这些步骤:

1- $ cd Your file location

1- $ cd 您的文件位置

2- $ open -a Xcode Podfile

2- $ open -a Xcode Podfile

回答by Yakiv Kovalsky

Open file from Terminal

从终端打开文件

vim Podfile

vim Podfile

回答by Amit Jagesha シ

1.open podfile from terminal

1.从终端打开podfile

$ cd "your_project_location that contain podfile"
$ nano Podfile

2.You can also open podfile using xcode

2.你也可以使用xcode打开podfile

Right click to podfile and choose openwith xcode.

右键单击 podfile 并选择 openwith xcode。

回答by Igor

Drag and drop it to TextEdit or open project in XCode and edit there.

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