Updated enterprise app fails to download and install

We've been developing and installing an internal enterprise app for a few years now, but our latest build is refusing to install over the air for some reason. I get the standard error on my device:


Unable to Download

App "App Name QA" could not be downloaded at this time.


The device log when installing is:


Jul 5 15:11:38 My-iPhone SpringBoard[58] <Warning>: * bad fence setup * we're setting up a potentially deferrable transaction while we are already tracking an animation fence - this will probably cause us to blow the fence

Jul 5 15:11:45 My-iPhone itunesstored[897] <Warning>: LoadExternalDownloadManifestOperation: Canceling failed manifest download for replace: com.ourapp.appidqa

Jul 5 15:11:45 My-iPhone installd[1045] <Notice>: 0x16e1bb000 -[MIClientConnection uninstallIdentifiers:withOptions:completion:]: Uninstall requested by itunesstored (pid 897) for identifier com.ourapp.appidqa with options: {

}

Jul 5 15:11:45 My-iPhone installd[1045] <Notice>: 0x16e1bb000 -[MIUninstaller _uninstallBundleWithIdentifier:error:]: Uninstalling identifier com.ourapp.appidqa

Jul 5 15:11:45 My-iPhone installd[1045] <Notice>: 0x16e1bb000 -[MIUninstallNotifier performRemovalWithCompletionBlock:]: Destroying container with identifier com.ourapp.appidqa at /private/var/containers/Bundle/Application/12C87645-FF53-4C50-96AA-F3191696A4F0

Jul 5 15:11:45 My-iPhone installd[1045] <Notice>: 0x16e1bb000 -[MIUninstallNotifier performRemovalWithCompletionBlock:]: Destroying container with identifier com.ourapp.appidqa at /private/var/mobile/Containers/Data/Application/04F5C8D7-C716-4342-B3D1-4C028557E718

Jul 5 15:11:45 My-iPhone syncdefaultsd[1210] <Notice>: (Note ) marked "com.me.keyvalueservice" topic as "opportunistic" on <APSConnection: 0x13ce22af0>

Jul 5 15:11:45 My-iPhone installd[1045] <Notice>: 0x16e1bb000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of "/var/mobile/Library/Caches/com.apple.itunesstored/AppPlaceholders/2398032416721201690.app" type Placeholder (LSInstallType = 1) requested by itunesstored (pid 897)

Jul 5 15:11:45 My-iPhone installd[1045] <Notice>: 0x16e1bb000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.ourapp.appidqa; Version=1.0, ShortVersion=(null)>

Jul 5 15:11:46 My-iPhone syncdefaultsd[1210] <Notice>: (Note ) marked "com.me.keyvalueservice" topic as "enabled" on <APSConnection: 0x13ce22af0>

Jul 5 15:11:46 My-iPhone installd[1045] <Notice>: 0x16e1bb000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.ourapp.appidqa at /private/var/mobile/Containers/Data/Application/9EB39B9B-A36B-4B17-BCD2-5CE42C40A233

Jul 5 15:11:46 My-iPhone installd[1045] <Notice>: 0x16e1bb000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.ourapp.appidqa at /private/var/containers/Bundle/Application/1B5762E5-9F26-4FCD-AC91-6E36F29F708B

Jul 5 15:11:46 My-iPhone installd[1045] <Notice>: 0x16e1bb000 -[MIInstaller performInstallationWithError:]: Install Successful; Staging: 0.00s; Waiting: 0.00s; Preflight/Patch: 0.08s, Verifying: 0.01s; Overall: 0.44s

Jul 5 15:11:46 My-iPhone nsurlsessiond[118] <Error>: Task 24 for client <CFString 0x19acc8920 [0x19f6ba150]>{contents = "com.apple.itunesstored"} completed with error - code: -999

Jul 5 15:11:46 My-iPhone installd[1045] <Notice>: 0x16e1bb000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of "/var/mobile/Library/Caches/com.apple.itunesstored/AppPlaceholders/2398032416721201690.app" type Placeholder (LSInstallType = 1) requested by itunesstored (pid 897)

Jul 5 15:11:46 My-iPhone installd[1045] <Notice>: 0x16e1bb000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.ourapp.appidqa; Version=1.0, ShortVersion=(null)>

Jul 5 15:11:46 My-iPhone installd[1045] <Notice>: 0x16e1bb000 -[MIInstallableBundle _refreshUUIDForContainer:withError:]: Data container for com.ourapp.appidqa is now at /private/var/mobile/Containers/Data/Application/987AC480-D3D1-4C1F-BC95-BE7CDDC0DD88

Jul 5 15:11:46 My-iPhone installd[1045] <Notice>: 0x16e1bb000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.ourapp.appidqa at /private/var/containers/Bundle/Application/4195FF75-3C60-49E7-99BD-26B1529C719F

Jul 5 15:11:46 My-iPhone SpringBoard[58] <Warning>: 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 “2398032416721201690.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/private/var/containers/Bundle/Application/1B5762E5-9F26-4FCD-AC91-6E36F29F708B/2398032416721201690.app, NSUnderlyingError=0x158d0d140 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

Jul 5 15:11:46 My-iPhone SpringBoard[58] <Warning>: -[FBBundleInfo _initWithBundleURL:] ERROR: Unable to create bundle at path: /private/var/containers/Bundle/Application/1B5762E5-9F26-4FCD-AC91-6E36F29F708B/2398032416721201690.app

Jul 5 15:11:46 My-iPhone installd[1045] <Notice>: 0x16e1bb000 -[MIInstaller performInstallationWithError:]: Install Successful; Staging: 0.00s; Waiting: 0.00s; Preflight/Patch: 0.00s, Verifying: 0.01s; Overall: 0.20s



I've logged into the developer portal and all of our App Ids, Provisioning Profiles and Certificates appear to be correct and up to date. We did have to accept a new License Agreement today though.


Does anything know what might cause this issue or where else I can look to find some more hints. Our production application can still install fine, but it was deployed a couple weeks ago.

Updated enterprise app fails to download and install
 
 
Q