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?

Code
  • 6,041
  • 4
  • 35
  • 75

2 Answers2

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.

l'L'l
  • 44,951
  • 10
  • 95
  • 146
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
Adi Obe
  • 11
  • 2