xcodereleases/xcinfo

Illegal Hardware Instruction Error

Opened this issue · 9 comments

Trying to run xcinfo installed when you do not have Xcode installed returns an illegal hardware instruction error:

❯ xcinfo installed
[1]    69040 illegal hardware instruction  xcinfo installed

Same here. It's just with the command xcinfo installed, other commands work. Currently no Xcode is installed. xcinfo is installed with homebrew.

I experienced this issue today while having Xcode 12.4 installed and trying to install Xcode 12.5 beta 2 with xcinfo. The error appeared while downloading the Xcode 12.5 beta 2 xip file at about 60% download progress.

Same installing 12.4 while 12.5.1 and 13.0-b2 are installed: (mac OS 11.4), xcinfo 0.7.0 installed with Homebrew

richard@iMac-2020 ~ % xcinfo install "12.4"

Identifying
Found multiple possibilities for the requested version '12.4'.

  1. 12.4 (12D4e)
  2. 12.4 RC 1 (12D4e)
    Please choose the version you want to install: 1
    Starting installation.

Sign in to Apple Developer
[3/7] Requesting authentication

Two-factor authentication is enabled for your account.
Please enter a 6 digit verification code generated on one of your trusted devices.
Type 'sms' to receive a verification code on a trusted phone number.
Apple ID Verification Code:
XXXXXX

[7/7] Requesting download auth info

Downloading
Source: https://download.developer.apple.com/Developer_Tools/Xcode_12.4/Xcode_12Source: https://download.developer.apple.com/Developer_Tools/Xcode_12.4/Xcode_12.4.xip (11.66 GB)
[█████████████████▍ ] 87.3%, remaining: 1.48 GB, speed: 12.5 MB/s
zsh: illegal hardware instruction xcinfo install "12.4"

Got the same again installing 13.0 beta 3:

richard@iMac-2020 ~ % xcinfo install "13.0 Beta 3"
...
...
Downloading
Source: https://download.developer.apple.com/Developer_Tools/Xcode_13_beta_3/XcoSource: https://download.developer.apple.com/Developer_Tools/Xcode_13_beta_3/Xcode_13_beta_3.xip (10.54 GB)
[███████████▋ ] 58.4%, remaining: 4.39 GB, speed: 59.3 MB/s
zsh: illegal hardware instruction xcinfo install "13.0 Beta 3"

Re-running the command immediately then succeeded....

I can confirm this issue but wasn't able to reproduce it with an attached debugger. Any recommendations how to find the source of the problem?

mman commented
€ xcinfo install 13.1

Identifying
Found matching Xcode 13.1 RC 1 (13A1030d).
Starting installation.

Sign in to Apple Developer
[3/7] Requesting authentication

Two-factor authentication is enabled for your account.
Please enter a 6 digit verification code generated on one of your trusted devices.
Type 'sms' to receive a verification code on a trusted phone number.
Apple ID Verification Code: 
XXXXXX

[7/7] Requesting download auth info

Downloading
Source: https://download.developer.apple.com/Developer_Tools/Xcode_13.1_Release_Candidate/Xcode_13.1_Release_Candidate.xip (10,58 GB)
[███████████████████▌] 98.1%, remaining: 206,0 MB, speed: 12,4 MB/s
[1]    49764 illegal hardware instruction  xcinfo install 13.1

Just had this happen 5 times in a row trying to download Xcode 13.2 Beta (intel iMac 2020).

Installing 13.2 beta 2 I got this a lot: twice on intel iMac, four times on M1 Mac Mini before giving up.

Downloading and building the code got a version that completed first time on the M1, and was able to download the previous beta many times on the Intel iMac without issues.

Given the commits since the last release I'd guess that it isn't a code change, but maybe the release was built on had a beta SDK/XCode installed?

Regardless - if you are having this issue I'd suggest following the build + install instructions in the README to get your own fresh build.

mman commented

Here again:

xcinfo install '14.0 Beta 4'

Identifying
Found matching Xcode 14.0 Beta 4 (14A5284g).
Starting installation.

Sign in to Apple Developer
[3/7] Requesting authentication

Two-factor authentication is enabled for your account.
Please enter a 6 digit verification code generated on one of your trusted devices.
Type 'sms' to receive a verification code on a trusted phone number.
Apple ID Verification Code: 
XXXXXX

[7/7] Requesting download auth info

Downloading
Source: https://download.developer.apple.com/Developer_Tools/Xcode_14_beta_4/Xcode_14_beta_4.xip (7,48 GB)
[██████              ] 30.4%, remaining: 5,21 GB, speed: 10,9 MB/s
[1]    81341 illegal hardware instruction  xcinfo install '14.0 Beta 4'