Pod Update is removing "Target Support Files" but not updating my project settings

I encountered this problem when I was refactoring a project. After removing a CocoaPod, I had remnants of it that were referenced. Cleaning caches and rebuilding did not resolve the issue.

I was able to resolve it using cocoapods-deintegrate referenced in the user's comment above.

Steps to resolve:

  1. Close the project in Xcode so you don't have Xcode throwing warnings at you about differences between versions (assuming you're using version control, which is a good idea if you're messing with CocoaPods).

  2. Install cocoapods-deintegrate by typing in Terminal:

    gem install cocoapods-deintegrate

  3. Type pod deintegrate from the directory of your project.

  4. Open the project in Xcode, clean caches and rebuild. Your Podfile should still be there...leave it alone. We'll get to that in a moment.

  5. Close the project.

  6. Type pod install

  7. Open the project, clean caches and rebuild.

These are the steps I followed to resolve this issue.

Update:

I also used this methodology to resolve a linker error which cropped up when I deleted a reference to a class file instead of the file itself. Upon doing that, I got this error:

error: linker command failed with exit code 1 (use -v to see invocation)


You can try

pod deintegrate
pod install

*You should be located at Podfile directory