XcodesOrg / XcodesApp

The easiest way to install and switch between multiple versions of Xcode - with a mouse click.
MIT License
7.09k stars 310 forks source link

Disable option to install visionOS on Intel machines #514

Open rtharston opened 9 months ago

rtharston commented 9 months ago

Installing the visionOS requires Apple Silicon and is can't be installed using Xcode on Intel machines, but in Xcodes the install button is enabled.

Curious to see what would happen I clicked install on my Intel machine and it successfully downloaded and installed, but it can't actually be used in Xcode.

I considered suggesting replacing the button with 'Download' so people can use Xcodes to download the runtime for another machine, but a) they can install Xcodes on the other machine and b) clicking Install leads to the downloaded image getting deleted, so 'Download' doesn't seem to be a normally supported option anyway.

So I suggest the button is removed and replaced with a "Requires Apple Silicon Mac" label, like in Xcode.

Xcode

Screenshot 2024-02-28 at 1 57 57 PM

Xcodes

Screenshot 2024-02-28 at 1 50 43 PM
rtharston commented 9 months ago

At some point I need to figure out why I can't build Xcodes locally so I can make simple things like this into a PR...

rtharston commented 9 months ago

And in case you were wondering, the runtime actually shows up in Xcode as being installed.

Screenshot 2024-02-28 at 2 10 18 PM

But, as expected, it doesn't actually work.

Screenshot 2024-02-28 at 2 10 35 PM
MattKiazyk commented 8 months ago

I really hate to hardcode the check, but looks like there's nothing in Apple's api's that gives this.

Let me know what trouble you are having building locally?

rtharston commented 8 months ago

I eventually tracked down the error. Something about the Sparkle library not getting linked, so to get around the issue for now I just removed the Sparkle dependency and commented out the views that use it.

If that doesn't spark any immediate ideas on the proper fix I can dig up the error again. (I can't remember how I figured it out last week...)