I am not using Pods. But accidentally I installed it and deleted all folders from my project repo. After that , when compiling shows this error message. I searched podfile.lock file in my project folder but cannot find. Then why such error Help me to solve it.
Asked
Active
Viewed 501 times
0
-
Search for `Podfile` in your project. And try running `pod install` in your terminal. – PGDev May 13 '19 at 11:01
-
I don't want to use pods anymore. So why I should install it again ? – Sujisha Os May 13 '19 at 11:03
-
Are you opening the `.xcworkspace` instead of `.xcodeproj`? – PGDev May 13 '19 at 11:04
-
1Possible duplicate of [How to remove CocoaPods from a project?](https://stackoverflow.com/questions/16427421/how-to-remove-cocoapods-from-a-project) – Scriptable May 13 '19 at 11:05
-
See the answers on that suggested duplicate above, short version: you need to run `pod clean` and `pod deintegrate` – Scriptable May 13 '19 at 11:06
1 Answers
0
There are probably some CocoaPods related files and rules left over. You can use the pod deintegrate
command to remove CocoaPods from your project. See https://guides.cocoapods.org/terminal/commands.html#pod_deintegrate
Make sure you have your project in version control or backed up before doing this, so if something goes wrong you can always roll back.

Rengers
- 14,911
- 1
- 36
- 54