xcode-install icon indicating copy to clipboard operation
xcode-install copied to clipboard

Allow specification of local network cache URL

Open mattcroxson opened this issue 6 years ago • 2 comments

Preface: Please excuse my possibly horrid code; I am not a Ruby dev by trade and have little experience with it.

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

mattcroxson avatar Apr 03 '18 22:04 mattcroxson

It would be great to get this behavior and something like #259 combined and merged to allow installation from cached xip files, whether remote or local. I'd also like to use xcversion as part of an Xcode deploy script (using Ansible), but Apple's developer download servers aren't usually the best for performance.

jshier avatar May 15 '18 17:05 jshier