adhoc app installation failed in iPhone , why?

后端 未结 5 2171
时光取名叫无心
时光取名叫无心 2021-02-05 11:45

I am developing an iPhone application .

As the application is location aware I am testing it on a different (where I am not present).

For that I am sending my fr

5条回答
  •  粉色の甜心
    2021-02-05 12:07

    Blimey. It's mid-2014 and XCode 5 is still as infuriating as ever.

    What's frustrating is that, even once you've jumped through Apple's new https hoops to create your Ad-Hoc installer, your device might download the installation package, start installing it, silently fail (due to an incorrect/invalid Provision Profile) but then attempt to start downloading & installing again !!

    It's only once you go into XCode \ Organiser, and select your device, that you can actually look at the logs and find out that a fatal error occured, have some idea of the cause, and start Googling for a solution. Why the device attempts to retry is beyond me.

    And showing that vague "[Your application] could not be installed at this time" error is just misleading. Often, this gives the impression that, ahh, perhaps later, it'll work. Go and have a coffee, and have again after lunch. Errr, no.

    Anyway, rambling aside (before I vote myself down), just to say that I had this issue, and the cause what that I was attempting to create an Ad-Hoc (in-house) version of our iPad app, but I had the Production (App Store) version of the Provisioning Profile selected.

    I rebuilt the app using the correct "In-house distribution" Provisioning Profile, deployed everything to our intranet, made sure that the .plist file was on a https server (not a http server, otherwise the install would fail with another vague/irrelevant error message), and then it finally worked.

    Oh, and I found the tips on this StackOverflow page to be a lifesaver.

    Mike

    (Off for a lie down. And a beer.)

提交回复
热议问题