Problem building to an iOS device...

Hey there. When I export my game into Xcode, I can get it to run fine in the iOS simulator. But when I try to run it on an actual iPhone (that is provisioned), I get the following error:

Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang failed with exit code 1

What does this mean and how can I fix it? I don’t think it has anything to do with any scripts in my game (I even tested it using a build that only contained a blank scene, just to make sure). Thank you.

Assuming you have your iOS SDK correctly installed, when an xcode project built from Unity won’t run on a device the possible causes could be in the build options from the unity Player Settings panel, or a wrong provisioning file is selected in the build options.

If you’re using a Distribution profile, instead of a Development one, it is normal for Xcode to not to run directly on the device.

It would be useful to see all the error log to spot your problem, instead just the last line.