migueldeicaza / SwiftGodot

New Godot bindings for Swift
https://migueldeicaza.github.io/SwiftGodotDocs/tutorials/swiftgodot-tutorials/
MIT License
1.07k stars 70 forks source link

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

Closed mayoff closed 4 weeks ago

mayoff commented 1 month ago

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 commented 4 weeks ago

Thank you for this contribution!