问题
I have an iOS app that I've developing for a while. Initially there were around 8 devices in the iOS dev account, ad builds were prepared and distributed through Hockey App, no problems. Recently, we've added a bunch more devices, but for some reason the ad hoc builds won't install on those devices (but continues to install just fine on the original set).
I have been over and over the certificates, devices and provisioning profiles in the iOS Dev Center. I've triple checked all the Build Settings in XCode. The app is for iOS 6 and iOS 7 only. It is built in XCode 5. I've tried installing the app through HockeyApp and direct through iTunes.
When attempting to install the app on a device, this is the output from the console:
Sep 24 21:45:02 Micks-iPad itunesstored[88] : LaunchServices: updating placeholder for com.purifier.ios with icons Sep 24 21:45:02 Micks-iPad installd[62] : 0x304000 handle_install_for_ls: Install of "/var/mobile/Library/Caches/com.apple.itunesstored/AppPlaceholders/3119681654421541181.app" requested by itunesstored Sep 24 21:45:02 Micks-iPad installd[62] : 0x304000 MobileInstallationInstall_Server: Installing app com.purifier.ios Sep 24 21:45:02 Micks-iPad installd[62] : 0x304000 install_application: Installing placeholder Sep 24 21:45:03 Micks-iPad installd[62] : 0x304000 MobileInstallationInstall_Server: Staging: 0.01s; Waiting: 0.00s; Installation: 0.14s; LS Sync: 0.00s; Overall: 0.15s Sep 24 21:45:06 Micks-iPad itunesstored[88] : LaunchServices: Creating installProgressForApplication:LSApplicationProxy: com.purifier.ios (Placeholder) withPhase:0 Sep 24 21:45:06 Micks-iPad lsd[74] : LaunchServices: Updating installState for parent to LSInstallStateWaiting Sep 24 21:45:06 Micks-iPad lsd[74] : LaunchServices: Updating installPhase for parent to 0 Sep 24 21:45:19 Micks-iPad SpringBoard[33] : Killing com.purifier.ios for app installation Sep 24 21:45:19 Micks-iPad itunesstored[88] : LaunchServices: installing app for existing placeholder LSApplicationProxy: com.purifier.ios (Placeholder) Sep 24 21:45:19 Micks-iPad itunesstored[88] : LaunchServices: Creating installProgressForApplication:LSApplicationProxy: com.purifier.ios (Placeholder) withPhase:1 Sep 24 21:45:19 Micks-iPad lsd[74] : LaunchServices: Updating installPhase for parent to 1 Sep 24 21:45:19 Micks-iPad installd[62] : 0x304000 handle_install_for_ls: Install of "/var/mobile/Media/Downloads/3119681654421541181/-915963357124799252" requested by itunesstored Sep 24 21:45:20 Micks-iPad installd[62] : 0x304000 MobileInstallationInstall_Server: Installing app com.purifier.ios Sep 24 21:45:20 Micks-iPad installd[62] : profile not valid: 0xe8008012 Sep 24 21:45:20 Micks-iPad installd[62] : 0x304000 install_embedded_profile: Could not install embedded profile: 0xe8008012 Sep 24 21:45:21 Micks-iPad securityd[77] : OCSPResponse: now > latestNextUpdate Sep 24 21:45:22 Micks-iPad installd[62] : 0x304000 verify_signer_identity: MISValidateSignatureAndCopyInfo failed for /var/tmp/install_staging.AFwPty/foo_extracted/Payload/Purifier.app/Purifier: 0xe8008015 Sep 24 21:45:22 Micks-iPad installd[62] : 0x304000 do_preflight_verification: Could not verify executable at /var/tmp/install_staging.AFwPty/foo_extracted/Payload/Purifier.app Sep 24 21:45:22 Micks-iPad installd[62] : 0x304000 install_application: Could not preflight application install Sep 24 21:45:22 Micks-iPad itunesstored[88] : 0x441000 MobileInstallationInstallForLaunchServices: failed with -1 Sep 24 21:45:22 Micks-iPad itunesstored[88] : ERROR: MobileInstallationInstallForLaunchServices returned nil Sep 24 21:45:22 Micks-iPad lsd[74] : LaunchServices: installation failed for app com.purifier.ios Sep 24 21:45:22 Micks-iPad itunesstored[88] : LaunchServices: installPhaseFinishedForProgress: com.purifier.ios.Installing - called, removing progress from cache Sep 24 21:45:22 Micks-iPad installd[62] : 0x304000 handle_install_for_ls: API failed Sep 24 21:45:31 Micks-iPad SpringBoard[33] : Killing com.purifier.ios for app installation
I've tried absolutely everything I can think of. Any help, even ideas about how to diagnose the problem, would be greatly appreciated.
回答1:
Here's the source of your problem:
Sep 24 21:45:20 Micks-iPad installd[62] : profile not valid: 0xe8008012
0xE8008012 is "The UUID of the device does not match any in the Provisioning Profile being loaded"
Check and double-check the UUIDs associated with the profile in the Provisioning Portal and make sure you're using the correct and current profile to sign the app. Also check you only have the current developer certs in your keychain. Remove any previous certs.
回答2:
The problem was that the UDID was wrong (thanks @neilco). The reason the UDID was wrong was because the UDID app I'm using is giving the wrong UDID as of iOS7.
I checked a bunch of other UDID apps and they're all giving the wrong UDID in iOS7. It seems that anything that starts with a bunch of FFFFFFFF... is wrong.
Back to bloody iTunes...
回答3:
Ensure you re-download the provisioning profile after adding the new devices to it.
You need to edit the profile and tick the new devices in the list. Then re-dwonload it.
回答4:
xcode open organizer -> Select devices -> in left pane select provisioning profile from the top delete your current provisioning profile. Download updated provisioning profile from your developer account and now try to build your .ipa for new devices.
Don't forget to update provisioning in devices.
回答5:
Please note that Apple has changed the UDID retrieval API due to privacy concerns. So, I don't think you may use some of those older apps to get the UDID. You can connect your device to your PC/Mac and get the UDID using iTunes (or XCODE). In iTunes, click on the Serial Number and it will change to UDID (once the phone is connected to the computer and you click the device in iTunes)
回答6:
Swift 4 if you need to install it as development for testing Please Edit the Provisioning Profile or if you have no Provisioning Profile for this app then the unable to install in the device so please then create new Provisioning Profile and select all the devices and then rebuild IPA and install it simple
来源:https://stackoverflow.com/questions/18980783/ad-hoc-ios-ipa-file-wont-install-for-devices-added-to-profile-since-ios-7-came