I have already a projects in which cocoapod
was working fine previously but somehow now when I am trying to include new file. I am getting below error.
/Users/username/.podenv/libexec/../libexec/podenv-exec: line 31: /Users/username/.podenv/versions/1.0.1/bin/pod: No such file or directory
I was trying to delete MyProject.xcworkspace
and Podfile
so that I can reinstall Podfile
but again getting above error.
My guess is that you somehow deleted the cocoapods
itself rather then project and Podfile
of specific project, kindly re install the cocoapods
by following below commands:
Enter command:
$ sudo gem install cocoapods
Create new Xcode project.
Navigate to directory containing Xcode project. Use:
cd ../directory-location/..
or cd [drag-and-drop project folder]
Enter command to create the Podfile
:
$ pod init
Enter command
$ pod install