xcpretty / xcode-install

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

Installing Xcode 10.3 fails with "bundle format unrecognized" #343

Closed Nezz closed 1 year ago

Nezz commented 4 years ago

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.

fkorotkov commented 4 years ago

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

Nezz commented 4 years ago

No solution sadly, had to do a manual install.

fkorotkov commented 4 years ago

@Nezz ended up doing the same! 🙌