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

Installing Xcode 10.3 fails with "bundle format unrecognized"

Open Nezz opened this issue 5 years ago • 3 comments

Using xcode-install-2.6.0, we want to install Xcode 10.3 on a machine running macOS 10.14.5. However, it fails with the following error:

/Applications/Xcode-10.3.app: bundle format unrecognized, invalid, or unsuitable

I tried enabling the --verbose flag, but it did not increase the amount of information logged. Here's the full output, with most of the download status messages removed:

 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0%
[...]
100 5764M  100 5764M    0     0  17.2M      0  0:05:33  0:05:33 --:--:-- 15.1M
15:19:05  /Applications/Xcode-10.3.app: bundle format unrecognized, invalid, or unsuitable

After the failure we receive a 0 exit code, which is rather impractical for CI scripts. The download caches will be present in ~/Library/Caches/XcodeInstall. The Xcode_10.3.xip found there can be extracted successfully, containing Xcode.app.

Nezz avatar Aug 16 '19 13:08 Nezz

@Nezz have you figured a workaround? I'm having the same issue with 11.2.1 😔

fkorotkov avatar Nov 10 '19 16:11 fkorotkov

No solution sadly, had to do a manual install.

Nezz avatar Nov 10 '19 17:11 Nezz

@Nezz ended up doing the same! 🙌

fkorotkov avatar Nov 10 '19 21:11 fkorotkov