I struggled with this for several hours today and this is what finally worked for me:
sudo gem update cocoapods --pre
pod update
- clean
- build
From what I’ve read, this is an issue with the new build process that is enabled by default in Xcode 10.2 though I’ve not found the workaround clearly documented anywhere yet. There may be a more elegant solution than what I described.