Skip to content

[Feature]Allow opening incompatible Xcode versions - #686

Closed
ipavlidakis wants to merge 1 commit into
XcodesOrg:mainfrom
ipavlidakis:feature/open-xcode-on-unsupported-os
Closed

ipavlidakis wants to merge 1 commit into
XcodesOrg:mainfrom
ipavlidakis:feature/open-xcode-on-unsupported-os

Conversation

@ipavlidakis

Copy link
Copy Markdown

This revision, implements the mechanism that allows opening Xcode versions that are incompatible with the current macOS version. That applies on all Xcode versions that have been released with older or later macOS versions than the running one.

With this revision, by tapping Open, we check if the running major version is equal to the selected Xcode's required major version:

  • if they are equal, we perform the NSWorkspace openApplication like usual
  • if they are not, we construct a URL to the Xcode's binary (/Contents/MacOS/Xcode). Then we instantiate a new process and pass the binary path for execution (we use a Process rather than asking the NSWorkspace to open the binary, to avoid showing the terminal window).

@luey-p

luey-p commented Jan 25, 2025

Copy link
Copy Markdown

@MattKiazyk Instead of navigating to Xcode's binary to open the app, opening it directly through the Xcodes app for these unsupported Xcode versions would be amazing.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants