2

I'm trying to fully remove a library I installed using CocoaPods.

I've removed the entry from my Podfile and called pod install from the terminal.

All the library files seems to be deleted but I can still do import myLibrary in my iOS Swift project without any build errors.

Why is this so?

4
  • 3
    Have you cleaned the project... (deleted derived data)? Commented Feb 20, 2016 at 18:58
  • Possible duplicate of Remove or uninstall library previously added : cocoapods Commented Feb 25, 2016 at 12:14
  • @l'L'l You save my life. Commented Jun 27, 2016 at 22:12
  • @l'L'l That worked. Can you post it as an answer? Commented Jun 28, 2016 at 3:41

2 Answers 2

2

In order to completely remove the imports from a previously built project try to clean it first:

In Xcode:

K ( or Product > Clean )

This should clear the compiled code from within the projects release or debug directory:

/Library/Developer/Xcode/DerivedData/<Project>/Build/(Release or Debug)

The compiler will often try to use code that it's already compiled during the build process if it can.

Sign up to request clarification or add additional context in comments.

Comments

1

Try Cleaning your project.

or use deintegrate

 $ gem install cocoapods-deintegrate $ gem install cocoapods-clean 

in your project folder

 $ pod deintegrate $ pod clean 

Modify your pod file (delete what you don't want to use anymore)

 $ pod deintegrate 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.