Ad hoc distribution: App failed to install

2020-05-27 05:27发布

I have created an ad hoc archive and a .ipa file for the application I am trying to distribute. I have also created a distributing provisioning profile with the UDIDs of the devices that I plan on distributing my application to. When I drag the .ipa and .mobileprovision files into iTunes and try to sync the application to the device, an error message on the phone pops up reading "'myapp' failed to install". By the way, I have a standard iOS developer's license ($99 per year) and am using Xcode version 4.2.1. I am pretty new to the developer program, so please try to keep your answers as simple as possible. Let me know if you need any extra information. Thank you!

7条回答
疯言疯语
2楼-- · 2020-05-27 06:02

I solved the issue by not trying to sync with iTunes but instead to sync it within XCode (from the window->devices menu)

查看更多
ら.Afraid
3楼-- · 2020-05-27 06:13

My problem seemed to be Xcode. I had multiple copies of the Ad_Hoc profile with different expirations (all valid) and a few with different names from the days. I deleted them all and the app still failed to install, but I noticed all the Ad_Hoc profiles had been resurrected by iTunes. Tried it several times and including deleting them from the Organizer, but they always resurrected (reappeared installed on the device). Finally I drug out a copy of the supposedly extinct iPhone Configuration utility and used it to delete the app and all Ad_Hoc profiles. Then tried to install just the profile. That got it down to 2. Finally got all deleted and got iTunes to install the right profile. Still took 2 more attempts for iTunes to finally install my archive file!

查看更多
祖国的老花朵
4楼-- · 2020-05-27 06:13

I was having a similar issue where my project was stored on a secondary NTFS drive. After moving the project over to my desktop [aka MacOS Extended (Journaled) drive], I was able to load the ipa file via itunes.

查看更多
【Aperson】
5楼-- · 2020-05-27 06:14

Check this .

Don't need to drag both .ipa and Provisioning Profile.

Just Drag the .IPA File Follow Further steps as you.

查看更多
在下西门庆
6楼-- · 2020-05-27 06:16

Another point: If the store version of the app installed on your device (or a version deployed another provision), you have to remove it from your device before installing the ad-hoc version.

查看更多
smile是对你的礼貌
7楼-- · 2020-05-27 06:25

I had the exact same issue. My issue was simple to fix. Check your Code Signing Identities for Project & Target in your project Build Settings. Mine were pointing to my Development Profile.

The Code Signing Identities need to point to the Ad hoc Distribution Profile that you created.
Make this change and then recreate the Archive and .ipa file. I then deleted the old App in iTunes, and then dragged the .ipa file onto the iTunes icon (Windows). Then I was able to use iTunes to install the App successfully.

查看更多
登录 后发表回答