xcpretty / xcode-install

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

used xip command to extract xip #337

Closed salmanasiddiqui closed 5 years ago

salmanasiddiqui commented 5 years ago

Used xip command instead of archive utility to extract xip file

jpsim commented 5 years ago

Do we know when xip was first added to macOS? Do we want to fallback to Archive Utility if xip isn't available?

salmanasiddiqui commented 5 years ago

I am not sure when was it added, but it was there in osx 10.8 if you look at the bottom of man xip page. Let me know if you think we should fallback, I will update the PR accordingly

jpsim commented 5 years ago

Are you sure that the OS X 10.8 version supported the -x option? The manpage you linked to doesn't reference it.

salmanasiddiqui commented 5 years ago

lol.. I am not sure.. I am not able to find --expand (-x) documented anywhere except doing man xip on my machine.

hiroshitoda commented 5 years ago

-x / --expand option is documented in man since 10.14(Mojave), but enabled as a hidden option since 10.10(Yosemite) at least. I checked around that on Sauce Labs.

I faced an error on 10.14(Mojave). It seems that 10.14 Archive Utility outputs Xcode.app to ~/Downloads and has no option to output to the same directory as original .xip file. This pull request is very welcome to me.

jazaval commented 5 years ago

@jpsim I was able to install Xcode 10.2.1 on macOS 10.14.5 with these changes - is there any other functional testing I could do that would be helpful in order to move on a merge and release of this? My team and I would really benefit from this working prior to Apple's WWDC conference (and subsequent Xcode betas) next week.

jpsim commented 5 years ago

I think this can be merged as-is, I just don't have the permissions necessary to do so.

cc @KrauseFx

jazaval commented 5 years ago

@KrauseFx can this be released to rubygems as a hot fix (2.5.1?) to unblock 10.14.5 installs? If there’s any additional testing scenarios to cover I’d be happy to help.

salmanasiddiqui commented 5 years ago

master branch has some issues. PR#338 addresses those issues.

nancy-gomez commented 5 years ago

Hello any updates on when this change will be released? Got hit with this regarding Xcode 11 Beta 3, then tested with non-beta version Xcode 10.2 and same thing. There seems to be an issue with Archive Utility's ability to expand the xip file. Currently doing the --no-install and xip command work-around but would much rather be able to use a patch with this change :)