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

iOS: Weak-link MetalFX #101614

Merged
merged 1 commit into from
Jan 16, 2025
Merged

iOS: Weak-link MetalFX #101614

merged 1 commit into from
Jan 16, 2025

Conversation

stuartcarnie
Copy link
Contributor

@stuartcarnie stuartcarnie commented Jan 15, 2025

Closes #101585

MetalFX must be weak-linked in the iOS Xcode project.

@Repiteo
Copy link
Contributor

Repiteo commented Jan 16, 2025

Does this fix #101585?

@stuartcarnie
Copy link
Contributor Author

@Repiteo yes, I've just confirmed it fixes the build.

@akien-mga
Copy link
Member

Looks pretty good! I'll let @bruvzg evaluate tomorrow and start the new beta 1 build once he confirms which solution to go for.

@@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
054F8BE62D38852F00B81423 /* MetalFX.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 054F8BE52D38852F00B81423 /* MetalFX.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note the Weak attribute, which allows apps to run on OS versions older than iOS 16, which don't have MetalFX.

@bruvzg
Copy link
Member

bruvzg commented Jan 16, 2025

Additionally, checked it on old macOS (12.7.6, MetalFX only supported on 13+), while we do not specify -weak_framework in macOS build config, it seems to do it automatically and runs, so it should not be an issue:

Screenshot 2025-01-16 at 08 00 59

@akien-mga akien-mga merged commit d33da79 into godotengine:master Jan 16, 2025
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@stuartcarnie stuartcarnie deleted the metalfx_ios branch January 16, 2025 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to export iOS builds
4 participants