Cocoa Pods Error ld: library not found for -lPods

Ok so I found the answer (that worked for me) using some suggestions from this post

I was actually getting a different Warning that I hadn't noticed.

Pods was rejected as an implicit dependency for 'libPods.a' because its
architectures 'armv7 armv7s' didn't contain all required architectures
'armv7 armv7s arm64'

It was actually related to the Pods target not having the correct architectures. It turned out to be a xCode bug after all. In my Pods Target I had all the correct acrhitectures selected, armv7, armv7s, and arm64.

THE SOLUTION:

  1. Update cocoapods to the newest version that supports 64 arch.

    sudo gem update cocoapods
    
  2. Delete all Valid Architectures and do a project clean (which fails alot..)

  3. Re-Add the architectures that you just removed and voilà!