This fixed it for me without having to go for the workaround
https://developer.apple.com/forums/thread/730974?answerId=766085022#766085022
using Cocoapods 1.13.0
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: