I got another issue with Godot mono project exporting. I follow the official guide to export for ios. Everything worked well until I tried the step of linking Godot project to Xcode https://docs.godotengine.org/en/stable/tutorials/export/exporting_for_ios.html#steps-to-link-a-godot-project-folder-to-xcode

After linking successfully I can build and run the project but the C# scipt doesn't work anymore, here the output log in Xcode. Just to remind that I got a similar issue in Godot itself, but I'm able to resolve it by installing the MonoBuild The script still works in Godot when I run project on my Mac, it only errors when I use Xcode to build to my iPhone.

ERROR: Cannot instance script because the project assembly is not loaded. Script: 'res://TestSprite.cs'.
2022-05-28 10:31:32.719011+0700 testcs2exported[31381:12942566]    at: can_instance (modules/mono/csharp_script.cpp:2889) - Method failed. Returning: __null
ERROR: Cannot instance script because the project assembly is not loaded. Script: 'res://TestSprite.cs'.
   at: can_instance (modules/mono/csharp_script.cpp:2889) - Method failed. Returning: __null
2022-05-28 10:31:32.719432+0700 testcs2exported[31381:12942566]

I'm so devastating with so many ios export issues :(

Did you change the project name by chance? This error seems to occur often when renaming, resulting in some files not updating correctly. Like this issue.

@RichNaoo said: Did you change the project name by chance? This error seems to occur often when renaming, resulting in some files not updating correctly. Like this issue.

I create a completely new project to test, not rename anything but it still happens.

@cucaido said:

@RichNaoo said: Did you change the project name by chance? This error seems to occur often when renaming, resulting in some files not updating correctly. Like this issue.

I create a completely new project to test, not rename anything but it still happens.

The only other thing I see in the issues that others have posted is closing godot, if it's still running in the backgorund, because there's some conflict. Other than that idk how to help you...

10 months later