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

CREATE_PROJECT: Set Xcode MACOSX_DEPLOYMENT_TARGET #4685

Merged
merged 1 commit into from
Feb 5, 2023

Conversation

sluicebox
Copy link
Member

Mac xcode builds are currently broken when using the latest xcode on anything less than the latest macos version.

We have not been setting MACOSX_DEPLOYMENT_TARGET in the project file. This was okay before xcode 14, because xcode would use a reasonable default value. Xcode 14 changed this. Now when this property isn't set, xcode defaults to the maximum os version it's aware of. If the current os is less than this then the build fails.

Xcode 14 introduced RECOMMENDED_MACOSX_DEPLOYMENT_TARGET for this purpose, so now we use that. This shouldn't change behavior for earlier xcode versions, but I'm not in a position to test that.

@dwatteau
Copy link
Contributor

dwatteau commented Feb 5, 2023

I'm not an expert on this subject, but I confirm the issue and the reasoning looks good to me! Thanks

@sev-
Copy link
Member

sev- commented Feb 5, 2023

Thank you!

@sev- sev- merged commit d97bd0c into scummvm:master Feb 5, 2023
@sluicebox sluicebox deleted the xcode-macos-version branch February 6, 2023 02:38
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.

3 participants