For anyone who is still experiencing this issue, this helped me:
cd ios rm -rf ~/Library/Caches/Cocoapods rm -rf ~/Library/Developer/Xcode/DerivedData pod deintegrate pod setup pod install