Skip to content

Installing Xcode 26.2 on macOS Intel actually installed the Silicon version #456

Open

Description

@diegum

I ran this command on an Intel MacBook 2019 with most recent version of macOS (Tahoe 26.2, xcodes 1.6.2):

$ sudo xcodes install 26.2 --directory /opt/xcode/26.2

I was expecting xcodes to get the Universal .xip. Instead, it got the arm64 flavor. Consequently, xcodebuild threw "Bad CPU type in executable". I had to download the correct .xip manually, run xcodes --path=/path/to/manually/downloaded.zip

I read others reporting the opposite: they get the universal .xip on Silicon. Looks like the poles may be reversed, doesn't it?

Activity

  1. mattrubin commented on Jan 3, 2026

    @mattrubin

    A bit more detail on the workaround suggested above:

  2. ajayrana08 commented on Jan 15, 2026

    @ajayrana08

    then how your bridge work for emulator like if you are using android studio with flutter project then emulator is not showing for running because if we dowload from website then it can't move to application package

  3. jacobcxdev commented on Feb 13, 2026

    @jacobcxdev

    Just wanted to note that this is still an issue and the manual download is much trickier in headless environments, so it would be good to get this sorted.

  4. JonathanBocanegra commented on Feb 25, 2026

    @JonathanBocanegra

    Was able to get the app registered with this!

    Visit and download 26.2 universal xip here XCode

    Once downloaded, open terminal

    cd ~/Downloads
    xip -x Xcode_26.2_Universal.xip
    sudo mv ~/Downloads/Xcode.app /Applications
    sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

    you can assert it works with

    xcodebuild -version
    # Xcode 26.2
    # Build version 17C52
  5. kambala-decapitator commented on Mar 17, 2026

    @kambala-decapitator

    just had the same with 26.3

  6. mvillafuertem commented on May 17, 2026

    @mvillafuertem

    Hi there @MattKiazyk, Is this project still actively maintained? The last release was in June 2025

  7. pronebird commented on Oct 2, 2026

    @pronebird

    It's problematic on CI runner. It would be great to have a setting to download universal image.

  8. smm-h commented on Oct 17, 2026

    @smm-h

    Still happens with xcodes 2.1.0, and the cause looks like install not applying the architecture filter that 2.1.0 added to list.

    Setup: xcodes 2.1.0 (the universal xcodes.zip from the release), default data source (xcodeReleases), macOS Tahoe 26.7 (25G229) on x86_64 (Intel Xeon E5-2697 v2), installing Xcode 26.6 (17F113).

    What happens:

    1. xcodes list prints 26.6 (17F113) [Universal] and says it is showing "Universal (x86_64)" Xcodes for this Mac.
    2. xcodes install 26.6 downloads Xcode_26.6_Apple_silicon.xip.
    3. file /Applications/Xcode-26.6.0.app/Contents/MacOS/Xcode reports Mach-O 64-bit executable arm64, and xcodebuild fails with Bad CPU type in executable.

    Why: the cached list (~/Library/Application Support/com.robotsandpencils.xcodes/available-xcodes.json) has two entries for 26.6.0+17F113: first the one whose URL ends in Xcode_26.6_Apple_silicon.xip (arm64), then the one ending in Xcode_26.6_Universal.xip (arm64 and x86_64). printAvailableXcodes filters by ArchitectureFilter.defaultForMachine, but XcodeInstaller picks xcodeList.availableXcodes.first(withVersion: version) (Sources/XcodesKit/XcodeInstaller.swift, line 327 on main), which is the Apple silicon entry because it comes first.

    Workaround without downloading by hand: removing only the Apple silicon entry from that cached JSON and running xcodes install 26.6 without --update downloaded and installed the Universal build; its Xcode binary is x86_64 plus arm64 and xcodebuild runs.

    Expected: install picks the variant the host can run, as list does (Universal on Intel), or takes the same --architecture option list takes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions