SpringBoard[33] <Warning>: Killing <appname> for app installation - ios

During update of the app to new version I see that iOS kills application. I see in logs:
Jul 2 18:20:40 SpringBoard[33] <Warning>: Killing com.myapp.app for app installation
Jul 2 18:20:40 itunesstored[97] <Warning>: LaunchServices: installing app for existing placeholder LSApplicationProxy: com.myapp.app (Placeholder)
Jul 2 18:20:40 backboardd[28] <Warning>: pid_suspend failed for [325]: Unknown error: -1, Unknown error: -1
Jul 2 18:20:40 com.apple.launchd[1] <Notice>: (UIKitApplication:com.myapp.app[0x11d1]) Exited: Killed: 9
Jul 2 18:20:40 backboardd[28] <Warning>: Application 'UIKitApplication:com.myapp.app[0x11d1]' exited abnormally with signal 9: Killed: 9
Jul 2 18:20:40 networkd[81] <Warning>: No attributes found for PID=325
Jul 2 18:20:40 itunesstored[97] <Warning>: LaunchServices: Creating installProgressForApplication:LSApplicationProxy: com.myapp.app (Placeholder) withPhase:1
Jul 2 18:20:40 lsd[76] <Warning>: LaunchServices: Updating installPhase for parent <NSProgress: phase=Loading; state=Active; fractionCompleted=0.579990> to 1
Jul 2 18:20:40 installd[63] <Notice>: 0x283000 handle_install_for_ls: Install of "/var/mobile/Media/Downloads/1823728027110056877/-3508334369307939928" requested by itunesstored
Jul 2 18:20:41 installd[63] <Notice>: 0x283000 MobileInstallationInstall_Server: Installing app com.myapp.app
Jul 2 18:20:41 installd[63] <Notice>: 0x283000 MobileInstallationInstall_Server: Staging: 1.03s; Waiting: 0.00s; Installation: 0.38s; LS Sync: 0.00s; Overall: 1.41s
Jul 2 18:20:41 lsd[76] <Warning>: LaunchServices: Updating identifier store
Jul 2 18:20:41 itunesstored[97] <Warning>: LaunchServices: installPhaseFinishedForProgress: com.myapp.app.Installing - <NSProgress: phase=Installing; state=Finished; fractionCompleted=1.000000> called, removing progress from cache
Jul 2 18:20:41 lsd[76] <Warning>: LaunchServices: installation ended for app com.myapp.app
Jul 2 18:20:42 lsd[76] <Warning>: LSInstallProgress: In observeValueForKeyPath:fractionCompleted could not find parent progress for com.myapp.app, it may have been removed
Jul 2 18:20:42 SpringBoard[33] <Error>: libMobileGestalt MobileGestalt.c:835: nike-ipod is static and will never generate a notification
Jul 2 18:20:42 SpringBoard[33] <Error>: libMobileGestalt MobileGestalt.c:835: still-camera is static and will never generate a notification
Jul 2 18:20:42 SpringBoard[33] <Error>: libMobileGestalt MobileGestalt.c:835: magnetometer is static and will never generate a notification
Jul 2 18:20:42 SpringBoard[33] <Error>: libMobileGestalt MobileGestalt.c:835: any-telephony is static and will never generate a notification
Jul 2 18:20:42 SpringBoard[33] <Error>: libMobileGestalt MobileGestalt.c:835: stand-alone-contacts is static and will never generate a notification
Jul 2 18:20:42 kernel[0] <Debug>: launchd[331] Container: /private/var/mobile/Applications/2493C106-296D-459B-9499-3CFE5FC05BFB (sandbox)
Jul 2 18:20:42 com.apple.launchd[1] <Notice>: (UIKitApplication:com.myapp.app[0x9d25]) Exited: Killed: 9
Jul 2 18:20:42 com.apple.launchd[1] <Notice>: (UIKitApplication:com.myapp.app[0x9d25]) Throttling respawn: Will start in 2147483647 seconds
Jul 2 18:20:42 backboardd[28] <Warning>: Application 'UIKitApplication:com.myapp.app[0x9d25]' exited abnormally with signal 9: Killed: 9
Jul 2 18:20:42 networkd[81] <Warning>: No attributes found for PID=331
Jul 2 18:20:42 itunesstored[97] <Warning>: LaunchServices: installPhaseFinishedForProgress: com.myapp.app.Loading - <NSProgress: phase=Loading; state=Finished; fractionCompleted=1.000000> called, removing progress from cache
Jul 2 18:20:42 lsd[76] <Warning>: LSInstallProgress: In observeValueForKeyPath:userInfo.installState could not find parent progress for com.myapp.app, it may have been removed
Jul 2 18:
As I understand it is normal behaviour of iOS (I check update of other apps and see that they are also killed during update).
11:23 Jul 3 11:18:14 Sergey-Demchekos-iPhone SpringBoard[33] <Warning>: Killing ua.slando for app installation
11:23 Jul 3 11:18:16 Sergey-Demchekos-iPhone SpringBoard[33] <Warning>: Killing com.tripomatic.spainportugalapp for app installation
11:23 Jul 3 11:18:20 Sergey-Demchekos-iPhone SpringBoard[33] <Warning>: Killing com.pineapple.Tenerife for app installation
Now the questions. Firstly, I am bit confused of these lines. Does it mean that I have problems during killing the app which I have to fix?:
Jul 2 18:20:30 SpringBoard[33] <Warning>: Killing com.myapp.app for app installation
Jul 2 18:20:30 com.apple.launchd[1] <Notice>: (UIKitApplication:com.myapp.app[0xacc2]) Exited: Killed: 9
Jul 2 18:20:30 backboardd[28] <Warning>: Application 'UIKitApplication:com.myapp.app[0xacc2]' exited abnormally with signal 9: Killed: 9
Secondly, If iOS kills app (btw it is VOIP), it is not run again until user explicitly runs icon of it on SpringBoard. Do I have any handler which will be called before app is killed in order to schedule local notification and remind user to run app again?

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

Titanium ios app with 5.2.0 sdk crashes at launch in run or distrib mode but works fine in debug or simulator

The device is iPhone 6s Plus with iOS 9.2. Using Titanium Studio, when I run in debug mode and stepping through code, the app runs fine. However, when I simply "run" it (device connected to laptop via USB) or install the .ipa file in adhoc distribution, the app crashes as soon as it is launched. There is absolutely no log generated in Titanium when "run". And there is little to no relevant information in Xcode too when the installed .ipa is run. Here is the log from Xcode:
Mar 18 09:42:51 ThisUser-iPhone-6s-Plus SpringBoard[58] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Mar 18 09:42:51 ThisUser-iPhone-6s-Plus SpringBoard[58] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Mar 18 09:42:51 ThisUser-iPhone-6s-Plus securityd[96] <Error>: secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Mar 18 09:42:51 ThisUser-iPhone-6s-Plus securityd[96] <Error>: secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Mar 18 09:42:51 ThisUser-iPhone-6s-Plus amfid[178] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Mar 18 09:42:51 ThisUser-iPhone-6s-Plus kernel[0] <Notice>: xpcproxy[311] Container: /private/var/mobile/Containers/Data/Application/8A3B415C-2259-A7NA-8XXD-8X5XFXCAJBDK (sandbox)
Mar 18 09:42:51 ThisUser-iPhone-6s-Plus MySampleApp[311] <Warning>: [DEBUG] Reading stylesheet from: /var/mobile/Containers/Bundle/Application/H3POBLF9-PB0N-1KF5-4RXY-EEDRD90GC79X/MySampleApp.app/stylesheet.plist
Mar 18 09:42:51 ThisUser-iPhone-6s-Plus iap2d[176] <Warning>: process com.mysampleco.mysampleapp is now running the foreground
Mar 18 09:42:51 ThisUser-iPhone-6s-Plus UserEventAgent[26] <Warning>: Tracking com.mysampleco.mysampleapp (via activity)
Mar 18 09:42:51 ThisUser-iPhone-6s-Plus MySampleApp[311] <Warning>: [INFO] MySampleApp/1.0.1 (5.2.0.384775e)
Mar 18 09:42:51 ThisUser-iPhone-6s-Plus MySampleApp[311] <Warning>: [DEBUG] Loading: /var/mobile/Containers/Bundle/Application/H3POBLF9-PB0N-1KF5-4RXY-EEDRD90GC79X/MySampleApp.app/app.js, Resource: app_js
Mar 18 09:42:52 ThisUser-iPhone-6s-Plus kernel[0] <Notice>: Sandbox: MySampleApp(311) deny(1) sysctl-read kern.proc.all.0
Mar 18 09:42:52 ThisUser-iPhone-6s-Plus kernel[0] <Notice>: Sandbox: MySampleApp(311) deny(1) process-info-pidinfo 0
Mar 18 09:42:52 ThisUser-iPhone-6s-Plus kernel[0] <Notice>: Sandbox: MySampleApp(311) deny(1) sysctl-read kern.proc.pid.0
Mar 18 09:42:52 ThisUser-iPhone-6s-Plus mediaserverd[28] <Notice>: '' com.mysampleco.mysampleapp(pid = 311) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None
Mar 18 09:42:52 ThisUser-iPhone-6s-Plus SpringBoard[58] <Warning>: HW kbd: Failed to set (null) as keyboard focus
Mar 18 09:42:52 ThisUser-iPhone-6s-Plus mediaserverd[28] <Notice>: 'FigPlayer - 34' (pid = 34) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None
Mar 18 09:42:52 ThisUser-iPhone-6s-Plus com.apple.xpc.launchd[1] (UIKitApplication:com.mysampleco.mysampleapp[0x72dd][311]) <Warning>: Service exited with abnormal code: 1
Mar 18 09:42:52 ThisUser-iPhone-6s-Plus SpringBoard[58] <Warning>: Application 'UIKitApplication:com.mysampleco.mysampleapp[0x72dd]' exited voluntarily.
Mar 18 09:42:52 ThisUser-iPhone-6s-Plus iap2d[176] <Warning>: process com.mysampleco.mysampleapp is now switching to other state
Mar 18 09:42:52 ThisUser-iPhone-6s-Plus iap2d[176] <Warning>: process com.mysampleco.mysampleapp is now terminated
Mar 18 09:42:52 ThisUser-iPhone-6s-Plus UserEventAgent[26] <Warning>: 85324450686: id=com.mysampleco.mysampleapp pid=311, state=0
Mar 18 09:42:52 ThisUser-iPhone-6s-Plus SpringBoard[58] <Warning>: [MPUSystemMediaControls] Updating supported commands for now playing application.
I've searched through other posts, some of whom point to "Javascript Minification" (which I turned off but still got the crash) and some talk about "Fastest, Smallest [-Os]" for Release in Code Generation section of Xcode's Build setting (which I don't know how to control since I'm using Appcelerator Titanium to build the app). Several others discuss specific code issues as revealed by the log. Since I get nothing in the log files that I can tell of significance, I'm not sure where to look.
Any help is appreciated.
UPDATE on March 21, 2016:
It took me a while to figure out the culprit. Here are the steps to reproduce the issue:
1) In Titanium Studio, create a new Mobile App project using Alloy Default template.
2) Run the newly created project as-is to a USB attached iPhone 6s Plus (or probably ANY ios device).
3) Click on the app icon on the device and the app will launch just fine with Hello World on the screen.
4) Now go to the TiApp.xml file and edit it by adding the following parameter:
<property name="appc-sourcecode-encryption-policy">embed</property>
5) Now run the modified project to the USB attached device.
6) Open the app and you will notice that it crashes right after the splash screen shows briefly.
It seems the property above does not work properly. Opened JIRA ticket AC-3389.
It looks like a provisioning issue. Check this thread which deals with a similar error.
If that does not help, please provide some more details like sample code and detailed crash logs (full trace-log). Thanks!

Enterprise app installing but immediatelly dissapears

I'm trying to install my enterprise app but after the alert on the webpage that says to install the app the icon just changes to the one selected on my device and after this dissappears.
I search and found that this could be caused by a different bundle id on the manifest and the app but this not seems to be the problem.
I deleted and re make the certificates and provisioning profiles to the distribution on house.
And of course I have a enterprise developer account.
When I try to install the app this is the console log of the device but i thing that doesn't gives significant information:
Jan 15 16:36:52 iPhone-de-Sergio itunesstored[108] <Warning>: LaunchServices: installing placeholder for <LSApplicationProxy: 0x137985e30> com.company.product <(null) *Not found in database*>
Jan 15 16:36:52 iPhone-de-Sergio installd[46] <Notice>: 0x16e1bb000 -[MIClientConnection installPath:withOptions:completion:]: Install of "/var/mobile/Library/Caches/com.apple.itunesstored/AppPlaceholders/2472169525513059198.app" type Placeholder (LSInstallType = 1) requested by itunesstored (pid 108)
Jan 15 16:36:52 iPhone-de-Sergio installd[46] <Notice>: 0x16e12f000 -[MIInstaller _extractPackageWithError:]: Incoming install at /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.OIMMYz/extracted/2472169525513059198.app had class 3; changing to class 4
Jan 15 16:36:52 iPhone-de-Sergio installd[46] <Notice>: 0x16e12f000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.company.product; Version=2.8, ShortVersion=(null)>
Jan 15 16:36:52 iPhone-de-Sergio installd[46] <Notice>: 0x16e12f000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.company.product at /private/var/mobile/Containers/Data/Application/7159033A-3110-4210-9C62-A726D8A1165E
Jan 15 16:36:52 iPhone-de-Sergio installd[46] <Notice>: 0x16e12f000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.company.product at /private/var/mobile/Containers/Bundle/Application/0941164D-1979-427A-8F73-FE9B1E963F9D
Jan 15 16:36:52 iPhone-de-Sergio installd[46] <Notice>: 0x16e12f000 -[MIInstaller performInstallationWithError:]: Install Successful; Staging: 0.00s; Waiting: 0.00s; Preflight/Patch: 0.00s, Verifying: 0.01s; Overall: 0.11s
Jan 15 16:36:52 iPhone-de-Sergio itunesstored[108] <Warning>: LaunchServices: Creating installProgressForApplication:<LSApplicationProxy: 0x1379819c0> com.company.product (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/0941164D-1979-427A-8F73-FE9B1E963F9D/2472169525513059198.app> withPhase:3
Jan 15 16:36:52 iPhone-de-Sergio itunesstored[108] <Warning>: LaunchServices: installPhaseFinishedForProgress: com.company.product.InstallingPlaceholder - <NSProgress: 0x1366f76f0> : Parent: 0x0 / Fraction completed: 0.0000 / Completed: 0 of 100 called, removing progress from cache
Jan 15 16:36:52 iPhone-de-Sergio itunesstored[108] <Warning>: LaunchServices: updating placeholder for <LSApplicationProxy: 0x1379819c0> com.company.product (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/0941164D-1979-427A-8F73-FE9B1E963F9D/2472169525513059198.app> with icons
Jan 15 16:36:52 iPhone-de-Sergio installd[46] <Notice>: 0x16e087000 -[MIClientConnection installPath:withOptions:completion:]: Install of "/var/mobile/Library/Caches/com.apple.itunesstored/AppPlaceholders/2472169525513059198.app" type Placeholder (LSInstallType = 1) requested by itunesstored (pid 108)
Jan 15 16:36:52 iPhone-de-Sergio installd[46] <Notice>: 0x16e12f000 -[MIInstaller _extractPackageWithError:]: Incoming install at /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.JdOYKB/extracted/2472169525513059198.app had class 3; changing to class 4
Jan 15 16:36:52 iPhone-de-Sergio installd[46] <Notice>: 0x16e12f000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.company.product; Version=2.8, ShortVersion=(null)>
Jan 15 16:36:52 iPhone-de-Sergio installd[46] <Notice>: 0x16e12f000 -[MIInstallableBundle _refreshUUIDForContainer:withError:]: Data container for com.company.product is now at /private/var/mobile/Containers/Data/Application/C5862B48-66D9-4C43-8062-7176554FA163
Jan 15 16:36:52 iPhone-de-Sergio installd[46] <Notice>: 0x16e12f000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.company.product at /private/var/mobile/Containers/Bundle/Application/24EC78B5-0119-4D8B-AC5E-D600534DC00C
Jan 15 16:36:52 iPhone-de-Sergio installd[46] <Notice>: 0x16e12f000 -[MIInstaller performInstallationWithError:]: Install Successful; Staging: 0.00s; Waiting: 0.00s; Preflight/Patch: 0.00s, Verifying: 0.00s; Overall: 0.09s
Jan 15 16:36:53 iPhone-de-Sergio nsurlsessiond[112] <Error>: Task 15 for client <CFString 0x19ca56f00 [0x1a0e65b68]>{contents = "com.apple.itunesstored"} completed with error - code: -999
Jan 15 16:36:53 iPhone-de-Sergio itunesstored[108] <Warning>: LaunchServices: Creating installProgressForApplication:<LSApplicationProxy: 0x1367841b0> com.company.product (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/24EC78B5-0119-4D8B-AC5E-D600534DC00C/2472169525513059198.app> withPhase:0
Jan 15 16:36:53 iPhone-de-Sergio lsd[82] <Warning>: LaunchServices: Updating installPhase for parent <NSProgress: 0x12f56c5c0> : Parent: 0x0 / Fraction completed: 0.0000 / Completed: 0 of 100 to 0
Jan 15 16:36:53 iPhone-de-Sergio itunesstored[108] <Warning>: LaunchServices: Uninstalling placeholder for app <LSApplicationProxy: 0x13797bb60> com.company.product (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/24EC78B5-0119-4D8B-AC5E-D600534DC00C/2472169525513059198.app>
Jan 15 16:36:53 iPhone-de-Sergio itunesstored[108] <Warning>: LaunchServices: Uninstalling app <LSApplicationProxy: 0x13797bb60> com.company.product (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/24EC78B5-0119-4D8B-AC5E-D600534DC00C/2472169525513059198.app>
Jan 15 16:36:53 iPhone-de-Sergio installd[46] <Notice>: 0x16e12f000 -[MIClientConnection uninstallIdentifiers:withOptions:completion:]: Uninstall requested by itunesstored (pid 108) for identifier com.company.product with options: {
}
Jan 15 16:36:53 iPhone-de-Sergio lsd[82] <Warning>: LaunchServices: installation ended for app com.company.product
Jan 15 16:36:53 iPhone-de-Sergio lsd[82] <Warning>: LSInstallProgress: In subscribeBlock: could not find parent progress for com.company.product, it may have been removed
Jan 15 16:36:53 iPhone-de-Sergio lsd[82] <Warning>: LSInstallProgress: In subscribeBlock: could not find parent progress for com.company.product, it may have been removed
Jan 15 16:36:53 iPhone-de-Sergio lsd[82] <Warning>: LSInstallProgress: In subscribeBlock: could not find parent progress for com.company.product, it may have been removed
Jan 15 16:36:53 iPhone-de-Sergio lsd[82] <Warning>: LSInstallProgress: In subscribeBlock: could not find parent progress for com.company.product, it may have been removed
Jan 15 16:36:53 iPhone-de-Sergio installd[46] <Notice>: 0x16e12f000 -[MIUninstaller _uninstallBundleWithIdentifier:error:]: Uninstalling identifier com.company.product
Jan 15 16:36:53 iPhone-de-Sergio installd[46] <Notice>: 0x16e12f000 -[MIUninstallNotifier performRemovalWithCompletionBlock:]: Destroying container with identifier com.company.product at /private/var/mobile/Containers/Bundle/Application/24EC78B5-0119-4D8B-AC5E-D600534DC00C
Jan 15 16:36:53 iPhone-de-Sergio installd[46] <Notice>: 0x16e12f000 -[MIUninstallNotifier performRemovalWithCompletionBlock:]: Destroying container with identifier com.company.product at /private/var/mobile/Containers/Data/Application/C5862B48-66D9-4C43-8062-7176554FA163
Jan 15 16:36:53 iPhone-de-Sergio itunesstored[108] <Warning>: LaunchServies: No app bundle to remove for com.company.product
Jan 15 16:36:53 iPhone-de-Sergio lsd[82] <Warning>: LaunchServices: Updating identifier store
Jan 15 16:36:53 iPhone-de-Sergio itunesstored[108] <Warning>: LaunchServices: clearing created progress for com.company.product
What I'm making wrong?
I made the next mistakes, maybe for someone are useful:
Call all the links on the plist and html with https (And use a server that support that too). I has the mistake that mix http and https addresses on the href.
Ensure that the folder where the IPA is stored has permissions to download: I checked that on the root folder I can 'see' the file. on the folder when I'm publishing the app don't.

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.

iOS Enterprise Wireless (OTA) distribution Unable to Download Application

My company has an enterprise ios account and I am hoping to upload my app on it wirelessly. I have been given distribution certificate and distribution provisioning profile by the client.
I followed this great tutorial here on blog.appliedis.com, which shows how to wirelessly deploy the app with enterprise account.
The problem is that I get this error when install the app on iPad, right at the end when the install is about to finish.
Unable to Download App MyApp could not be installed at this time
My Steps
Here are the steps I took:-
Matched the Bundle ID of the app (in plist) with which client's certificate / provisioning profile is created.
Clicked/installed Distribution Certificate from the client to my KeyChain
Dragged Provisioning profile (Distribution) from the client into XCode
In Code Signing, I selected Distribution certificate (sent by the client) in all of them as shown (notice all have same):-
and for Provisioning Profiles, I selected distribution Provisioning profile sent by the client as follows (notice both are same):-
Xcode > Product > Archive > Save For Enterprise Deployment
Specified the title, URL for IPA on my server.
Hosted the .ipa, .plist (Both xcode generated) on my Linux server.
Created a link as follows:- https://www.myurl.com/myapps/MyApp.plist">Click to Download
When clicked, app starts but slaps the error when app downloading is in the mid way.
Additional Info:-
The reason why we opted for iOS Enterprise account is that we don't have to enter UDIDs. So the iPad in which this app is being installed doesn't have its UDID in the client's account.
Below is my Console Log (Just in case)
Aug 19 22:09:30 My-iPad wifid[15] <Notice>: WiFi:[430193370.378140]: Foreground Network Application exited.
Aug 19 22:09:30 My-iPad wifid[15] <Notice>: WiFi:[430193370.378722]: BG Application: Not Present, BG Daemon: Present. Daemons: SiriViewService networkd itunesstored apsd assistantd sharingd
Aug 19 22:09:30 My-iPad itunesstored[90] <Warning>: LaunchServices: installing placeholder for com.theclientname.app
Aug 19 22:09:30 My-iPad installd[63] <Notice>: 0x315000 handle_install_for_ls: Install of "/var/mobile/Library/Caches/com.apple.itunesstored/AppPlaceholders/-4665319901594503043.app" requested by itunesstored
Aug 19 22:09:30 My-iPad installd[63] <Notice>: 0x315000 MobileInstallationInstall_Server: Installing app com.theclientname.app
Aug 19 22:09:30 My-iPad installd[63] <Notice>: 0x315000 install_application: Installing placeholder
Aug 19 22:09:30 My-iPad installd[63] <Notice>: 0x315000 MobileInstallationInstall_Server: Staging: 0.01s; Waiting: 0.00s; Installation: 0.05s; LS Sync: 0.00s; Overall: 0.06s
Aug 19 22:09:31 My-iPad itunesstored[90] <Warning>: LaunchServices: Creating installProgressForApplication:LSApplicationProxy: com.theclientname.app (Placeholder) withPhase:0
Aug 19 22:09:31 My-iPad lsd[73] <Warning>: LaunchServices: Updating installPhase for parent <NSProgress: phase=Loading; state=Waiting; fractionCompleted=0.000000> to 0
Aug 19 22:10:12 My-iPad SpringBoard[33] <Warning>: Killing com.theclientname.app for app installation
Aug 19 22:10:12 My-iPad itunesstored[90] <Warning>: LaunchServices: installing app for existing placeholder LSApplicationProxy: com.theclientname.app (Placeholder)
Aug 19 22:10:12 My-iPad itunesstored[90] <Warning>: LaunchServices: Creating installProgressForApplication:LSApplicationProxy: com.theclientname.app (Placeholder) withPhase:1
Aug 19 22:10:12 My-iPad lsd[73] <Warning>: LaunchServices: Updating installPhase for parent <NSProgress: phase=Loading; state=Active; fractionCompleted=0.590000> to 1
Aug 19 22:10:12 My-iPad installd[63] <Notice>: 0x315000 handle_install_for_ls: Install of "/var/mobile/Media/Downloads/-4665319901594503043/-8050886506109721064" requested by itunesstored
Aug 19 22:10:17 My-iPad wifid[15] <Notice>: WiFi:[430193417.818493]: Client itunesstored set type to normal application
Aug 19 22:10:17 My-iPad wifid[15] <Notice>: WiFi:[430193417.819443]: BG Application: Not Present, BG Daemon: Present. Daemons: SiriViewService networkd apsd assistantd sharingd
Aug 19 22:10:17 My-iPad installd[63] <Notice>: 0x315000 MobileInstallationInstall_Server: Installing app com.theclientname.app
Aug 19 22:10:17 My-iPad installd[63] <Error>: profile not valid: 0xe8008012
Aug 19 22:10:17 My-iPad installd[63] <Error>: 0x315000 install_embedded_profile: Could not install embedded profile: 0xe8008012
Aug 19 22:10:19 My-iPad installd[63] <Error>: 0x315000 verify_signer_identity: MISValidateSignatureAndCopyInfo failed for /var/tmp/install_staging.vSfPbR/foo_extracted/Payload/APPNAME.app/APPNAME: 0xe8008015
Aug 19 22:10:19 My-iPad installd[63] <Error>: 0x315000 do_preflight_verification: Could not verify executable at /var/tmp/install_staging.vSfPbR/foo_extracted/Payload/APPNAME.app
Aug 19 22:10:19 My-iPad installd[63] <Error>: 0x315000 install_application: Could not preflight application install
Aug 19 22:10:19 My-iPad itunesstored[90] <Error>: 0x1ac1000 MobileInstallationInstallForLaunchServices: failed with -1
Aug 19 22:10:19 My-iPad itunesstored[90] <Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil
Aug 19 22:10:19 My-iPad lsd[73] <Warning>: LaunchServices: installation failed for app com.theclientname.app
Aug 19 22:10:19 My-iPad itunesstored[90] <Warning>: LaunchServices: installPhaseFinishedForProgress: com.theclientname.app.Installing - <NSProgress: phase=Installing; state=Failed; fractionCompleted=0.000000> called, removing progress from cache
Aug 19 22:10:19 My-iPad lsd[73] <Warning>: LaunchServices: installation failed for app com.theclientname.app
Aug 19 22:10:19 My-iPad itunesstored[90] <Warning>: LaunchServices: installPhaseFinishedForProgress: com.theclientname.app.Loading - <NSProgress: phase=Loading; state=Failed; fractionCompleted=1.000000> called, removing progress from cache
Aug 19 22:10:19 My-iPad installd[63] <Error>: 0x315000 handle_install_for_ls: API failed
Aug 19 22:10:21 My-iPad assistantd[36] <Notice>: connection 11 total: 1, connected: 0, added new subflow [cid=1, state=Waiting, ifindex=2]
Aug 19 22:10:21 My-iPad assistantd[36] <Notice>: connection 11 total: 1, connected: 1, new connected subflow [cid=1, state=Connected, ifindex=2, preferred, mp_capable]
There are a couple of potential'gotchas' that you should check. An obvious one, for iOS 7.1 + is that the download html and manifest .plist have to be on an https server. Another is that, even if they are, that server must be correctly handling the MIME type for .ipa files. I think that there's no problem generally with Apache servers. Microsoft servers aren't natively set up for this so they have to be 'tuned' by their administrators to see '.ipa' as "application/octet-stream."
I was facing similar issue with my distribution license, and the problem was there was "XC" provisioning profile which had the exact same bundle id.
My solution to his was to delete this XC: provisioning profile both from Apple Developer Portal and Xcode -> Preferences -> Apple ID -> View Details -> XC: provisioning profile -> right click Go To Finder -> delete
Hope this helps,

Resources