godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
86.36k stars 19.22k forks source link

godot fails to export on ios #92396

Open maurosorrentino opened 1 month ago

maurosorrentino commented 1 month ago

Tested versions

4.2.1, 4.2.2 .NET

System information

macOS Sonoma version 14.3, M1 chip macbook pro 14inch from 2021

Issue description

when exporting on ios I keep getting MSB3073: The command ""clang" some paths

I tried to fix it like you said in the documentation xcode-select -p (to check) sudo xcode-select -switch /Applications/Xcode.app (to fix)

I did setup xcode, the SDK is in the right place as I checked by going in that directory and the command above, the path is /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk

I tried to run the app anyway on my ipad but it doesn't work

am I missing something or is it a bug?

Steps to reproduce

N/A

Minimal reproduction project (MRP)

N/A

LeonardoDemartino commented 2 days ago

The actual error for this is:

ld: Assertion failed: (false && "compact unwind compressed function offset doesn't fit in 24 bits"), function operator(), file Layout.cpp, line 6026.

It is related to newer versions of XCode (15.1 and newer) that requires the "-ld64" or "-ld_classic" flags in the linker flags.

Same issue here: https://github.com/ChainSafe/web3.unity/issues/686

I'm having the same issue so I'm downgrading to XCode 15.0 since we can't edit the commandline used by godot when building the xcode project.

maurosorrentino commented 2 days ago

thanks @LeonardoDemartino, I passed to unity for now then when I will start making real money (I got a very good marketing plan for this game) I will sponsor millions per year to godot to help it grow and switch back to it again :)

LeonardoDemartino commented 2 days ago

Could you please share your full error log @maurosorrentino ?

maurosorrentino commented 2 days ago

@LeonardoDemartino I don't have it anymore, it was a long time ago. There is also an issue when exporting to Android which I raised, will go back to Godot hopefully in a few months or whenever I finish the game and start my marketing plan. I would like to thank you though for your hard work, is very much appreciated!! :)