I solved this by installing cocoapods 1.14.3 via brew and adding these to path
export PATH=/opt/homebrew/opt/ruby/bin:$PATH
export PATH=`gem environment gemdir`/bin:$PATH
Topic:
Developer Tools & Services
SubTopic:
Xcode Cloud
Tags: