Search code examples
cocoapodspodfile

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


I am unable to open or edit the Podfile

pod

when I try to open it in the terminal by "vim Podfile"

I can see the content of the Podfile as this.

enter image description here

How can I open and edit my Podfile?


Solution

  • I just deleted the damaged one, initiated a new podfile with the previous content, then it worked totally fine. I don't know what was the cause, but this solved my problem.