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

work around Godot crash when __CFBundleIdentifier isn't set #517

Merged

Conversation

mayoff
Copy link
Contributor

@mayoff mayoff commented Aug 13, 2024

The method -[GodotApplicationDelegate applicationDidFinishLaunching:] (which is part of Godot, not part of SwiftGodot) uses the environment variable __CFBundleIdentifier in a way that crashes if the variable is not set.

Terminal sets __CFBundleIdentifier, but Xcode does not.

This patch works around that crash.

The method `-[GodotApplicationDelegate applicationDidFinishLaunching:]` (which is part of Godot, not part of SwiftGodot) uses the environment variable `__CFBundleIdentifier` in a way that crashes if the variable is not set.

Terminal sets `__CFBundleIdentifier`, but Xcode does not.

This patch works around that crash.
@migueldeicaza
Copy link
Owner

Thank you for this contribution!

@migueldeicaza migueldeicaza merged commit 727a118 into migueldeicaza:main Aug 14, 2024
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