Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cocoapos error - [!] Couldn't determine repo type for URL: `https://cdn.cocoapods.org/`: Non-HTTP proxy URI

I am getting

[!] Couldn't determine repo type for URL: https://cdn.cocoapods.org/: Non-HTTP proxy URI:

error during pod install when i am trying to run a flutter project.

https proxy is in place on terminal using bash profile.

Also tried to add source 'https://github.com/CocoaPods/Specs.git' in podfile but receives same error with this URL.

like image 575
sandy Avatar asked Apr 17 '26 16:04

sandy


2 Answers

Disabling IPV6 fixes this.

To disable IPV6 on Mac OS X, do the following:

  1. Open System Preferences and click the Network icon.
  2. Select the network you are using - It will usually be labeled Wi-Fi.
  3. Click the Advanced.. button.
  4. Click the TCP/IP tab.
  5. Select the Configure IPv6 drop-down menu and set it to Link-local only.
  6. Click the OK button.

Source

like image 84
ynotu. Avatar answered Apr 19 '26 07:04

ynotu.


Add a new CocoaPods repository with CDN support to your local CocoaPods configuration.

pod repo add-cdn trunk https://cdn.cocoapods.org/
like image 26
kiran bhalerao Avatar answered Apr 19 '26 07:04

kiran bhalerao