“Podfile”已损坏,无法打开。

“Podfile” is damaged and can’t be opened.

我无法打开或编辑 Podfile

当我尝试通过 "vim Podfile"

在终端中打开它时

我可以看到 Podfile 的内容是这样的。

如何打开和编辑我的 Podfile?

我刚刚删除了损坏的那个,用以前的内容创建了一个新的 podfile,然后就完全正常了。我不知道是什么原因,但这解决了我的问题。