Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]Allow opening incompatible Xcode versions #686

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ipavlidakis
Copy link

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).

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.

1 participant