0 votes

When exiting the app by double clicking on my ipad's home button and swiping the window out of the screen, I get the following error:

No windows have a root view controller, cannot save application state

Any ideas as to what would cause this?

Thank you in advance.

Godot version 3.3.2
in Engine by (61 points)
edited by

Did you ever find a solution to this, this error still appears in Xcode 14.1 when exporting from Godot 3.5.1

No windows have a root view controller, cannot save application state

It is not clear to me what the implications of this error are.

When running the app on your device via xcode, use the stop button in xcode to exit the app.

Did you find a solution to this problem? I have the same problem. To be honest, I don't see a consequence, but would be great to know how to fix it.

1 Answer

0 votes
Best answer

If you are using get_tree().quit() then you should know that method is not supported in iOS. According to Apple, applications are supposed to be closed with home button. In that case just hide the exit button if OS.get_name() == "iOS" : button.hide()

by (153 points)
selected by

I use the Home button, edited question.

Maybe its some background process being cut off with sudden app kill. Is it working as it supposed to work? Then I'd not worry too much unless you are loosing some kind of save data. You might get more info from devs if you open an issue on github.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.