I have a Unity 3d project and if I build it with Mono 2x Scripting backend and Universal Architecture, it works perfectly in Xcode; ie it builds, I can run on a device and Archive for submission to the App Store.
However this fails to upload to app store due to lack of 64 bit support.
I researched and found that you are supposed to change the Scripting backend to IL2CPP and made that change.
Now the project builds fine in Xcode and I can run it on a device, but when I come to Archive it, I get the following errors:
clang: error: unable to execute command: Segmentation fault: 11 clang: error: linker command failed due to signal (use -v to see invocation)
I have tried disabling BitCode see here
and I have tried changing Optimization to Faster.
I have checked and this issue is affecting others as well. I am using Xcode 7.2.1
Does anyone have any insight to this.