I had a xcode project with cocoa pods integrated but then I deleted it and made a new project with the same name but cocoa pods is still integrated and giving my project errors. How do I fix this?
Asked
Active
Viewed 3,173 times
2
-
cocoapods-deintegrate[https://github.com/CocoaPods/cocoapods-deintegrate#cocoapods-deintegrate] is something you should use. – Vivek Molkar Feb 21 '16 at 06:55
-
Please try running 'pod deintegrate' at the project folder. – chubao Feb 23 '16 at 07:14
-
Possible duplicate of [How to remove CocoaPods from a project?](http://stackoverflow.com/questions/16427421/how-to-remove-cocoapods-from-a-project) – Marco Feb 25 '16 at 12:16
1 Answers
2
delete the .lock, the xcworkspace, and the Pods folder, and pod install again
sudo rm podfile.lock
sudo rm project.xcworkspace
sudo rm -R Pods
pod install

Prune
- 76,765
- 14
- 60
- 81

Learn Swift
- 570
- 5
- 15
-
Its worked. Sometimes this command sudo rm project.xcworkspace not work. So go to your directory and simply delete it. – Alwin Jan 08 '20 at 09:07