xcpretty / xcode-install

🔽 Install and update your Xcodes
https://fastlane.tools
MIT License
2.59k stars 243 forks source link

Allow specification of local network cache URL #451

Closed russell-garmin closed 3 months ago

russell-garmin commented 3 years ago

https://github.com/xcpretty/xcode-install/pull/269 brought up to date with master (closes #269)

Brief

Our company uses fastlane extensively (including xcversion) in a distributed environment, with each developer provided their own Mac. As a result we use xcversion to install the same version of Xcode on multiple Macs, however the set up prevents "imaging" each device.

In order to prevent multiple downloads of Xcode (especially in the middle of the day when the office LAN is congested) we required the ability to "cache" Xcode DMG/XIP files in a central location. This PR provides the option to includes a base URL that contains these cached files.

Example Usage

Simply append --cache-url-base=[INSERT_URL] to the xcversion command, omitting the Xcode file name.

e.g. xcversion install 9.3 --cache-url-base=http://10.1.1.15/XcodeCache

Related

Possibly a solution for issue #198 (Resolves #198)

rogerluan commented 3 years ago

Thank you so much for implementing this feature @russell-garmin ! I've left some comments for you, although your PR looks good overall. Please take a look when you have the chance 🙇