I have a working app. I updated from xcode 4.2 to 4.3 yesterday. ANd i updated my phone from iOS 5.0 to 5.1.
I build my app in Xcode 4.3, and while tethered, the app works just fine on my phone. I then delete the app from my phone, create an ad-hoc distributable in Xcode, drop the new app and distribution provisioning profile into iTunes, and then tell iTunes to SYnc.
The app transfers to my phone, and i watch it "installing..." but then it pops up the very helpful message " failed to install." I tried created a new distribution profile, but no help.
This is what worked for me in Xcode 4.3.1
I was having exactly the same problem when I came across this topic. Melvin's answer above was something I had already tried, and I was sure I had it correct. Then I read the comment from Gary saying: "At first this didn't work for me, when i only changed the Release setting. I changed all of the code signing identity settings from "Developer" to "Distribution" and then it worked."
It turns out that Gary's fix worked for me too. But it isn't the solution, but it does point to the root problem. In my case, it worked because my "Ad Hoc Distribution" scheme was configured incorrectly. I suspect that is the case for Gary as well.
Here's how I fixed it:
In my case, I had the Build Configuration set to App Store Release build configuration. So the archived Ad Hoc build was signed for the App Store. Naturally, when I would try to install it on an ad hoc test device it would not install.
Melvin's answer is also essential to fixing this. You must be using the correct code sign identity for your ad hoc build configuration.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With