Removing Pod from project - xcode

…衆ロ難τιáo~ 提交于 2019-12-03 12:15:46

问题


I'm trying to remove pod from my project. After i'm deleting all the files and everything i'm getting this messages

diff: /../Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

I tried to remove the pods from the project, reinstall them, remove the script from the build phase, nothing is working.


回答1:


remove the pod from the pod file then reinstall pods

open terminal and type

cd ~/projectDirectoryPath

then type

open -a Xcode Podfile

this will open up the podfile

delete the line

 pod 'Alamofire'

then save the file (Alamofire is just an example)

in the terminal type

pod install

and this should update the project and remove the unwanted pod file..




回答2:


Ok, I fixed it.

Just use this tool https://github.com/kylef/cocoapods-deintegrate and now everything works fine!




回答3:


Just to simplify what Aviv mentioned, if you want to completely remove all traces of any pods from a project then just delete all of the pod related files from your project folder and run:

sudo gem install cocoapods-deintegrate

pod deintegrate

And the sandbox Podfile.lock error should go away.



来源:https://stackoverflow.com/questions/30116595/removing-pod-from-project-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!