I was with the same error. In my case was the cocoapods version 1.12.1.
I solved replace cocoapods step to this:
- task: PowerShell@2 displayName: 'Install Cocoapods 1.12.0' inputs: targetType: 'inline' script: | sudo gem install cocoapods -v 1.12.0 pod _1.12.0_ install --repo-update
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: