I created the adhoc
provisioning files with a friend's device id and when someone else built the app, my friend was able to run it on their iPhone.
I don't own an iphone myself. Now I am trying to build it and upload it to iTunes. Since I don't have the actual device I followed advice here because it the build for archive
option was grayed out.
I selected iOS device and the build for archive option became available but the build fails, even though it works fine on the emulator.
Am I doing something wrong?
Note: In code signing I chose iPhone distribution