App stuck on installing ipa from iTunes

空扰寡人 提交于 2019-11-29 22:53:06

You most likely built your archive with an App Store provisioning profile instead of an Ad-Hoc Provisioning profile

Here are the steps that seemed to fix the problem for me:

Deleting all profiles from device (iPad in my case)

Settings - General - Profile delete any relating to your app

Deleting all profiles from iTunes on iMac

Finder - Library (GO with ALT pressed displays this) - Mobile Device - Provisioning Profiles

delete all provisioning profiles you see here. This is where Xcode sees any when choosing your profile.

In Xcode - in both Projects and Targets

Set all code signing to None

Archive your project - in Xcode Product - Archive

You will be told no profiles exist - choose Fix Issue. Your provisioning profiles will be downloaded into the Library - Mobile Device - Provisioning Profiles (the folder we previously cleared.) In future these will be your options when setting your Project and Target code signing.

In Organiser

Export your archived product and choose the team Profile (or any that have been downloaded) as code signing.

Drop the ipa into iTunes and install.

For Ad Hoc provisioning - check the device UDIDs.

We used an app called UDID+ to get the device UDIDs. Don't! The app gives you the wrong UDID with iOS7.

Apple's developer site accepted the faulty UDIDs and everything proceeded normally until the issue described above occurred. It took a looong time and lots of starting from scratch to figure that one out.

I had the same problem. I had archived with the wrong code signing identity selected in XCode. Changing that and creating a new archive solved it straightaway.

I just did 'clean' and 'build' in the xcode product menu (then archive, export ipa, etc) and it works now.

I had a similar issue and turned out the reason was because I was trying to distribute an .ipa file without first adding the recipient device UDIDs to my developer account settings. It used to be possible in some earlier iOS versions to distribute an .ipa without adding the UDIDs but apparently not anymore. More info here: https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/TestingYouriOSApp/TestingYouriOSApp.html

And I also needed to change the code signing settings from Xcode from "iPhone developer" to "iPhone distribution".

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!