Why does an iOS app developed using Unity 4.x SDK report an error when uploaded to the App Store?
When you package and upload an app developed using Unity 4.x SDK directly to the App Store, you may receive the following error message:
The iOS dynamic library inside the SDK v4.x for Unity has a simulator architecture, which the App Store does not allow. In order to launch and test the app, the simulator architecture in the SDK needs to be deleted. To do so, take the following steps:
-
In Xcode, select New Run Script Phase.
-
Add the following script to automatically delete the simulator architecture in the SDK when packaging: