Help with Xcode errors

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Ragnar

I am using Godot version 3.2, Xcode version 11.5

I have exported my Godot project for iOS and Xcode can’t load the start scene and I get the following errors

2020-08-13 10:02:47.317981+0200 SuperCarSmash[48469:3587437] ERROR: Cannot open file ‘res://.tres’.
2020-08-13 10:02:47.318176+0200 SuperCarSmash[48469:3587437] At: scene/resources/resource_format_text.cpp:1228:load_interactive() - Condition “err != OK” is true. Returned: Ref()
ERROR: Cannot open file ‘res://.tres’.
At: scene/resources/resource_format_text.cpp:1228:load_interactive() - Condition “err != OK” is true. Returned: Ref()
2020-08-13 10:02:47.318505+0200 SuperCarSmash[48469:3587437] ERROR: Failed loading resource: res://.tres.
2020-08-13 10:02:47.318656+0200 SuperCarSmash[48469:3587437] At: core/io/resource_loader.cpp:278:_load() - Condition “found” is true. Returned: RES()
ERROR: Failed loading resource: res://.tres.
At: core/io/resource_loader.cpp:278:_load() - Condition “found” is true. Returned: RES()
2020-08-13 10:02:47.318827+0200 SuperCarSmash[48469:3587437] ERROR: res://Game.tscn:54 - Parse Error: [ext_resource] referenced nonexistent resource at: res://.tres
2020-08-13 10:02:47.318977+0200 SuperCarSmash[48469:3587437] At: scene/resources/resource_format_text.cpp:440:poll() - res://Game.tscn:54 - Parse Error: [ext_resource] referenced nonexistent resource at: res://.tres
ERROR: res://Game.tscn:54 - Parse Error: [ext_resource] referenced nonexistent resource at: res://.tres
At: scene/resources/resource_format_text.cpp:440:poll() - res://Game.tscn:54 - Parse Error: [ext_resource] referenced nonexistent resource at: res://.tres
2020-08-13 10:02:47.319132+0200 SuperCarSmash[48469:3587437] ERROR: Failed to load resource ‘res://Game.tscn’.
2020-08-13 10:02:47.324024+0200 SuperCarSmash[48469:3587437] At: core/io/resource_loader.cpp:208:load() - Condition “err != OK” is true. Returned: RES()
ERROR: Failed to load resource ‘res://Game.tscn’.
At: core/io/resource_loader.cpp:208:load() - Condition “err != OK” is true. Returned: RES()
2020-08-13 10:02:47.325644+0200 SuperCarSmash[48469:3587437] ERROR: Failed loading resource: res://Game.tscn.
2020-08-13 10:02:47.325842+0200 SuperCarSmash[48469:3587437] At: core/io/resource_loader.cpp:278:_load() - Condition “found” is true. Returned: RES()
ERROR: Failed loading resource: res://Game.tscn.
At: core/io/resource_loader.cpp:278:_load() - Condition “found” is true. Returned: RES()
2020-08-13 10:02:47.326048+0200 SuperCarSmash[48469:3587437] ERROR: Failed loading scene: res://Game.tscn
2020-08-13 10:02:47.326211+0200 SuperCarSmash[48469:3587437] At: main/main.cpp:1936:start() - Condition “!scene” is true. Returned: false
ERROR: Failed loading scene: res://Game.tscn
At: main/main.cpp:1936:start() - Condition “!scene” is true. Returned: false
2020-08-13 10:02:47.333640+0200 SuperCarSmash[48469:3587437] [Error] _authenticateUsingAlert:Failed to authenticate player with existing credentials.Error: Error Domain=GKErrorDomain Code=6 “The requested operation could not be completed because local player has not been authenticated.” UserInfo={NSLocalizedDescription=The requested operation could not be completed because local player has not been authenticated.}
2020-08-13 10:02:47.349152+0200 SuperCarSmash[48469:3587437] [Account Error] startAuthenticationForExistingPrimaryPlayer:Failed to Authenticate player.Error: Error Domain=GKErrorDomain Code=2 “The requested operation has been canceled or disabled by the user.” UserInfo={NSLocalizedDescription=The requested operation has been canceled or disabled by the user.}
2020-08-13 10:02:47.350035+0200 SuperCarSmash[48469:3587437] [Account Error] authenticationDidCompleteWithError: Authentication failed for player with error: Error Domain=GKErrorDomain Code=2 “The requested operation has been canceled or disabled by the user.” UserInfo={NSLocalizedDescription=The requested operation has been canceled or disabled by the user.}

I really don’t know what do to, any help is appreciated!

Are you targetting x64 or xARM? Or targetting both in a Universal Binary?

At the top of the stack looks like you might be referencing a resource that may not exist any more or there’s an error in your Singleton (if using one). The line of C++ this code is referencing is here.

Looks like at the bottom of the stack that GameCenter refused to Authenticate the user. Is GameCenter enabled on your device you’re remote debugging or build to? Or are you running it directly inside XCode?

This Apple Discussion might help

TheNormandyProject | 2023-02-24 15:09

:bust_in_silhouette: Reply From: claudiaandcompany

Hi!
I am having the exact same problem. Did you find an answer? I’m really stuck on this one…

You should’ve posted this as a comment, as now the post has an “answer” apparently.

Are you targetting x64 or xARM? Or targetting both in a Universal Binary?

At the top of the stack looks like you might be referencing a resource that may not exist any more or there’s an error in your Singleton (if using one). The line of C++ this code is referencing is here.

Looks like at the bottom of the stack that GameCenter refused to Authenticate the user. Is GameCenter enabled on your device you’re remote debugging or build to? Or are you running it directly inside XCode?

This Apple Discussion might help

TheNormandyProject | 2023-02-24 15:02