Application is not installing after resigning the app - ios

I have followed resigning of the app using this approach
link
When I sign the application using the code signing identity of same account,I am not facing any problem.
When I sign the application using the code signing identity of different account,the app is not installing.
**Find device logs below**
Aug 9 05:02:57 iPhone installd[50] <Notice>: 0x16e087000 -[MIClientConnection lookupUninstalledWithOptions:completion:]: Lookup uninstalled requested by atc (pid 40) with options (null)
Aug 9 05:02:57 iPhone atc[40] <Warning>: |error| Unable to create file lock.
Aug 9 05:02:58 iPhone CommCenter[79] <Notice>: Snapshot path [/var/wireless/Library/Logs/CrashReporter/Baseband/] was removed
Aug 9 05:02:58 iPhone crash_mover[2659] <Notice>: (Warn ) <crash_mover.m nr_isPaired:305> device is not paired
Aug 9 05:03:00 iPhone storebookkeeperd[138] <Warning>: [UPP-SBDDomainSyncedStorageController] target sync date from client: 2016-08-08 23:33:10 +0000 (in 10.00 sec)
Aug 9 05:03:00 iPhone storebookkeeperd[138] <Warning>: [UPP-SBDDomainSyncedStorageController] setting target date to: 2016-08-08 23:33:10 +0000 (in 62621512019.73 sec)
Aug 9 05:03:00 iPhone storebookkeeperd[138] <Warning>: [UPP-SBDDomainSyncedStorageController] scheduling sync (via BackgroundTaskJob) 9.999694 seconds from now...
Aug 9 05:03:00 iPhone SpringBoard[58] <Warning>: could not find icon for representation -> com.testing.test1
Aug 9 05:03:00 iPhone SpringBoard[58] <Warning>: Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x1521a4700 H:|-(0)-[UIView:0x152956030] (Names: '|':UITableViewCellContentView:0x15295f610 )>",
"<NSLayoutConstraint:0x152911190 H:[UIView:0x152956030]-(0)-| (Names: '|':UITableViewCellContentView:0x15295f610 )>",
"<NSLayoutConstraint:0x152776570 H:|-(16)-[UIView:0x152853d80] (Names: '|':UIView:0x152956030 )>",
"<NSLayoutConstraint:0x15290bac0 H:[UIView:0x152853d80]-(16)-| (Names: '|':UIView:0x152956030 )>",
"<NSLayoutConstraint:0x152831960 'UIView-Encapsulated-Layout-Width' H:[UITableViewCellContentView:0x15295f610(0)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x15290bac0 H:[UIView:0x152853d80]-(16)-| (Names: '|':UIView:0x152956030 )>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
Aug 9 05:03:00 iPhone searchd[168] <Warning>: ====^^^^ DuetExpert missing data, count -> people:0 applicationDeepLinks:0 applications:8 requests:242 missingAllDataRequests:0
Aug 9 05:03:00 iPhone installd[50] <Notice>: 0x16e1bb000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of "/var/tmp/com.apple.atc.Apps/com.testing.test1.app" type Placeholder (LSInstallType = 4) requested by atc (pid 40)
Aug 9 05:03:00 iPhone installd[50] <Notice>: 0x16e1bb000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.testing.test1; Version=0.0.10, ShortVersion=(null)>
Aug 9 05:03:00 iPhone installd[50] <Notice>: 0x16e1bb000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.testing.test1 at /private/var/mobile/Containers/Data/Application/0685BF39-E8C4-4D66-A5CF-EFD7CE29773C
Aug 9 05:03:00 iPhone installd[50] <Notice>: 0x16e1bb000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.testing.test1 at /private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184
Aug 9 05:03:00 iPhone installd[50] <Notice>: 0x16e1bb000 -[MIInstaller performInstallationWithError:]: Install Successful; Staging: 0.00s; Waiting: 0.00s; Preflight/Patch: 0.00s, Verifying: 0.01s; Overall: 0.14s
Aug 9 05:03:00 iPhone nesessionmanager[133] <Notice>: NESMPathControllerSession[com.apple.commcenter.ne.cellularusage:358E9214-5A59-4451-B74C-2D08546A5FAA]: Skip a start command from nehelper[108]: session in state connected
Aug 9 05:03:00 iPhone syncdefaultsd[2661] <Notice>: (Note ) SYDAccount: no account
Aug 9 05:03:00 iPhone syncdefaultsd[2661] <Notice>: (Note ) SYDBootAccount: no account (null)
Aug 9 05:03:00 iPhone syncdefaultsd[2661] <Notice>: (Note ) SYDPIMAccount: no account (null)
Aug 9 05:03:00 iPhone syncdefaultsd[2661] <Notice>: (Note ) SYDAlwaysOnAccount: no account (null)
Aug 9 05:03:01 iPhone tccd[103] <Notice>: Refusing client without bundle identifier (/System/Library/PrivateFrameworks/MusicLibrary.framework/Support/medialibraryd)
Aug 9 05:03:01 iPhone tccd[103] <Notice>: Refusing client without bundle identifier (/System/Library/PrivateFrameworks/MusicLibrary.framework/Support/medialibraryd)
Aug 9 05:03:03 iPhone installd[50] <Notice>: 0x16e247000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of "/var/mobile/Media/PublicStaging/test1.ipa" type Customer (LSInstallType = (null)) requested by atc (pid 40)
Aug 9 05:03:03 iPhone installd[50] <Notice>: 0x16e247000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.testing.test1; Version=0.0.10, ShortVersion=0.0.10>
Aug 9 05:03:03 iPhone profiled[153] <Notice>: (Note ) MC: Provisioning profiles changed
Aug 9 05:03:03 iPhone profiled[153] <Notice>: (Note ) MC: Updating MIS trust...
Aug 9 05:03:03 iPhone securityd[91] <Error>: secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Aug 9 05:03:03 iPhone securityd[91] <Error>: secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Aug 9 05:03:03 iPhone installd[50] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Aug 9 05:03:03 iPhone installd[50] <Notice>: MIS: entitlement 'keychain-access-groups' has value not permitted by provisioning profile 'SmartOffice Mobile Enterprise Dist'
Aug 9 05:03:03 iPhone installd[50] <Error>: 0x16e247000 +[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:]: 142: Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.2qAqVP/extracted/Payload/test1.app : 0xe8008016 (The executable was signed with invalid entitlements.)
Aug 9 05:03:03 iPhone installd[50] <Error>: 0x16e247000 -[MIInstaller performInstallationWithError:]: Verification stage failed
Aug 9 05:03:03 iPhone atc[40] <Error>: 0x16e1bb000 __MobileInstallationInstallForLaunchServices_block_invoke222: Returned error Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.2qAqVP/extracted/Payload/test1.app : 0xe8008016 (The executable was signed with invalid entitlements.)" UserInfo={LibMISErrorNumber=-402620394, LegacyErrorString=ApplicationVerificationFailed, SourceFileLine=142, FunctionName=+[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:], NSLocalizedDescription=Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.2qAqVP/extracted/Payload/test1.app : 0xe8008016 (The executable was signed with invalid entitlements.)}
Aug 9 05:03:03 iPhone nsurlsessiond[115] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x1465658f0> com.testing.test1 (Placeholder) <file:///private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184/com.testing.test1.app>"
)
Aug 9 05:03:03 iPhone itunesstored[111] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x139146030> com.testing.test1 (Placeholder) <file:///private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184/com.testing.test1.app>"
)
Aug 9 05:03:03 iPhone iaptransportd[73] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x14f537910> com.testing.test1 (Placeholder) <file:///private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184/com.testing.test1.app>"
)
Aug 9 05:03:03 iPhone apsd[95] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x15f57a0b0> com.testing.test1 (Placeholder) <file:///private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184/com.testing.test1.app>"
)
Aug 9 05:03:03 iPhone atc[40] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x1378c3360> com.testing.test1 (Placeholder) <file:///private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184/com.testing.test1.app>"
)
Aug 9 05:03:03 iPhone SpringBoard[58] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x1528762f0> com.testing.test1 (Placeholder) <file:///private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184/com.testing.test1.app>"
)
Aug 9 05:03:03 iPhone BTServer[65] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x13fd3f680> com.testing.test1 (Placeholder) <file:///private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184/com.testing.test1.app>"
)
Aug 9 05:03:03 iPhone UserEventAgent[26] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x13dde4400> com.testing.test1 (Placeholder) <file:///private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184/com.testing.test1.app>"
)
Aug 9 05:03:03 iPhone passd[136] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x147d80a20> com.testing.test1 (Placeholder) <file:///private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184/com.testing.test1.app>"
)
Aug 9 05:03:03 iPhone homed[135] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x125e04010> com.testing.test1 (Placeholder) <file:///private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184/com.testing.test1.app>"
)
Aug 9 05:03:03 iPhone profiled[153] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x13c55ee80> com.testing.test1 (Placeholder) <file:///private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184/com.testing.test1.app>"
)
Aug 9 05:03:03 iPhone lsd[86] <Warning>: LaunchServices: Unentitled vendor device identifier lookup for app com.testing.test1 by pid 40
Aug 9 05:03:03 iPhone installd[50] <Notice>: 0x16e247000 -[MIClientConnection uninstallIdentifiers:withOptions:completion:]: Uninstall requested by atc (pid 40) for identifier com.testing.test1 with options: (null)
Aug 9 05:03:03 iPhone installd[50] <Notice>: 0x16e247000 -[MIUninstaller _uninstallBundleWithIdentifier:error:]: Uninstalling identifier com.testing.test1
Aug 9 05:03:03 iPhone installd[50] <Notice>: 0x16e247000 -[MIUninstallNotifier performRemovalWithCompletionBlock:]: Destroying container with identifier com.testing.test1 at /private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184
Aug 9 05:03:03 iPhone installd[50] <Notice>: 0x16e247000 -[MIUninstallNotifier performRemovalWithCompletionBlock:]: Destroying container with identifier com.testing.test1 at /private/var/mobile/Containers/Data/Application/0685BF39-E8C4-4D66-A5CF-EFD7CE29773C
Aug 9 05:03:03 iPhone nesessionmanager[133] <Notice>: NESMPathControllerSession[com.apple.commcenter.ne.cellularusage:358E9214-5A59-4451-B74C-2D08546A5FAA]: Skip a start command from nehelper[108]: session in state connected
Aug 9 05:03:04 iPhone mobile_assertion_agent[154] <Notice>: service_one_connection: Connection closed for client iTunes.
Aug 9 05:03:09 iPhone kernel[0] <Notice>: AppleKeyStore: operation failed (pid: 44 sel: 34 ret: e00002bc '-536870212')
Aug 9 05:03:09 iPhone kernel[0] <Notice>: AppleKeyStore: operation failed (pid: 44 sel: 34 ret: e00002bc '-536870212')
Aug 9 05:03:09 iPhone keybagd[44] <Error>: 0x16e1bb000 __handle_keystashverify_block_invoke: aks_stash_verify failed e00002bc
Aug 9 05:03:09 iPhone softwareupdateservicesd[178] <Error>: call_and_response: Error from server
Aug 9 05:03:09 iPhone keybagd[44] <Error>: 0x16e12f000 __handle_keystashverify_block_invoke: aks_stash_verify failed e00002bc
Aug 9 05:03:09 iPhone SpringBoard[58] <Error>: call_and_response: Error from server
Aug 9 05:03:09 iPhone softwareupdateservicesd[178] <Warning>: [autosu error]: SPI for AutoSU: probabilityVector is empty
Aug 9 05:03:10 iPhone storebookkeeperd[138] <Warning>: [UPP-SBDDomainSyncedStorageController] running synchronizeImmediatelyWithCompletionHandler: now
Aug 9 05:03:10 iPhone storebookkeeperd[138] <Warning>: [StoreBookkeeper] -[SBKUniversalPlaybackPositionStore _onQueueRunTaskWithName:taskCompletionHandler:runTaskBlock:] _onQueueSync - beginning synchronize operation...
Aug 9 05:03:10 iPhone storebookkeeperd[138] <Warning>: [StoreBookkeeper] -[SBKUniversalPlaybackPositionStore _onQueueLoadBagContextWithCompletionHandler:] _onQueueLoadBag - load bag operation beginning...
Aug 9 05:03:10 iPhone storebookkeeperd[138] <Warning>: [StoreBookkeeper] __81-[SBKUniversalPlaybackPositionStore _onQueueLoadBagContextWithCompletionHandler:]_block_invoke413 _onQueueLoadBag - load bag completed.
Aug 9 05:03:10 iPhone storebookkeeperd[138] <Warning>: [StoreBookkeeper] __89-[SBKUniversalPlaybackPositionStore _onQueueSynchronizeImmediatelyWithCompletionHandler:]_block_invoke _onQueueSync - synchronize operation beginning...
Aug 9 05:03:11 iPhone storebookkeeperd[138] <Warning>: [StoreBookkeeper] __96-[SBKUniversalPlaybackPositionStore _onQueueRunTaskWithName:taskCompletionHandler:runTaskBlock:]_block_invoke281 _onQueueSync - synchronize completed.
Aug 9 05:03:18 iPhone SpringBoard[58] <Warning>: [autosu error]: SPI for AutoSU: probabilityVector is empty
Aug 9 05:03:18 iPhone SpringBoard[58] <Warning>: [autosu error]: SPI for AutoSU: probabilityVector is empty

I think you are not changing the entitlements properly.
i.e
team identifier present in application identifier and keychain access group might be the one that belongs old account.
You have to update those with the one for new account.
then
try signing that it'd work I guess
FYI:
Application identifier is the combination of team id and bundle id
team id you can find from the installed certificate in keychain

Related

resigned ipa installs in iOS 8 but not installing in iOS 9+

I am resigning the app with another developer account using the following script
codesign -f -s "Distribution Certificate Name" <app-name>.app
The app installs but not opens.
This is the approach everybody is following
But it is not working for me
Please find the device log below and let me know if you need more information
Device Log
Jul 18 20:24:31 iPad atc[31] <Warning>: |error| Unable to create file lock.
Jul 18 20:24:31 iPad crash_mover[235] <Notice>: (Error) NPSLogging: <NPSDomainAccessor.m +[NPSDomainAccessor resolveActivePairedDevicePairingID:pairingDataStore:]:41> Failed to resolve pairing ID ((null)) or data store ((null)) for active device
Jul 18 20:24:31 iPad profiled[125] <Notice>: (Note ) MC: Provisioning profiles changed
Jul 18 20:24:31 iPad profiled[125] <Notice>: (Note ) MC: Provisioning profiles changed
Jul 18 20:24:31 iPad profiled[125] <Notice>: (Note ) MC: Provisioning profiles changed
Jul 18 20:24:32 iPad storebookkeeperd[93] <Warning>: [UPP-SBDDomainSyncedStorageController] target sync date from client: 2016-06-28 14:54:42 +0000 (in 10.00 sec)
Jul 18 20:24:32 iPad storebookkeeperd[93] <Warning>: [UPP-SBDDomainSyncedStorageController] setting target date to: 2016-06-28 14:54:42 +0000 (in 62625085527.50 sec)
Jul 18 20:24:32 iPad storebookkeeperd[93] <Warning>: [UPP-SBDDomainSyncedStorageController] scheduling sync (via BackgroundTaskJob) 9.999761 seconds from now...
Jul 18 20:24:32 iPad atc[31] <Warning>: LaunchServices: installing placeholder for com.test.app
Jul 18 20:24:32 iPad UserEventAgent[17] <Error>: Could not get event name for stream/token: com.apple.backgroundtaskagent/99: 132: Request for stale data
Jul 18 20:24:32 iPad installd[40] <Notice>: 0x101dac000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of "/var/tmp/com.apple.atc.Apps/com.test.app.app" type Placeholder requested by atc (pid 31)
Jul 18 20:24:32 iPad installd[40] <Notice>: 0x101dac000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.test.app; Version=0.0.7, ShortVersion=(null)>
Jul 18 20:24:32 iPad MobileStorageMounter[237] <Error>: 0x199a51310 Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such process
Jul 18 20:24:32 iPad MobileStorageMounter[237] <Error>: 0x199a51310 Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Jul 18 20:24:32 iPad MobileStorageMounter[237] <Error>: 0x199a51310 Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Jul 18 20:24:32 iPad MobileStorageMounter[237] <Error>: 0x199a51310 Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Jul 18 20:24:32 iPad MobileStorageMounter[237] <Error>: 0x199a51310 Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Jul 18 20:24:32 iPad MobileStorageMounter[237] <Error>: 0x199a51310 Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Jul 18 20:24:32 iPad MobileStorageMounter[237] <Error>: 0x199a51310 Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Jul 18 20:24:32 iPad installd[40] <Notice>: 0x101dac000 -[MIContainer makeContainerLiveReplacingContainer:withError:]: Made container live for com.test.app at /private/var/mobile/Containers/Data/Application/CF25F5C1-3292-489E-827B-704042967A94
Jul 18 20:24:32 iPad installd[40] <Notice>: 0x101dac000 -[MIContainer makeContainerLiveReplacingContainer:withError:]: Made container live for com.test.app at /private/var/mobile/Containers/Bundle/Application/C5A68C95-B468-4CD6-B63C-AE78788A3C84
Jul 18 20:24:32 iPad installd[40] <Notice>: 0x101dac000 -[MIInstaller performInstallationWithError:]: Staging: 0.01s; Waiting: 0.00s; Installation: 0.16s; Overall: 0.18s
Jul 18 20:24:32 iPad deleted[148] <Warning>: LaunchServices: no bundle found with identifier com.apple.CacheDelete
Jul 18 20:24:32 iPad atc[31] <Warning>: LaunchServices: Creating installProgressForApplication:<LSApplicationProxy: 0x15766e400> com.test.app (Placeholder) withPhase:3
Jul 18 20:24:32 iPad atc[31] <Warning>: LaunchServices: installPhaseFinishedForProgress: com.test.app.InstallingPlaceholder - <NSProgress: 0x1576a27c0> : Parent: 0x0 / Fraction completed: 0.0000 / Completed: 0 of 100 called, removing progress from cache
Jul 18 20:24:32 iPad atc[31] <Warning>: LaunchServices: Creating installProgressForApplication:<LSApplicationProxy: 0x159114b20> com.test.app (Placeholder) withPhase:0
Jul 18 20:24:32 iPad lsd[77] <Warning>: LaunchServices: Updating installPhase for parent <NSProgress: 0x13ed12ee0> : Parent: 0x0 / Fraction completed: 0.0000 / Completed: 0 of 100 to 0
Jul 18 20:24:34 iPad atc[31] <Warning>: LaunchServices: installPhaseFinishedForProgress: com.test.app.Loading - <NSProgress: 0x1575d8370> : Parent: 0x0 / Fraction completed: 0.9900 / Completed: 990 of 1000 called, removing progress from cache
Jul 18 20:24:34 iPad SpringBoard[50] <Warning>: Killing com.test.app for app installation
Jul 18 20:24:34 iPad atc[31] <Warning>: LaunchServices: installing app for existing placeholder <LSApplicationProxy: 0x15766e400> com.test.app (Placeholder)
Jul 18 20:24:34 iPad atc[31] <Warning>: LaunchServices: Creating installProgressForApplication:<LSApplicationProxy: 0x15766e400> com.test.app (Placeholder) withPhase:1
Jul 18 20:24:34 iPad lsd[77] <Warning>: LaunchServices: Updating installPhase for parent <NSProgress: 0x13ed12ee0> : Parent: 0x0 / Fraction completed: 0.5900 / Completed: 59 of 100 to 1
Jul 18 20:24:34 iPad installd[40] <Notice>: 0x100584000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of "/var/mobile/Media/PublicStaging/test.ipa" type Customer requested by atc (pid 31)
Jul 18 20:24:34 iPad installd[40] <Notice>: 0x100584000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.test.app; Version=0.0.7, ShortVersion=0.0.7>
Jul 18 20:24:35 iPad profiled[125] <Notice>: (Note ) MC: Provisioning profiles changed
Jul 18 20:24:35 iPad installd[40] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jul 18 20:24:35 iPad mobile_assertion_agent[157] <Notice>: service_one_connection: Connection closed for client iTunes.
Jul 18 20:24:35 iPad mobile_assertion_agent[157] <Notice>: service_one_connection: Connection closed for client iTunes.
Jul 18 20:24:35 iPad installd[40] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jul 18 20:24:35 iPad installd[40] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jul 18 20:24:35 iPad installd[40] <Error>: 0x100584000 -[MIInstallableBundle performVerificationWithError:]: 521: Application is missing the application-identifier entitlement.
Jul 18 20:24:35 iPad installd[40] <Error>: 0x100584000 -[MIInstaller performInstallationWithError:]: Verification stage failed
Jul 18 20:24:35 iPad atc[31] <Error>: 0x102294000 __MobileInstallationInstallForLaunchServices_block_invoke240: Returned error Error Domain=MIInstallerErrorDomain Code=63 "Application is missing the application-identifier entitlement." UserInfo=0x1575f4d40 {LegacyErrorString=ApplicationVerificationFailed, FunctionName=-[MIInstallableBundle performVerificationWithError:], SourceFileLine=521, NSLocalizedDescription=Application is missing the application-identifier entitlement.}
Jul 18 20:24:35 iPad atc[31] <Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil
Jul 18 20:24:35 iPad lsd[77] <Warning>: LaunchServices: installation failed for app com.test.app
Jul 18 20:24:35 iPad atc[31] <Warning>: LaunchServices: installPhaseFinishedForProgress: com.test.app.Installing - <NSProgress: 0x1577ee5f0> : Parent: 0x0 / Fraction completed: 0.0000 / Completed: 0 of 100 called, removing progress from cache
Jul 18 20:24:36 iPad librariand[163] <Error>: ubiquity account is not configured (or is disabled for this client), not creating collection
Jul 18 20:24:36 iPad librariand[163] <Error>: error in _handle_client_request: LibrarianErrorDomain/10/Unable to configure the collection.
Jul 18 20:24:36 iPad bird[131] <Error>: unable to determine evictable space: Error Domain=LibrarianErrorDomain Code=10 "The operation couldn’t be completed. (LibrarianErrorDomain error 10 - Unable to configure the collection.)" UserInfo=0x15761d5f0 {NSDescription=Unable to configure the collection.}
Jul 18 20:24:42 iPad storebookkeeperd[93] <Warning>: [UPP-SBDDomainSyncedStorageController] running synchronizeImmediatelyWithCompletionHandler: now
Jul 18 20:24:42 iPad storebookkeeperd[93] <Warning>: [StoreBookkeeper] -[SBKUniversalPlaybackPositionStore _onQueueRunTaskWithName:taskCompletionHandler:runTaskBlock:] _onQueueSync - beginning synchronize operation...
Jul 18 20:24:42 iPad storebookkeeperd[93] <Warning>: [StoreBookkeeper] -[SBKUniversalPlaybackPositionStore _onQueueLoadBagContextWithCompletionHandler:] _onQueueLoadBag - load bag operation beginning...
Jul 18 20:24:42 iPad storebookkeeperd[93] <Warning>: [StoreBookkeeper] __81-[SBKUniversalPlaybackPositionStore _onQueueLoadBagContextWithCompletionHandler:]_block_invoke411 _onQueueLoadBag - load bag completed.
Jul 18 20:24:42 iPad storebookkeeperd[93] <Warning>: [StoreBookkeeper] __89-[SBKUniversalPlaybackPositionStore _onQueueSynchronizeImmediatelyWithCompletionHandler:]_block_invoke _onQueueSync - synchronize operation beginning...
Jul 18 20:24:44 iPad storebookkeeperd[93] <Warning>: [StoreBookkeeper] [SBKTransactionController.m:447] Transaction Failed: <SBKSyncTransaction: 0x147d6ab40> domain = com.apple.upp, SYNC: anchor=0 -- Error: <SBKStoreError:0x147d94940> "Error Code = SBKStoreErrorCodeStoreAccountSessionExpired (-1004)"
Jul 18 20:24:44 iPad storebookkeeperd[93] <Warning>: [StoreBookkeeper] __96-[SBKUniversalPlaybackPositionStore _onQueueRunTaskWithName:taskCompletionHandler:runTaskBlock:]_block_invoke279 _onQueueSync - synchronize completed. ERROR = 'Error Code = SBKStoreErrorCodeStoreAccountSessionExpired (-1004)'.
Jul 18 20:24:44 iPad storebookkeeperd[93] <Warning>: [UPP-SBDJobScheduler] Could not synchronize domain 'com.apple.upp' (<SBKStoreError:0x147e14a10> "Error Code = SBKStoreErrorCodeStoreAccountSessionExpired (-1004)"). Synchronization will be re-attempted when the network connectivity, or account status has changed.
Jul 18 20:24:50 iPad locationd[57] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
Starting from iOS 8.3 entitlement for the app is mandatory.
codesign -f -s "Distribution Certificate Name" <app-name>.app
When you resign the app using above command it removes the existing entitlement
So the command that you are using works before iOS 8.4.1
So in order for the app to run from iOS 8.4.1 you have to sign the app along with entitlements*
Here is the command that creates entitlements file
codesign -d --entitlements - <appname>.app > entitlements.plist
then sign the app with entitlements
codesign -f -s "Distribution Certificate Name" '--entitlements' 'entitlements.plist' <app-name>.app

ios install the mobileconfig freeze white screen

I am installing the .mobileconfig using the safari.
But, sometimes when I arouse the safari, it will navigation to the install the mobileconfig page.
The screen will freeze on the white screen, that does not show the install button on the right top.
like below:
Have anyone had encounter the same problem?
My code to call the safari is using below code:
NSURL *url = [NSURL URLWithString:#"http://127.0.0.1:777/myconfig.mobileconfig"];
[[UIApplication sharedApplication]openURL:url];
I had copy the error command log like below:
Jan 7 21:53:25 James-iphone nsurlsessiond[109] <Error>: Task 2 for client <CFString 0x154e5e4f0 [0x1a0e33b68]>{contents = "com.apple.mobileassetd"} completed with error - code: -999
Jan 7 21:53:25 James-iphone Preferences[464] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Jan 7 21:53:25 James-iphone Preferences[464] <Notice>: MIS: Using empty blacklist.
Jan 7 21:53:25 James-iphone syncdefaultsd[519] <Notice>: (Note ) marked "com.me.keyvalueservice" topic as "opportunistic" on <APSConnection: 0x136515d10>
Jan 7 21:53:26 James-iphone Preferences[464] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Jan 7 21:53:26 James-iphone Preferences[464] <Notice>: MIS: Using empty blacklist.
Jan 7 21:53:26 James-iphone Preferences[464] <Notice>: (Note ) MC: Applying iPhone defaults
Jan 7 21:53:26 James-iphone Preferences[464] <Warning>: BTM: attaching to BTServer
Jan 7 21:53:26 James-iphone Preferences[464] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Jan 7 21:53:26 James-iphone Preferences[464] <Notice>: MIS: Using empty blacklist.
Jan 7 21:53:27 James-iphone syncdefaultsd[519] <Notice>: (Note ) marked "com.me.keyvalueservice" topic as "enabled" on <APSConnection: 0x136515d10>
Jan 7 21:53:27 James-iphone MobileSafari[514] <Error>: KeychainGetICDPStatus: keychain: -25300
Jan 7 21:53:27 James-iphone MobileSafari[514] <Error>: KeychainGetICDPStatus: status: off
Jan 7 21:53:27 James-iphone MobileSafari[514] <Error>: KeychainGetICDPStatus: keychain: -25300
Jan 7 21:53:27 James-iphone MobileSafari[514] <Error>: KeychainGetICDPStatus: status: off
Jan 7 21:53:27 James-iphone MobileSafari[514] <Error>: KeychainGetICDPStatus: keychain: -25300
Jan 7 21:53:27 James-iphone MobileSafari[514] <Error>: KeychainGetICDPStatus: status: off
Jan 7 21:53:28 James-iphone Preferences[464] <Warning>: *** Assertion failure in -[UITableView _endCellAnimationsWithContext:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3512.30.14/UITableView.m:1720
Jan 7 21:53:28 James-iphone Preferences[464] <Error>: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in section 5. The number of rows contained in an existing section after the update (7) must be equal to the number of rows contained in that section before the update (4), plus or minus the number of rows inserted or deleted from that section (2 inserted, 0 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out).'
*** First throw call stack:
(0x183805900 0x182e73f80 0x1838057d0 0x18417899c 0x1886f004c 0x1941301c4 0x194136d64 0x183259630 0x1832595f0 0x18325ecf8 0x1837bcbb0 0x1837baa18 0x1836e9680 0x184bf8088 0x188560d90 0x1000b7718 0x18328a8b8)
Jan 7 21:53:28 James-iphone SpringBoard[54] <Warning>: HW kbd: Failed to set (null) as keyboard focus
Jan 7 21:53:28 James-iphone com.apple.xpc.launchd[1] (UIKitApplication:com.apple.Preferences[0xfe24][464]) <Notice>: Service exited due to signal: Abort trap: 6
Jan 7 21:53:28 James-iphone SpringBoard[54] <Warning>: Application 'UIKitApplication:com.apple.Preferences[0xfe24]' crashed.
Jan 7 21:53:28 James-iphone UserEventAgent[23] <Warning>: 2463897065357: id=com.apple.Preferences pid=464, state=0
Jan 7 21:53:28 James-iphone MobileGestaltHelper[88] <Error>: libMobileGestalt MobileGestalt.c:276: server_access_check denied access to question UniqueDeviceID for pid 519
Jan 7 21:53:28 James-iphone syncdefaultsd[519] <Error>: libMobileGestalt MobileGestaltSupport.m:151: pid 519 (syncdefaultsd) does not have sandbox access for re6Zb+zwFKJNlkQTUeT+/w and IS NOT appropriately entitled
Jan 7 21:53:28 James-iphone syncdefaultsd[519] <Error>: libMobileGestalt MobileGestalt.c:537: no access to UniqueDeviceID (see <rdar://problem/11744455>)
Jan 7 21:53:28 James-iphone diagnosticd[82] <Error>: unable to find offset 0x8327f9a4 in shared cache for arch 'arm64'
Jan 7 21:53:28 James-iphone ReportCrash[520] <Notice>: platform_thread_get_unique_id matched 240727
Jan 7 21:53:28 James-iphone ReportCrash[520] <Notice>: Formulating report for corpse[464] Preferences
Jan 7 21:53:28 James-iphone ReportCrash[520] <Warning>: saved type '109_Preferences' report (21 of max 25) as /var/mobile/Library/Logs/CrashReporter/Preferences_2016-01-07-215328_James-iphone.ips
Jan 7 21:53:29 James-iphone pkd[154] <Warning>: assigning plug-in app.cyan.timy.dayext(2.2) to plugin sandbox
Jan 7 21:53:29 James-iphone pkd[154] <Warning>: enabling pid=54 for plug-in app.cyan.timy.dayext(2.2) B9580AEF-CE50-4DD3-A98C-9B5AF2933220 /private/var/mobile/Containers/Bundle/Application/D753EF69-C9C2-4C71-9755-79F8553787A9/HourDay.app/PlugIns/DayExt.appex
Jan 7 21:53:30 James-iphone SpringBoard[54] <Warning>: plugin app.cyan.timy.dayext invalidated
Jan 7 21:53:31 James-iphone SpringBoard[54] <Warning>: [MPUSystemMediaControls] Updating supported commands for now playing application.
Jan 7 21:53:31 James-iphone SpringBoard[54] <Warning>: [MPUSystemMediaControls] Updating supported commands for now playing application.
Jan 7 21:53:31 James-iphone com.apple.WebKit.WebContent[518] <Error>: CoreAnimation: failed to allocate IOSurface
Jan 7 21:53:36 James-iphone mediaserverd[25] <Notice>: '' (pid = 516) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None
Jan 7 21:53:36 James-iphone com.apple.xpc.launchd[1] (com.apple.WebKit.WebContent.A90CE0BD-CDCB-43AB-9311-B0D990645C4E[516]) <Warning>: Service exited with abnormal code: 1
Jan 7 21:53:36 James-iphone mediaserverd[25] <Notice>: '' (pid = 516) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None
Jan 7 21:53:36 James-iphone mediaserverd[25] <Notice>: 'FigPlayer - 31' (pid = 31) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None
Jan 7 21:53:36 James-iphone SpringBoard[54] <Warning>: [MPUSystemMediaControls] Updating supported commands for now playing application.
Maybe can give you some hint.
Are you installing OVER other profiles or along with others? I've replaced mine a few times now and iOS 9.1 doesn't like it for me on the iPhone 6+.
The only (want most painless) way I've found is to remove the old profiles before I install new ones via Xcode
On Xcode:
1) Click on the "Window" menu
2) Click on "Devices"
3) Wait for your Device (devices) to load .. Oh make sure they're plugged in! hah
4) Right click on the device you need to change profiles on
5) Click on "Show provisioning profiles"
In there you can add and delete profiles safely :)
edit
The other options is what's called OTAC (over the air configuration)... It's exactly what happens when your mobile phone provider sends you new APN settings and it asks you to install the settings "out of the blue"...
The docs are here:
https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/iPhoneOTAConfiguration/Introduction/Introduction.html
The only issue you'll have is that this isn't something you can do on the simulator so you'd better create "dummy profiles" to avoid replacing your development or production ones.
Another note, I did find this post on here: Installing a configuration profile on iPhone - programmatically

Cannot install app in dev iPhone

With Xcode 7 I cannot install app on dev iPhone with iOS 9 GM.
App is marked as installed but it is not visible in springboard.
Provision profiles seem ok. I'm using core-plot, don't know if it is an architecture issues.
Device log
> Sep 11 18:35:53 Davides-iPhone streaming_zip_conduit[274] <Warning>: LaunchServices: installing app for existing placeholder
> <LSApplicationProxy: 0x135523f60> com.protoscar.HCD2 <(null) *Not
> found in database*>
> Sep 11 18:35:53 Davides-iPhone streaming_zip_conduit[274] <Warning>: LaunchServices: Not creating progress for
> <LSApplicationProxy: 0x135523f60> com.protoscar.HCD2 <(null) *Not
> found in database*> since it is not a placeholder.
> Sep 11 18:35:53 Davides-iPhone installd[52] <Notice>: 0x1704b3000 -[MIClientConnection installPath:withOptions:completion:]: Install of "/var/mobile/Media/PublicStaging/HCD2.app" type Developer requested by
> streaming_zip_conduit (pid 274)
> Sep 11 18:35:53 Davides-iPhone installd[52] <Notice>: 0x17148f000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.protoscar.HCD2; Version=14,
> ShortVersion=1.0>
> Sep 11 18:35:53 Davides-iPhone profiled[151] <Notice>: (Note ) MC: Provisioning profiles changed
> Sep 11 18:35:53 Davides-iPhone profiled[151] <Notice>: (Note ) MC: Updating MIS trust...
> Sep 11 18:35:53 Davides-iPhone installd[52] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
> Sep 11 18:35:53 Davides-iPhone installd[52] <Notice>: 0x17148f000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.protoscar.HCD2 at
> /private/var/mobile/Containers/Data/Application/5DF14AF7-C8F4-4CBE-B081-C5BD046EFD27
> Sep 11 18:35:53 Davides-iPhone installd[52] <Notice>: 0x17148f000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.protoscar.HCD2 at
> /private/var/mobile/Containers/Bundle/Application/E83B05A4-ACC1-42E2-A3AA-942A2CDB131F
> Sep 11 18:35:54 Davides-iPhone installd[52] <Notice>: 0x17148f000 -[MIInstaller performInstallationWithError:]: Install Successful; Staging: 0.01s; Waiting: 0.00s; Preflight/Patch: 0.09s, Verifying:
> 0.09s; Overall: 0.35s
Fixed. I removed the provision profiles, rebooted the device and now the app install without problem.

iOS Error on launch from deeplink: lsd[738] <Warning>: LaunchServices: application launch failed - timeout waiting for launch

When launching my iOS app from a deeplink (a URL with app specific scheme), I get this error in log:
lsd[738] <Warning>: LaunchServices: application launch failed - timeout waiting for launch.
when the app is launched normally, there is no error.
There is no other log regarding the root of the timeout.
I am looking at the log coming from a device.
Here is the full log:
Mar 26 18:03:35 iPod kernel[0] <Notice>: xpcproxy[2291] Container: /private/var/mobile/Containers/Data/Application/E1E3A2BC-E5B7-4BE3-881D-CFFC37666FA2 (sandbox)
Mar 26 18:03:35 iPod MobileSafari[2291] <Error>: assertion failed: 12F5047f: libxpc.dylib + 51923 [A76ECB1C-8653-340A-A02D-52E89E8A8902]: 0x7d
Mar 26 18:03:35 iPod Unknown[2291] <Error>:
Mar 26 18:03:35 iPod locationd[63] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
Mar 26 18:03:35 iPod MobileSafari[2291] <Error>: Could not successfully update network info during initialization.
Mar 26 18:03:36 iPod locationd[63] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
Mar 26 18:03:36 iPod backboardd[56] <Warning>: CoreAnimation: updates deferred for too long
Mar 26 18:03:38 iPod kernel[0] <Notice>: xpcproxy[2295] Container: /private/var/mobile/Containers/Data/Application/8D14282B-075D-431C-B5BE-D9961FB420D7 (sandbox)
Mar 26 18:03:38 iPod syncdefaultsd[2287] <Notice>: (Note ) marked "com.me.keyvalueservice" topic as "ignored" on (null)
Mar 26 18:03:38 iPod locationd[63] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
Mar 26 18:03:38 iPod Training[2295] <Error>: assertion failed: 12F5047f: libxpc.dylib + 51923 [A76ECB1C-8653-340A-A02D-52E89E8A8902]: 0x7d
Mar 26 18:03:38 iPod Unknown[2295] <Error>:
Mar 26 18:03:48 iPod **lsd[738] <Warning>: LaunchServices: application launch failed - timeout waiting for launch.**
Mar 26 18:03:48 iPod Training[2295] <Warning>: willFinishLaunchingWithOptions
Mar 26 18:03:48 iPod Training[2295] <Warning>: didFinishLaunchingWithOptions
I was seeing 8 second delays before seeing the same log message.
Mar 26 18:03:48 iPod **lsd[738] <Warning>: LaunchServices: application launch failed - timeout waiting for launch.**
This was only happening when launching the app when the app was not already in the background. I filed a bug with Apple. This issue is supposedly fixed in iOS 9 beta 4. Unfortunately, older versions of iOS will continue to have this problem.

iOS8 iCloud backup not restoring enterprise app data

We have an enterprise iOS app that currently stores all of its data locally (core data plus a folder full of images) and a substantial number of users who have been using iCloud to backup their devices frequently. Restoring after device failure and when upgrading devices has and is still working just fine on iOS7. Unfortunately we're finding that backup restoration of app data is not happening on current versions of iOS8 (failing on 8.2, 8.1.3, 8.1.2 and possibly more). The app installs and runs just fine on iOS 8 for new installs. Restore from iTunes backup still works just fine. The results are the same for users with 1MB of data as ones with nearly 1GB of data. The results were the same last week before this weeks iCloud drama.
The timing seems to potentially line up with the "Masque Attack" fix, were there new requirements on enterprise apps added?
From the user stand point, you see the normal grayed out icon with the loading indicator and then it disappears about the same time as the following console log. If the user then installs the app again they start with no data, where in previous versions of iOS they would have all of their data.
A few potentially relevant snippets from the monstrously long console log of an attempt to restore on 8.2 (identifying info altered):
Mar 11 15:40:22 iPad backupd[60] <Warning>: WARNING: Retrying after hard error: Error getting file auth-tokens from service (MBErrorDomain/300). Underlying error: HTTP connection error (MBErrorDomain/300). Underlying error: The request timed out. (NSURLErrorDomain/-1001). Underlying error: The request timed out. (kCFErrorDomainCFNetwork/-1001)...
Mar 11 15:40:33 iPad backupd[60] <Warning>: INFO: [2] Restoring from snapshot 10 of backup xxxxxxxxxxxxxxxxxxxxxxxxxxxxx (3/6/15, 9:37:17 AM, iPad, iPad4,1, 11D201)
Mar 11 15:40:33 iPad backupd[60] <Warning>: INFO: [2] Starting to restore 0 files of size 0 B
Mar 11 15:40:34 iPad backupd[60] <Warning>: INFO: Unregistering MMCS item 488: /var/mobile/Containers/Data/Application/AF8DAA2A-AC8A-A3CA-AEBA-AF26FDA720AA/Documents/Photos/8142837B-DAFE-4AB1-A1C3-575441A52528.jpg.encrypted (574c85a9e9dca9d018fcc44a6c4c456bbb4bddd3)
.....
Mar 11 15:40:46 iPad backupd[60] <Warning>: WARNING: Chunk store progress model bytes remaining underflow (8192 bytes)
.....
Mar 11 15:40:47 iPad backupd[60] <Warning>: WARNING: [2] Error getting item from chunk store: /var/mobile/Containers/Data/Application/AF8DAA2A-AC8A-A3CA-AEBA-AF26FDA720AA/Documents/Photos/8142837B-DAFE-4AB1-A1C3-575441A52528.jpg.encrypted (574c85a9e9dca9d018fcc44a6c4c456bbb4bddd3): Error getting item from MMCS at path "/var/mobile/Containers/Data/Application/AF8DAA2A-AC8A-A3CA-AEBA-AF26FDA720AA/Documents/Photos/8142837B-DAFE-4AB1-A1C3-575441A52528.jpg.encrypted" (MBErrorDomain/401). Underlying error: chunk for item 00000000000001e8 at chunk index 0 has location r. Perhaps the item should be unregistered. (com.apple.mmcs/29).
.....
Mar 11 15:40:48 iPad backupd[60] <Warning>: WARNING: Retrying after hard error: Error getting item from MMCS at path "/var/mobile/Containers/Data/Application/AF8DAA2A-AC8A-A3CA-AEBA-AF26FDA720AA/Documents/Photos/8142837B-DAFE-4AB1-A1C3-575441A52528.jpg.encrypted" (MBErrorDomain/401). Underlying error: chunk for item 00000000000001e8 at chunk index 0 has location r. Perhaps the item should be unregistered. (com.apple.mmcs/29).
.....
Mar 11 15:41:30 iPad BTServer[68] <Critical>: LE LE_Security_DeriveLinkKeyForAddress with result BM3 STATUS 102
Mar 11 15:41:30 iPad identityservicesd[42] <Warning>: [Warning] sqlite3 error in _Bool CSDBRecordStoreSaveWithPreAndPostCallbacksAndTransactionType(CSDBRecordStoreRef, CSDBRecordStoreSaveCallback, CSDBRecordStoreSaveCallback, CSDBRecordConflictPolicy, CSDBSqliteTransactionType, CFErrorRef *): disk I/O error
Mar 11 15:41:30 iPad identityservicesd[42] <Error>: Error saving record store: CSDBRecordSQLite/10
.....
Mar 11 15:50:49 iPad backupd[60] <Warning>: WARNING: Chunk store progress model bytes remaining underflow (8192 bytes)
Mar 11 15:50:49 iPad backupd[60] <Warning>: WARNING: Chunk store progress model bytes remaining underflow (208784 bytes)
Mar 11 15:50:51 iPad backupd[60] <Warning>: INFO: [2] Restored batch of 17 files of size 24.8 MB in 30.5 s at 0.81 MB/s (99.4%)
Mar 11 15:50:51 iPad backupd[60] <Warning>: INFO: [2] Finished restoring files in 603.930 at 0.00 MB/s
Mar 11 15:50:51 iPad backupd[60] <Warning>: INFO: [2] Uninstalling placeholder: com.enterprise.app.in.question
Mar 11 15:50:51 iPad backupd[60] <Warning>: LaunchServices: Uninstalling app <LSApplicationProxy: 0x1563fdd0> com.enterprise.app.in.question (Placeholder)
Mar 11 15:50:52 iPad installd[36] <Notice>: 0x341000 -[MIClientConnection uninstallIdentifiers:withOptions:completion:]: Uninstall requested by backupd (pid 60) with options: (null)
Mar 11 15:50:52 iPad MobileStorageMounter[199] <Error>: 0x350749dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such process
Mar 11 15:50:52 iPad MobileStorageMounter[199] <Error>: 0x350749dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Mar 11 15:50:52 iPad MobileStorageMounter[199] <Error>: 0x350749dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Mar 11 15:50:52 iPad MobileStorageMounter[199] <Error>: 0x350749dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Mar 11 15:50:52 iPad SpringBoard[43] <Warning>: Killing com.enterprise.app.in.question for termination assertion
Mar 11 15:50:52 iPad installd[36] <Notice>: 0x341000 -[MIUninstaller _uninstallBundleWithIdentifier:error:]: Uninstalling identifier com.enterprise.app.in.question
Mar 11 15:50:53 iPad installd[36] <Notice>: 0x341000 -[MIUninstallNotifier performRemovalWithCompletionBlock:]: Destroying container with identifier com.enterprise.app.in.question at /private/va
r/mobile/Containers/Bundle/Application/AC76CA20-A0A9-49F0-A3E5-A854ACC834DA
Mar 11 15:50:53 iPad installd[36] <Notice>: 0x341000 -[MIUninstallNotifier performRemovalWithCompletionBlock:]: Destroying container with identifier com.enterprise.app.in.question at /private/va
r/mobile/Containers/Data/Application/AF8DAA2A-AC8A-A3CA-AEBA-AF26FDA720AA
Mar 11 15:50:53 iPad syncdefaultsd[200] <Notice>: (Note ) marked "com.me.keyvalueservice" topic as "opportunistic" on <APSConnection: 0x166601e0>
Mar 11 15:50:53 iPad backupd[60] <Warning>: LaunchServies: No app bundle to remove for com.enterprise.app.in.question
Mar 11 15:50:53 iPad lsd[153] <Warning>: LaunchServices: Updating identifier store
Mar 11 15:50:53 iPad backupd[60] <Warning>: INFO: [2] Registering safe harbor for com.enterprise.app.in.question at /var/mobile/Library/SafeHarbor/1
Mar 11 15:50:54 iPad installd[36] <Notice>: 0x1f59000 -[MIClientConnection registerSafeHarborAtPath:forIdentifier:ofType:withOptions:completion:]: Register safe harbor requested by client backupd (pid 60) for path /var/mobile/Library/SafeHarbor/1, identifier com.enterprise.app.in.question of type 2, with options (null)
Mar 11 15:50:54 iPad locationd[64] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0Mar 11 15:50:54 iPad installd[36] <Notice>: 0x1f59000 -[MIContainer makeContainerLiveReplacingContainer:withError:]: Made safe harbor container active for com.enterprise.app.in.question at /priv
ate/var/mobile/Containers/Data/Application/50638B9B-39E4-4CA8-815E-59B17685FF24
Mar 11 15:50:54 iPad backupd[60] <Warning>: INFO: [2] Processed failed app restore in 2.832 sMar 11 15:50:55 iPad backupd[60] <Warning>: INFO: Restore finished in 1642.926 s
Mar 11 15:50:55 iPad installd[36] <Notice>: 0x1f59000 -[MIClientConnection listSafeHarborsOfType:withOptions:completion:]: List safe harbor requested by client backupd (pid 60) for type 2 with options (null)
Mar 11 15:50:55 iPad atc[28] <Warning>: LaunchServices: Not creating progress for <LSApplicationProxy: 0x17dec580> com.enterprise.app.in.question since it is not a placeholder.
Mar 11 15:50:56 iPad backupd[60] <Warning>: INFO: [2] Restoring cancelled app: com.enterprise.app.in.question
Mar 11 15:50:56 iPad backupd[60] <Warning>: INFO: [2] Uninstalling placeholder: com.enterprise.app.in.question
Mar 11 15:50:56 iPad backupd[60] <Warning>: LaunchServices: Uninstalling app <LSApplicationProxy: 0x15578670> com.enterprise.app.in.question
Mar 11 15:50:56 iPad installd[36] <Notice>: 0x1f59000 -[MIClientConnection uninstallIdentifiers:withOptions:completion:]: Uninstall requested by backupd (pid 60) with options: (null)
Mar 11 15:50:56 iPad SpringBoard[43] <Warning>: Killing com.enterprise.app.in.question for termination assertion
Mar 11 15:50:56 iPad installd[36] <Error>: 0x1f59000 +[MIContainer allContainersForIdentifier:options:error:]: 686: No bundle container found for identifier com.enterprise.app.in.question
Mar 11 15:50:56 iPad backupd[60] <Warning>: LaunchServices: MobileInstallationUninstallForLaunchServices did not uninstall any apps, ignoring
Mar 11 15:50:57 iPad backupd[60] <Warning>: INFO: [2] Removing any partially restored app data
I (and our client) have been in contact with Apple about this, part of Apple had us log this as a bug and another responded saying that iCloud restore wasn't an enterprise level service and that this is how it is supposed to work currently. Hopefully the 2nd was mistaken.

Resources