Failed to install CocoaPods, I can't build my application for iOS

Maybe someone has encountered this problem. “Failed to install CocoaPods”
I received a similar message
I can build, but all builds fail in x code.
Please look at the screenshots
Thanks in advance

I encountered the same problem recently. Unity 2017.4.19f1 was working fine in 2019 as I was able to build to XCode then without errors, but now in 2017.4.36f1 and MacOS Catalina 10.15.1, I am getting this failed installation of CocoaPods.

I had only removed a few art assets and made changes for Android build in the project settings during this time.