what worked for me was to upgrade cocoapods globaly on my mac using brew and once that was done i did a pod update in my projects' ios file and all was well.
i). brew upgrade cocoapods (globaly on mac) ii).pod update (in your projects ios folder)