Found the problem. Something had updated the "objectVersion" value in the project.pbxproj to "70" which I think is not recognized by the xcodeproj yet. I set it to "60" and the error went away.
from https://github.com/CocoaPods/CocoaPods/issues/12671