Issue in Xcode when trying to do Product>>Archive

Hi all, Im trying to upload an app to the App Store, the app is made in Unity, well I built the app there and then open the Xcode project, from there set some fields and now when I have to go to Product>> Archive I get an error always, could you please tell me what is this and how to fix?

unsupported option -mno- thumb for target arm64-apple-ios 15.6

Im using Xcode 16.4 which I think is the latest version released. Thanks for any clue about this, Im really lost

I don't exactly know how to edit the post if its possible, I found someone who posted a workaround for this but I still would like to know the right way to do this

By ArnoldRauers_Tinytouchtales " Edit the Exported Xcode Project

Open the Xcode project generated by Unity. In Xcode, navigate to Build Settings and search for OTHER_CFLAGS or OTHER_LDFLAGS. Look for any occurrences of -mno-thumb and remove it."

Issue in Xcode when trying to do Product>>Archive
 
 
Q