I get this error when I validate my archive. I tried setting architectures and valid architectures to only armv7. I tried setting iOS down to 7.0. I tried installing the old Xcode 5.02 and it gives me the same error. I’ve researched as much as I can on this error. Any ideas?
I tried using the Application Loader and it gives the same error: ERROR ITMS-9000: “Invalid Binary. The binary mygame.app/mygame is missing architectures [arm64].”
Edit: !!! After doing a clean build from Unity, if I set the scheme’s archive mode to debug, it validates! So strange… I’m going to change debug settings into the release one at a time until I find what breaks it.
Solved: I feel stupid. I restarted my mac and now the issues gone. Hope this fixes it for everyone else too.
Switching the scripting backend to the IL2CPP and using Universal architecture in the player settings solved this problem for me. Here are the steps:
Open up Player Settings either via Edit menu → Project Settings → Player or File menu → Build Settings … → Player Settings… button at the bottom. Player Settings will appear in the inspector.
Click on the iPhone, iPod Touch, and iPad settings tab (the icon that looks like an iPhone).
Under Settings for iOS, open up Other Settings
Under the Configuration heading:
For Scripting Backend, select IL2CPP (Defaults to Mono (2.x)).
For Architecture, select Universal.
Now build the Xcode project, and Xcode should compile without errors. If you still encounter errors, ensure Architectures is set to Standard architectures (armv7, arm64) and Valid Architectures is set to “arm64 armv7 armv7s”