In my case I entered this line into terminal and then tried to install the pod file again.
rm -rf ~/.cocoapods/repos/trunk/
and it worked.
Source: https://github.com/CocoaPods/CocoaPods/issues/9260
Catalina error Mac OS OSX solution
In my case I entered this line into terminal and then tried to install the pod file again.
rm -rf ~/.cocoapods/repos/trunk/
and it worked.
Source: https://github.com/CocoaPods/CocoaPods/issues/9260