mono0926 / LicensePlist

A license list generator of all your dependencies for iOS applications
https://www.slideshare.net/mono0926/licenseplist-a-license-list-generator-of-all-your-dependencies-for-ios-applications
MIT License
2.42k stars 145 forks source link

Doesn't work behind proxy #163

Open mudkiplex opened 2 years ago

mudkiplex commented 2 years ago

I can't get the tool to run behind a proxy. I've installed it via brew and all other terminal commands such as curl and ping work in my environment. Does it not support environment variables such as HTTP_PROXY?

acevif commented 1 year ago

@mudkiplex Hi, Could you please try setting your proxy in macOS's system preference?

I have not tried it yet, but I am guessing you can specify a proxy via system preference. Because LicensePlist uses APIKit, APIKit uses apple's URLSession class, and the URLSession API refers to the system preference for the proxy setting.

The URLSession class natively supports the data, file, ftp, http, and https URL schemes, with transparent support for proxy servers and SOCKS gateways, as configured in the user's system preferences. https://developer.apple.com/documentation/foundation/urlsession