Working Android project crashes on iOS

Godot Version

4.4.1, Compatibility Renderer, Mac Mini M4, iPhone 12

Question

I am currently working on porting my game from android to iOS. I went out and got a brand new mac mini and iPhone for development. When building and running the app for iOS however, I get an exception when running via xcode. I am totally new to mac/iOS development and am not sure how to progress. The project currently runs on android without issue.

So Far

I have tried building the project using the compatibility, mobile, and forward+ renderers. All with the same result.

I also tried the latest 4.5 dev build (and export templates), but I am getting the same result.

I am able to run a new, empty project. That builds and runs without issue.

Any ideas? Thanks

I was able to progress (a little) by removing all the ‘var’ declarations and replacing them with static types.

var a = “hello”; => string a = “hello”;

I understand it has to do with the limited support Godot has for C# / iOS building.

Also my json serializers stopped working. Not sure if its a Godot mono or newtonsoft json thing for iOS. Going to rewrite all my serialization to see if thats it.

2 Likes