title: iOS9: "Unable to Download App"
body: <p>We are developing an internal iOS app for our company.
  We create a local distribution link of the form</p>
  
  <pre><code>itms-services://?action=download-manifest&amp;url=https://INTERNAL-PATH/manifest.plist
  </code></pre>
  
  <p>It worked fine for a long time, including iOS8 and all betas of iOS9.</p>
  
  <p>However now for every device updated to the official iOS9, when trying to install from the above link, we are getting this dialog:</p>
  
  <p><a href="https://i.stack.imgur.com/ZCNo2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ZCNo2.png" alt="dialog of error"></a></p>
  
  <p>I have captured the log from pressing "install" until getting this error. it is shown here. From the very beginning there is a <strong>suspicious "ios8fix"</strong> which we do not put, and one of the failure outputs is claiming <strong>BundleValidator: Failed bundleIdentifier: MY_APP_ID.ios8fix does not match expected bundleIdentifier: MY_APP_ID</strong></p>
  
  <p>Please note that "create a new provisioning profile" is not a good solution, because I'm trying to distribute an update over an existing app.</p>
  
  <p>I have already burned a fool day (ok. full day) trying to solve this, and would appreciate any clue here!</p>
  
  <pre><code>itunesstored[123] &lt;W&gt;: LoadExternalDownloadManifestOperation: Canceling failed manifest download for replace: MY_APP_ID.ios8fix
  itunesstored[123] &lt;W&gt;: [Download]: Adding download(s): -4949958484440492382
  itunesstored[123] &lt;W&gt;: LaunchServices: installing placeholder for &lt;LSApplicationProxy: 0x148840860&gt; MY_APP_ID.ios8fix &lt;(null) *Not found in database*&gt;
  installd[47] &lt;N&gt;: 0x16e087000 -[MIClientConnection installPath:withOptions:completion:]: Install of "/var/mobile/Library/Caches/com.apple.itunesstored/AppPlaceholders/-4949958484440492382.app" type Placeholder requested by itunesstored (pid 123)
  installd[47] &lt;N&gt;: 0x16e12f000 -[MIInstaller performInstallationWithError:]: Installing &lt;MIInstallableBundle ID=MY_APP_ID.ios8fix; Version=8.38.5, ShortVersion=(null)&gt;
  installd[47] &lt;N&gt;: 0x16e12f000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for MY_APP_ID.ios8fix at /private/var/mobile/Containers/Data/Application/A64E6947-B7E7-46A9-B517-4887AB890E97
  installd[47] &lt;N&gt;: 0x16e12f000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for MY_APP_ID.ios8fix at /private/var/mobile/Containers/Bundle/Application/A1ED6552-6C73-4DDE-8CE7-ED10F1BB0553
  itunesstored[123] &lt;W&gt;: [Download]: Starting task: 4 with priority: 300 for download: -4949958484440492382 bundleIdentifier: MY_APP_ID.ios8fix in session: com.apple.itunesstored.default
  installd[47] &lt;N&gt;: 0x16e12f000 -[MIInstaller performInstallationWithError:]: Install Successful; Staging: 0.00s; Waiting: 0.00s; Preflight/Patch: 0.00s, Verifying: 0.00s; Overall: 0.12s
  itunesstored[123] &lt;W&gt;: LaunchServices: Creating installProgressForApplication:&lt;LSApplicationProxy: 0x148ac35f0&gt; MY_APP_ID.ios8fix (Placeholder) &lt;file:///private/var/mobile/Containers/Bundle/Application/A1ED6552-6C73-4DDE-8CE7-ED10F1BB0553/-4949958484440492382.app&gt; withPhase:3
  itunesstored[123] &lt;W&gt;: LaunchServices: installPhaseFinishedForProgress: MY_APP_ID.ios8fix.InstallingPlaceholder - &lt;NSProgress: 0x148a7a8c0&gt; : Parent: 0x0 / Fraction completed: 0.0000 / Completed: 0 of 100   called, removing progress from cache
  lsd[175] &lt;W&gt;: LaunchServices: Updating installPhase for parent &lt;NSProgress: 0x127d3a430&gt; : Parent: 0x0 / Fraction completed: 0.6000 / Completed: 60 of 100   to 3
  ondemandd[192] &lt;E&gt;: Application with ID: MY_APP_ID.ios8fix was installed, but it doesn't appear to have a bundle URL, we are taking no action on this.
  itunesstored[123] &lt;W&gt;: LaunchServices: updating placeholder for &lt;LSApplicationProxy: 0x146eb9100&gt; MY_APP_ID.ios8fix (Placeholder) &lt;file:///private/var/mobile/Containers/Bundle/Application/A1ED6552-6C73-4DDE-8CE7-ED10F1BB0553/-4949958484440492382.app&gt; with icons
  installd[47] &lt;N&gt;: 0x16e12f000 -[MIClientConnection installPath:withOptions:completion:]: Install of "/var/mobile/Library/Caches/com.apple.itunesstored/AppPlaceholders/-4949958484440492382.app" type Placeholder requested by itunesstored (pid 123)
  installd[47] &lt;N&gt;: 0x16e2d3000 -[MIInstaller performInstallationWithError:]: Installing &lt;MIInstallableBundle ID=MY_APP_ID.ios8fix; Version=8.38.5, ShortVersion=(null)&gt;
  installd[47] &lt;N&gt;: 0x16e2d3000 -[MIInstallableBundle _refreshUUIDForContainer:withError:]: Data container for MY_APP_ID.ios8fix is now at /private/var/mobile/Containers/Data/Application/20871483-6F78-424D-8ED1-BA18BD2959BA
  installd[47] &lt;N&gt;: 0x16e2d3000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for MY_APP_ID.ios8fix at /private/var/mobile/Containers/Bundle/Application/D1ABD072-5949-452A-A20E-50F5C10310AA
  installd[47] &lt;N&gt;: 0x16e2d3000 -[MIInstaller performInstallationWithError:]: Install Successful; Staging: 0.00s; Waiting: 0.00s; Preflight/Patch: 0.00s, Verifying: 0.00s; Overall: 0.06s
  ondemandd[192] &lt;E&gt;: Application with ID: MY_APP_ID.ios8fix was installed, but it doesn't appear to have a bundle URL, we are taking no action on this.
  SpringBoard[54] &lt;W&gt;: FBApplicationPlaceholder We received a nil BSCFBundle back, which means _CFBundleCreateUnique. Here's what -[NSFileManager attributesOfItemAtPath:error:] is giving us: (null)
          here's the error we got back (if any): Error Domain=NSCocoaErrorDomain Code=260 "The file “-4949958484440492382.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/private/var/mobile/Containers/Bundle/Application/A1ED6552-6C73-4DDE-8CE7-ED10F1BB0553/-4949958484440492382.app, NSUnderlyingError=0x12a552020 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
  SpringBoard[54] &lt;W&gt;: -[FBBundleInfo _initWithBundleURL:] ERROR: Unable to create bundle at path: /private/var/mobile/Containers/Bundle/Application/A1ED6552-6C73-4DDE-8CE7-ED10F1BB0553/-4949958484440492382.app
  ondemandd[192] &lt;E&gt;: An object with ID [0x12de8a220 &lt;x-coredata:///AssetDownloads/tAC876614-AA9B-432E-9691-02EE36693D1013&gt;] has already registered.
  itunesstored[123] &lt;W&gt;: LaunchServices: Creating installProgressForApplication:&lt;LSApplicationProxy: 0x148a553a0&gt; MY_APP_ID.ios8fix (Placeholder) &lt;file:///private/var/mobile/Containers/Bundle/Application/D1ABD072-5949-452A-A20E-50F5C10310AA/-4949958484440492382.app&gt; withPhase:0
  lsd[175] &lt;W&gt;: LaunchServices: Updating installPhase for parent &lt;NSProgress: 0x127d3a430&gt; : Parent: 0x0 / Fraction completed: 0.6000 / Completed: 60 of 100   to 0
  &lt;-- 19 seconds gap --&gt;
  itunesstored[123] &lt;W&gt;: [Download]: Download task did finish: 4 for download: -4949958484440492382
  itunesstored[123] &lt;W&gt;: [ApplicationWorkspace] Installing download: -4949958484440492382 with step(s): Install
  itunesstored[123] &lt;W&gt;: [ApplicationWorkspace]: Installing software package with bundleID: MY_APP_ID.ios8fix: bundleVersion: 8.38.5 path: /var/mobile/Media/Downloads/-4949958484440492382/-5671360055536325805
  itunesstored[123] &lt;W&gt;: BundleValidator: Failed bundleIdentifier: MY_APP_ID.ios8fix does not match expected bundleIdentifier: MY_APP_ID
  itunesstored[123] &lt;W&gt;: [ApplicationWorkspace]: Bundle validated for bundleIdentifier: MY_APP_ID.ios8fix success: 0
  itunesstored[123] &lt;W&gt;: LaunchServices: Uninstalling placeholder for app &lt;LSApplicationProxy: 0x14884ffc0&gt; MY_APP_ID.ios8fix (Placeholder) &lt;file:///private/var/mobile/Containers/Bundle/Application/D1ABD072-5949-452A-A20E-50F5C10310AA/-4949958484440492382.app&gt;
  itunesstored[123] &lt;W&gt;: LaunchServices: Uninstalling app &lt;LSApplicationProxy: 0x14884ffc0&gt; MY_APP_ID.ios8fix (Placeholder) &lt;file:///private/var/mobile/Containers/Bundle/Application/D1ABD072-5949-452A-A20E-50F5C10310AA/-4949958484440492382.app&gt;
  installd[47] &lt;N&gt;: 0x16e087000 -[MIClientConnection uninstallIdentifiers:withOptions:completion:]: Uninstall requested by itunesstored (pid 123) with options: {
      }
  installd[47] &lt;N&gt;: 0x16e087000 -[MIUninstaller _uninstallBundleWithIdentifier:error:]: Uninstalling identifier MY_APP_ID.ios8fix
  installd[47] &lt;N&gt;: 0x16e087000 -[MIUninstallNotifier performRemovalWithCompletionBlock:]: Destroying container with identifier MY_APP_ID.ios8fix at /private/var/mobile/Containers/Bundle/Application/D1ABD072-5949-452A-A20E-50F5C10310AA
  installd[47] &lt;N&gt;: 0x16e087000 -[MIUninstallNotifier performRemovalWithCompletionBlock:]: Destroying container with identifier MY_APP_ID.ios8fix at /private/var/mobile/Containers/Data/Application/20871483-6F78-424D-8ED1-BA18BD2959BA
  itunesstored[123] &lt;W&gt;: LaunchServies: No app bundle to remove for MY_APP_ID.ios8fix
  lsd[175] &lt;W&gt;: LaunchServices: Updating identifier store
  itunesstored[123] &lt;W&gt;: LaunchServices: clearing created progress for MY_APP_ID.ios8fix
  itunesstored[123] &lt;W&gt;: [ApplicationWorkspace]: Uninstalling application placeholder for bundleIdentifier: MY_APP_ID.ios8fix; success: 1
  itunesstored[123] &lt;W&gt;: [ApplicationWorkspace]: Failed to install application: MY_APP_ID.ios8fix; /var/mobile/Media/Downloads/-4949958484440492382/-5671360055536325805; Error Domain=SSErrorDomain Code=143 "(null)"
  itunesstored[123] &lt;W&gt;: [ApplicationWorkspace] Install complete for download: -4949958484440492382 result: Failed
  itunesstored[123] &lt;W&gt;: [Download]: Fail download: -4949958484440492382 after error: Error Domain=SSErrorDomain Code=143 "(null)"
  </code></pre>