Export IOS iap crashes

Godot Version

4.0

Question

Running my exported ipa on an iPhone I get the exception below just after the splash screen :

Exception	NSException *	"Supported orientations has no common orientation with the application, and [UIAlertController shouldAutorotate] is returning YES"	0x000000028121abe0

HELP !!!

1 Like

The code below in the main scene fixed the problem. Even for all the other scenes that do not have it.

func _process(_delta):
	DisplayServer.screen_set_orientation(DisplayServer.SCREEN_PORTRAIT)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.