Removing Pod from project - xcode

前端 未结 3 1032
深忆病人
深忆病人 2021-02-04 04:04

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 di         


        
相关标签:
3条回答
  • 2021-02-04 04:15

    Ok, I fixed it.

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

    0 讨论(0)
  • 2021-02-04 04:19

    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..

    0 讨论(0)
  • 2021-02-04 04:34

    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.

    0 讨论(0)
提交回复
热议问题