How can I compile a Godot 3 XCode Project with architecture issues?

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

Hello guys! Does anyone have an updated tutorial on exporting .ipa files for iOS? Preferably using free apple account so that we can test on a real device before publishing to the store… I found some tutorials on youtube, but they’re all Godot 2.
Currently, when I try exporting my game to iOS, XCode throws an error on the project:
…missing required architecture i386 in file…
ld: entry point (_main) undefined. for architecture x86_64
How can we fix this and test on a real iOS device?
Thanks in advance.