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

xcode installed command doesn't parse .xcode-version beta format #306

Closed
rzulkoski opened this issue Jul 10, 2023 · 1 comment · Fixed by #307
Closed

xcode installed command doesn't parse .xcode-version beta format #306

rzulkoski opened this issue Jul 10, 2023 · 1 comment · Fixed by #307

Comments

@rzulkoski
Copy link

When using the Xcode 15 beta you can update your .xcode-version file to reference version "15" or "15.0" and as long as you only have 1 beta installed it will resolve the correct path. However, if you have more that one beta installed it will return an error due to it finding multiple matches, which is the desired behavior. In order to disambiguate which version you are trying to reference you can specify a version like "15.0b3". The issue is that the xcode installed command doesn't recognize this format.

This causes downstream issues when using tools like Fastlane for builds as it is able to properly determine the desired version, but then causes an error when querying xcodes.

Desired behavior:
xcodes installed "15.0b2"
/Applications/Xcode-15.0.0-Beta.2.app

Actual behavior:
xcodes installed "15.0b2"
15.0 B 2 is not installed.

@rzulkoski
Copy link
Author

I have just discovered that specifying the version as "15.0beta3" does appear to work. Would it still be valuable to include this change to parse the shorthand version as well? Or maybe the .xcode-version README should spell it out as well.

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 a pull request may close this issue.

1 participant