xcpretty / xcode-install

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

Use injected `XCODE_INSTALL_CACHE_DIR`variable if exist. #403

Open makesource opened 3 years ago

makesource commented 3 years ago

Thank you for great library 😀

Issue

We can specify the downloaded xcode folder with ENV["XCODE_INSTALL_CACHE_DIR"] But when downloading not cached Xcode version, the file stored the default directory #{ENV['HOME']}/Library/Caches/XcodeInstall. So to work local cache properly, I have to move xip file after download job done.

Proposal

If user injected XCODE_INSTALL_CACHE_DIR variable, the install job executed under this path.