Cordova hybrid app on ios white screen - ios

What do you do if you get a white screen when you launch your app on the ios simulator using cordova emulate ios and you have already tried the following:
Opened console log in Safari after selecting ios app---> which shows nothing because you can't connect until the app starts up, which means you can't see any startup logs... (as far as I am aware)
Looked through the syslog for the ios emulator carefully but found no revealing clues. There's lots of errors, but not sure which one pertains, if any? I'll copy and paste the log here...
Downloaded Ripple and tried running the app on it. Everything is fine on the ripple emulator. The app seems to work on the browser and ripple, but white screens on the ios simulator.
ios Simulator Log:
Apr 26 22:31:03 JayPrimes-MacBook-Pro syslogd[4128] <Notice>: --- syslogd restarted ---
Apr 26 22:31:03 JayPrimes-MacBook-Pro.local backboardd[4116] <Warning>: <CAWindowServerDisplay:0x54684d0 TVOut 0x0>: Ignoring call to setTVSignalType: in simulator.
Apr 26 22:31:03 JayPrimes-MacBook-Pro.local backboardd[4116] <Notice>: void __IOHIDPlugInLoadBundles(): Loaded 0 HID plugins
Apr 26 22:31:03 JayPrimes-MacBook-Pro.local backboardd[4116] <Notice>: Posting 'com.apple.iokit.hid.displayStatus' notifyState=1
Apr 26 22:31:03 JayPrimes-MacBook-Pro.local backboardd[4116] <Notice>: ____IOHIDSessionScheduleAsync_block_invoke: thread_id=0xb0219000
Apr 26 22:31:03 JayPrimes-MacBook-Pro.local backboardd[4116] <Notice>: HID Session async scheduling initiated.
Apr 26 22:31:03 JayPrimes-MacBook-Pro.local backboardd[4116] <Notice>: HID Session async root queue running at priority 63 and schedule 2.
Apr 26 22:31:03 JayPrimes-MacBook-Pro.local backboardd[4116] <Notice>: HID Session async scheduling complete.
Apr 26 22:31:03 JayPrimes-MacBook-Pro.local locationd[4119] <Notice>: Logging binary sensor data to /Users/justin/Library/Application Support/iPhone Simulator/7.1/Library/Caches/locationd/locationdSensors.bin
Apr 26 22:31:03 JayPrimes-MacBook-Pro.local backboardd[4116] <Notice>: Successfully opened the IOHIDSession
Apr 26 22:31:03 JayPrimes-MacBook-Pro.local installd[4122] <Notice>: 0x13471a8 check_freshness: sb.st_mtime = 1398565636 reference_mtime = 1398565631
Apr 26 22:31:03 JayPrimes-MacBook-Pro.local mstreamd[4123] <Notice>: (Note ) mstreamd: mstreamd starting up.
Apr 26 22:31:03 JayPrimes-MacBook-Pro.local installd[4122] <Notice>: 0x13471a8 check_stale_maps: /Users/justin/Library/Application Support/iPhone Simulator/7.1/Applications appears stale
Apr 26 22:31:03 JayPrimes-MacBook-Pro.local locationd[4119] <Error>: NBB-Could not get UDID for stable refill timing, falling back on random
Apr 26 22:31:03 JayPrimes-MacBook-Pro.local backboardd[4116] <Error>: HID: The 'Rate Controlled' connection 'backboardd' access to protected services is granted.
Apr 26 22:31:04 --- last message repeated 1 time ---
Apr 26 22:31:03 JayPrimes-MacBook-Pro.local mstreamd[4123] <Notice>: (Note ) PS: The subscription plugin class does not support push notification refreshing.
Apr 26 22:31:03 JayPrimes-MacBook-Pro.local mstreamd[4123] <Notice>: (Note ) PS: Media stream daemon starting...
Apr 26 22:31:03 JayPrimes-MacBook-Pro.local configd_sim[4118] <Notice>: network changed: v4(en0+:192.168.0.109) DNS+ Proxy+
Apr 26 22:31:03 JayPrimes-MacBook-Pro.local locationd[4119] <Notice>: Location icon should now be in state 'Inactive'
Apr 26 22:31:03 JayPrimes-MacBook-Pro.local installd[4122] <Error>: 0x13471a8 load_application_info: Info plist for /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk//Applications/iOS Diagnostics.app was missing or empty
Apr 26 22:31:03 JayPrimes-MacBook-Pro.local profiled[4120] <Notice>: (Note ) profiled: Service starting...
Apr 26 22:31:03 JayPrimes-MacBook-Pro.local installd[4122] <Error>: 0x13471a8 load_application_info: Info plist for /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk//Applications/Photo Booth.app was missing or empty
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SimulatorBridge[4115] <Notice>: Switching to keyboard: en
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SimulatorBridge[4115] <Warning>: KEYMAP: Chose mode=en_US#hw=US;sw=QWERTY from match=en_US#hw=US;sw=QWERTY from language=en
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local installd[4122] <Notice>: 0x13471a8 generate_application_map: Deferring user app list rebuild
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local securityd[4129] <Error>: unable to access hwaes key
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local installd[4122] <Notice>: 0x13471a8 generate_application_map: Saved updated install map for -|system|internal
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local installd[4122] <Notice>: 0xb0093000 load_application_type: No applications of type VPNPlugin found in /Users/justin/Library/Application Support/iPhone Simulator/7.1/Applications
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local distnoted[4131] <Warning>: # distnote server daemon absolute time: 34423.868850975 civil time: Sat Apr 26 22:31:04 2014 pid: 4131 uid: 501 root: yes
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local installd[4122] <Notice>: 0xb0093000 generate_application_map: Saved updated install map for user|-|-
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local lsd[4132] <Warning>: LaunchServices: Seeding database
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local locationd[4119] <Warning>: Launch Services: Registering unknown app identifier com.apple.PassKit failed
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local locationd[4119] <Warning>: Launch Services: Unable to find app identifier com.apple.PassKit
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local backboardd[4116] <Warning>: Migration complete (if performed). (Elapsed time: 0.00 seconds)
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local backboardd[4116] <Warning>: -[BKSystemAppSentinel lock_bootstrap]: Telling the system app that it can start
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SimulatorBridge[4115] <Warning>: LaunchServices: installing app for existing placeholder LSApplicationProxy: com.ionicframework.starter
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SimulatorBridge[4115] <Warning>: LaunchServices: Not creating progress for LSApplicationProxy: com.ionicframework.starter since it is not a placeholder.
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local installd[4122] <Notice>: 0xb0115000 handle_install_for_ls: Install of "/Users/justin/repos/sprout/platforms/ios/build/emulator/Sprout.app" requested by SimulatorBridge
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local backboardd[4116] <Error>: HID: The 'Passive' connection 'SpringBoard' access to protected services is granted.
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local backboardd[4116] <Error>: HID: The 'Rate Controlled' connection 'SpringBoard' access to protected services is granted.
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: Loaded logger: SBAppInstallationLog
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: Loaded logger: SBIconLog
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: Loaded logger: SBWorkspaceLogging
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local backboardd[4116] <Warning>: -[BKSystemAppSentinel lock_notePresenceOfSystemApp:] Now monitoring "com.apple.SpringBoard"
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: *** error reading settings archive file: <SBRootSettings: /Users/justin/Library/Application Support/iPhone Simulator/7.1/Documents/com.apple.springboard.settings/RootSettings.plist>
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: *** error reading settings archive file: <SBRootSettings: /Users/justin/Library/Application Support/iPhone Simulator/7.1/Documents/com.apple.springboard.settings/RootSettings.previous.plist>
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Error>: libMobileGestalt MobileGestalt.c:200: string SBNonDefaultSystemAppTag is not a valid gestalt question
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Error>: libMobileGestalt MobileGestalt.c:200: string hidden is not a valid gestalt question
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Error>: libMobileGestalt MobileGestalt.c:835: still-camera is static and will never generate a notification
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Error>: libMobileGestalt MobileGestalt.c:835: stand-alone-contacts is static and will never generate a notification
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: BTM: attaching to BTServer
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local installd[4122] <Notice>: 0xb0115000 MobileInstallationInstall_Server: Installing app com.ionicframework.starter
Apr 26 22:31:04 JayPrimes-MacBook-Pro.local installd[4122] <Notice>: 0xb0115000 install_application: Performing developer delta patch
Apr 26 22:31:05 JayPrimes-MacBook-Pro.local installd[4122] <Notice>: 0xb0115000 MobileInstallationInstall_Server: Staging: 0.41s; Waiting: 0.00s; Installation: 0.21s; LS Sync: 0.00s; Overall: 0.63s
Apr 26 22:31:05 JayPrimes-MacBook-Pro.local /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/libexec/lsd[4132] <Error>: Need to synchronize with MobileInstallation
Apr 26 22:31:05 JayPrimes-MacBook-Pro.local /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/libexec/lsd[4132] <Notice>: LaunchServices: updating cache GUID and sequence number
Apr 26 22:31:05 JayPrimes-MacBook-Pro.local lsd[4132] <Warning>: LaunchServices:(called by PID 4115) Identifiers file does not exist.
Apr 26 22:31:05 JayPrimes-MacBook-Pro.local lsd[4132] <Warning>: LaunchServices:(called by PID 4115) Creating new identifiers file.
Apr 26 22:31:05 JayPrimes-MacBook-Pro.local lsd[4132] <Warning>: LaunchServices: Updating identifier store
Apr 26 22:31:05 JayPrimes-MacBook-Pro.local mediaremoted[4139] <Error>: Property list invalid for format: 200 (property lists cannot contain NULL)
Apr 26 22:31:05 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Error>: Normal message received by listener connection. Ignoring.
Apr 26 22:31:05 --- last message repeated 2 times ---
Apr 26 22:31:05 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: could not find icon for representation -> com.sproutatwork.mobile
Apr 26 22:31:05 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: Using your own bundle identifier as an NSUserDefaults suite name does not make sense and will not work. Break on _NSUserDefaults_Log_Nonsensical_Suites to find this
Apr 26 22:31:05 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: Launch Services: Registering unknown app identifier com.apple.mobilemail failed
Apr 26 22:31:05 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: Launch Services: Unable to find app identifier com.apple.mobilemail
Apr 26 22:31:05 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: No conforming principal class found in NSBundle </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/BulletinBoardPlugins/SMSBBPlugin.bundle> (loaded)
Apr 26 22:31:05 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: Application windows are expected to have a root view controller at the end of application launch
Apr 26 22:31:05 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Error>: libMobileGestalt MobileGestalt.c:835: still-camera is static and will never generate a notification
Apr 26 22:31:05 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Error>: libMobileGestalt MobileGestalt.c:835: stand-alone-contacts is static and will never generate a notification
Apr 26 22:31:05 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: could not find icon for representation -> com.sproutatwork.mobile
Apr 26 22:31:06 JayPrimes-MacBook-Pro.local locationd[4119] <Error>: Client '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/CoreServices/SpringBoard.app/SpringBoard' is attempting to masquerade as uninstalled app with effective bundle identifier 'com.apple.reminders'
Apr 26 22:31:06 JayPrimes-MacBook-Pro.local SimulatorBridge[4115] <Warning>: Application launched after 0.00 seconds.
Apr 26 22:31:06 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: SMS Plugin initialized.
Apr 26 22:31:06 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: Sharing Plugin initialized.
Apr 26 22:31:06 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Error>: Normal message received by listener connection. Ignoring.

I hit the WSoD when I updated the ios platform and I think (not sure) it also updated some of the plugins. I was completely unable to debug the problem as I was getting no console errors whatsoever while everything works fine without live reload.
As it turns out the problem was with the whitelisting. The app was simply not allowed to access the livereload server. I added the following lines to config.xml and live reload started working again:
<allow-navigation href="*"/>
Of course this is very permissive and not recommended for actual production, but at least it sovles the problem. Technically this isn't necessary if not using live reload, so can simply be omitted for production. However if security is a concern, an alternative can be:
<allow-navigation href="*://localhost/*"/>
But when doing this, it is necessary to add the --address option when running emulate:
$ ionic emulate -lcs --address localhost ios

I was getting a white screen after my splash screen and before the first page of my cordova 3.6 app. The issue then went away when i installed the org.apache.cordova.splashscreen plugin and made autohidesplashscreen = false in config.xml inside the platform iOS folder.
Then you can hide the splash screen in device ready using:
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady(){
console.log("ON DEVICE READY!!!");
navigator.splashscreen.hide();
}
One more thing to add is i run the project using only the .xcodeproj only and not using the terminal and I work with the index.html inside platform/iOS.

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!

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,

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

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?

iTunes iOS download error / won't install

Noone including myself can download any apps from my iTunes account except the first app I released.
They all go through automated testing + apple verification, however when I (and other) try to download through my phone I get error message (translated from Danish)
can not download
can not install
Here is he log:
Jul 1 09:29:38 MyIPhone4IOS7 AppStore[148] <Warning>: [SSMetricsEventController] Direct-access controller is calling through XPC to flush Unreported Events
Jul 1 09:30:35 MyIPhone4IOS7 backboardd[28] <Notice>: Posting 'com.apple.iokit.hid.displayStatus' notifyState=0
Jul 1 09:30:35 MyIPhone4IOS7 kernel[0] <Debug>: ALS: AppleARMBacklight::setBacklightEnableGated 0 (set level to 0x1c8)
Jul 1 09:30:35 MyIPhone4IOS7 kernel[0] <Debug>: ALS: AppleARMBacklight::handleMessageGated - framebufferState -> 0
Jul 1 09:30:35 MyIPhone4IOS7 kernel[0] <Debug>: AppleMultitouchN1SPI: updating power statistics
Jul 1 09:30:35 MyIPhone4IOS7 kernel[0] <Debug>: AppleKeyStore::device_state_transition: Device Lock call: lockstate=0, locknow=0
Jul 1 09:30:35 MyIPhone4IOS7 SpringBoard[34] <Warning>: [MPUSystemMediaControls] Disabling lock screen media controls updates for screen turning off.
Jul 1 09:30:35 MyIPhone4IOS7 SpringBoard[34] <Warning>: [MPUNowPlayingController] Not registered for now playing notifications. Ignoring call to -unregisterForNotifications.
Jul 1 09:30:35 MyIPhone4IOS7 SpringBoard[34] <Error>: MKBDeviceLockAssertion: MKBDeviceLockAssertion (asserttype:4)
Jul 1 09:30:35 MyIPhone4IOS7 SpringBoard[34] <Notice>: (Note ) MC: Locking device.
Jul 1 09:30:35 MyIPhone4IOS7 backboardd[28] <Notice>: MultitouchHID: detection mode: 0->255
Jul 1 09:30:36 MyIPhone4IOS7 kernel[0] <Debug>: AppleKeyStore::device_state_transition: Device Lock call: lockstate=5, locknow=0
Jul 1 09:30:36 MyIPhone4IOS7 SpringBoard[34] <Error>: __MKBAssertionFinalize: __MKBAssertionFinalize(0x15bef5c0)
Jul 1 09:30:36 MyIPhone4IOS7 SpringBoard[34] <Notice>: (Note ) MC: Locking device.
Jul 1 09:30:36 MyIPhone4IOS7 SpringBoard[34] <Warning>: [MPUSystemMediaControls] Updating supported commands for now playing application.
Jul 1 09:30:36 MyIPhone4IOS7 AppStore[148] <Warning>: [SSMetricsEventController] Direct-access controller is calling through XPC to flush Unreported Events
Jul 1 09:30:37 MyIPhone4IOS7 AppStore[148] <Warning>: [SSMetricsEventController] Direct-access controller is calling through XPC to flush Unreported Events
Jul 1 09:30:37 MyIPhone4IOS7 AppStore[148] <Warning>: [SSMetricsEventController] Direct-access controller is calling through XPC to flush Unreported Events
Jul 1 09:31:04 MyIPhone4IOS7 SpringBoard[34] <Warning>: Killing com.example.newapp for app installation
Jul 1 09:31:04 MyIPhone4IOS7 itunesstored[100] <Warning>: LaunchServices: installing app for existing placeholder LSApplicationProxy: com.example.newapp (Placeholder)
Jul 1 09:31:04 MyIPhone4IOS7 itunesstored[100] <Warning>: LaunchServices: Creating installProgressForApplication:LSApplicationProxy: com.example.newapp (Placeholder) withPhase:1
Jul 1 09:31:04 MyIPhone4IOS7 lsd[77] <Warning>: LaunchServices: Updating installPhase for parent <NSProgress: phase=Loading; state=Active; fractionCompleted=0.590000> to 1
Jul 1 09:31:04 MyIPhone4IOS7 installd[63] <Notice>: 0x303000 handle_install_for_ls: Install of "/var/mobile/Media/Downloads/6792080868625274691/-5383248391545872630" requested by itunesstored
Jul 1 09:31:04 MyIPhone4IOS7 installd[63] <Error>: 0x303000 peruse_package: App info dict loaded from "/var/tmp/install_staging.Nio6Yc/foo_extracted/Payload/new.app" did not have bundle identifier
Jul 1 09:31:04 MyIPhone4IOS7 installd[63] <Error>: 0x303000 stage_package: Could not peruse package at /var/tmp/install_staging.Nio6Yc/foo_extracted
Jul 1 09:31:04 MyIPhone4IOS7 itunesstored[100] <Error>: 0x1ab1000 MobileInstallationInstallForLaunchServices: failed with -1
Jul 1 09:31:04 MyIPhone4IOS7 itunesstored[100] <Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil
Jul 1 09:31:04 MyIPhone4IOS7 lsd[77] <Warning>: LaunchServices: installation failed for app com.example.newapp
Jul 1 09:31:04 MyIPhone4IOS7 installd[63] <Error>: 0x303000 MobileInstallationInstall_Server: Could not stage the package
Jul 1 09:31:04 MyIPhone4IOS7 itunesstored[100] <Warning>: LaunchServices: installPhaseFinishedForProgress: com.example.newapp.Installing - <NSProgress: phase=Installing; state=Failed; fractionCompleted=0.000000> called, removing progress from cache
Jul 1 09:31:04 MyIPhone4IOS7 lsd[77] <Warning>: LaunchServices: installation failed for app com.example.newapp
Jul 1 09:31:04 MyIPhone4IOS7 itunesstored[100] <Warning>: LaunchServices: installPhaseFinishedForProgress: com.example.newapp.Loading - <NSProgress: phase=Loading; state=Failed; fractionCompleted=1.000000> called, removing progress from cache
Jul 1 09:31:04 MyIPhone4IOS7 installd[63] <Error>: 0x303000 handle_install_for_ls: API failed
Jul 1 09:31:06 MyIPhone4IOS7 SpringBoard[34] <Error>: MKBDeviceLockAssertion: MKBDeviceLockAssertion (asserttype:4)
Jul 1 09:31:06 MyIPhone4IOS7 kernel[0] <Debug>: AppleKeyStore::device_state_transition: Device Lock call: lockstate=5, locknow=0
Jul 1 09:31:06 MyIPhone4IOS7 SpringBoard[34] <Error>: __MKBAssertionFinalize: __MKBAssertionFinalize(0x15bc24b0)
Jul 1 09:31:06 MyIPhone4IOS7 SpringBoard[34] <Notice>: (Note ) MC: Locking device.
Jul 1 09:31:09 MyIPhone4IOS7 backboardd[28] <Notice>: Posting 'com.apple.iokit.hid.displayStatus' notifyState=1
Jul 1 09:31:09 MyIPhone4IOS7 SpringBoard[34] <Warning>: [MPUSystemMediaControls] Enabling lock screen media controls updates for screen turning on.
Jul 1 09:31:09 MyIPhone4IOS7 SpringBoard[34] <Error>: MKBDeviceLockAssertion: MKBDeviceLockAssertion (asserttype:4)
Jul 1 09:31:10 MyIPhone4IOS7 kernel[0] <Debug>: set_crc_notification_state 0
Jul 1 09:31:10 MyIPhone4IOS7 backboardd[28] <Notice>: MultitouchHID: detection mode: 255->5 (deferring until bootloaded)
Jul 1 09:31:10 MyIPhone4IOS7 SpringBoard[34] <Error>: __MKBAssertionFinalize: __MKBAssertionFinalize(0x15bb5e30)
Jul 1 09:31:10 MyIPhone4IOS7 SpringBoard[34] <Notice>: (Note ) MC: Locking device.
Jul 1 09:31:10 MyIPhone4IOS7 SpringBoard[34] <Warning>: [MPUSystemMediaControls] Updating supported commands for now playing application.
Jul 1 09:31:10 MyIPhone4IOS7 backboardd[28] <Notice>: MultitouchHID: device bootloaded
Jul 1 09:31:10 MyIPhone4IOS7 backboardd[28] <Notice>: MultitouchHID: detection mode: 5->5
Jul 1 09:31:10 MyIPhone4IOS7 SpringBoard[34] <Error>: MKBDeviceLockAssertion: MKBDeviceLockAssertion (asserttype:4)
Jul 1 09:31:10 MyIPhone4IOS7 SpringBoard[34] <Error>: __MKBAssertionFinalize: __MKBAssertionFinalize(0x159b1e80)
Jul 1 09:31:10 MyIPhone4IOS7 SpringBoard[34] <Notice>: (Note ) MC: Locking device.
Jul 1 09:31:10 MyIPhone4IOS7 kernel[0] <Debug>: AppleKeyStore::device_state_transition: Device Lock call: lockstate=5, locknow=0
Jul 1 09:31:10 MyIPhone4IOS7 kernel[0] <Debug>: AppleKeyStore::device_state_transition: Device Lock call: lockstate=5, locknow=0
Jul 1 09:31:10 MyIPhone4IOS7 kernel[0] <Debug>: ALS: AppleARMBacklight::handleMessageGated - framebufferState -> 1
Jul 1 09:31:10 MyIPhone4IOS7 kernel[0] <Debug>: ALS: AppleARMBacklight::setBacklightEnableGated 1 (set level to 0x656)
Jul 1 09:31:11 MyIPhone4IOS7 SpringBoard[34] <Error>: MKBDeviceLockAssertion: MKBDeviceLockAssertion (asserttype:4)
Jul 1 09:31:11 MyIPhone4IOS7 kernel[0] <Debug>: AppleKeyStore::device_state_transition: Device UnLock call, lockstate=5, transientCnt=1
Jul 1 09:31:11 MyIPhone4IOS7 kernel[0] <Debug>: AppleKeyStore::device_state_transition: Device UnLocked, lockstate=0
Jul 1 09:31:11 MyIPhone4IOS7 backboardd[28] <Notice>: MultitouchHID: detection mode: 5->0
Jul 1 09:31:11 MyIPhone4IOS7 SpringBoard[34] <Error>: __MKBAssertionFinalize: __MKBAssertionFinalize(0x15921630)
Jul 1 09:31:13 MyIPhone4IOS7 AppStore[148] <Warning>: Launch Services: Registering unknown app identifier com.example.oldapp failed
Jul 1 09:31:13 MyIPhone4IOS7 AppStore[148] <Warning>: Launch Services: Unable to find app identifier com.example.oldapp
Jul 1 09:31:14 MyIPhone4IOS7 AppStore[148] <Warning>: Launch Services: Registering unknown app identifier com.example.oldapp failed
Jul 1 09:31:14 MyIPhone4IOS7 AppStore[148] <Warning>: Launch Services: Unable to find app identifier com.example.oldapp
Jul 1 09:31:37 MyIPhone4IOS7 AppStore[148] <Warning>: [SSMetricsEventController] Direct-access controller is calling through XPC to flush Unreported Events
Jul 1 09:32:19 MyIPhone4IOS7 kernel[0] <Debug>: ALS: AppleARMBacklight::setBacklightEnableGated 0 (set level to 0x1c8)
Jul 1 09:32:19 MyIPhone4IOS7 kernel[0] <Debug>: AppleMultitouchN1SPI: updating power statistics
Jul 1 09:32:19 MyIPhone4IOS7 kernel[0] <Debug>: AppleKeyStore::device_state_transition: Device Lock call: lockstate=0, locknow=0
Jul 1 09:32:19 MyIPhone4IOS7 backboardd[28] <Notice>: Posting 'com.apple.iokit.hid.displayStatus' notifyState=0
Jul 1 09:32:19 MyIPhone4IOS7 SpringBoard[34] <Warning>: [MPUSystemMediaControls] Disabling lock screen media controls updates for screen turning off.
Jul 1 09:32:19 MyIPhone4IOS7 SpringBoard[34] <Warning>: [MPUNowPlayingController] Not registered for now playing notifications. Ignoring call to -unregisterForNotifications.
Jul 1 09:32:19 MyIPhone4IOS7 SpringBoard[34] <Error>: MKBDeviceLockAssertion: MKBDeviceLockAssertion (asserttype:4)
Jul 1 09:32:19 MyIPhone4IOS7 SpringBoard[34] <Notice>: (Note ) MC: Locking device.
Jul 1 09:32:19 MyIPhone4IOS7 backboardd[28] <Notice>: MultitouchHID: detection mode: 0->255
Jul 1 09:32:19 MyIPhone4IOS7 kernel[0] <Debug>: ALS: AppleARMBacklight::handleMessageGated - framebufferState -> 0
Jul 1 09:32:19 MyIPhone4IOS7 SpringBoard[34] <Error>: __MKBAssertionFinalize: __MKBAssertionFinalize(0x15b775b0)
Jul 1 09:32:19 MyIPhone4IOS7 SpringBoard[34] <Notice>: (Note ) MC: Locking device.
Jul 1 09:32:19 MyIPhone4IOS7 SpringBoard[34] <Warning>: [MPUSystemMediaControls] Updating supported commands for now playing application.
Jul 1 09:32:19 MyIPhone4IOS7 kernel[0] <Debug>: AppleKeyStore::device_state_transition: Device Lock call: lockstate=5, locknow=0
Jul 1 09:32:20 MyIPhone4IOS7 AppStore[148] <Warning>: [SSMetricsEventController] Direct-access controller is calling through XPC to flush Unreported Events
Jul 1 09:32:20 MyIPhone4IOS7 AppStore[148] <Warning>: [SSMetricsEventController] Direct-access controller is calling through XPC to flush Unreported Events
Jul 1 09:32:20 MyIPhone4IOS7 AppStore[148] <Warning>: [SSMetricsEventController] Direct-access controller is calling through XPC to flush Unreported Events
Jul 1 09:32:37 MyIPhone4IOS7 backboardd[28] <Notice>: Posting 'com.apple.iokit.hid.displayStatus' notifyState=1
Jul 1 09:32:37 MyIPhone4IOS7 SpringBoard[34] <Warning>: [MPUSystemMediaControls] Enabling lock screen media controls updates for screen turning on.
Jul 1 09:32:37 MyIPhone4IOS7 SpringBoard[34] <Error>: MKBDeviceLockAssertion: MKBDeviceLockAssertion (asserttype:4)
Jul 1 09:32:37 MyIPhone4IOS7 kernel[0] <Debug>: set_crc_notification_state 0
Jul 1 09:32:37 MyIPhone4IOS7 backboardd[28] <Notice>: MultitouchHID: detection mode: 255->5 (deferring until bootloaded)
Jul 1 09:32:37 MyIPhone4IOS7 SpringBoard[34] <Error>: __MKBAssertionFinalize: __MKBAssertionFinalize(0x15bedd90)
Jul 1 09:32:37 MyIPhone4IOS7 SpringBoard[34] <Notice>: (Note ) MC: Locking device.
Jul 1 09:32:37 MyIPhone4IOS7 SpringBoard[34] <Warning>: [MPUSystemMediaControls] Updating supported commands for now playing application.
Jul 1 09:32:37 MyIPhone4IOS7 backboardd[28] <Notice>: MultitouchHID: device bootloaded
Jul 1 09:32:37 MyIPhone4IOS7 backboardd[28] <Notice>: MultitouchHID: detection mode: 5->5
Jul 1 09:32:37 MyIPhone4IOS7 SpringBoard[34] <Error>: MKBDeviceLockAssertion: MKBDeviceLockAssertion (asserttype:4)
Jul 1 09:32:37 MyIPhone4IOS7 SpringBoard[34] <Error>: __MKBAssertionFinalize: __MKBAssertionFinalize(0x15a52bc0)
Jul 1 09:32:37 MyIPhone4IOS7 SpringBoard[34] <Notice>: (Note ) MC: Locking device.
Jul 1 09:32:38 MyIPhone4IOS7 kernel[0] <Debug>: AppleKeyStore::device_state_transition: Device Lock call: lockstate=5, locknow=0
Jul 1 09:32:38 MyIPhone4IOS7 kernel[0] <Debug>: AppleKeyStore::device_state_transition: Device Lock call: lockstate=5, locknow=0
Jul 1 09:32:38 MyIPhone4IOS7 kernel[0] <Debug>: ALS: AppleARMBacklight::handleMessageGated - framebufferState -> 1
Jul 1 09:32:38 MyIPhone4IOS7 kernel[0] <Debug>: ALS: AppleARMBacklight::setBacklightEnableGated 1 (set level to 0x656)
Jul 1 09:32:39 MyIPhone4IOS7 SpringBoard[34] <Error>: MKBDeviceLockAssertion: MKBDeviceLockAssertion (asserttype:4)
Jul 1 09:32:39 MyIPhone4IOS7 kernel[0] <Debug>: AppleKeyStore::device_state_transition: Device UnLock call, lockstate=5, transientCnt=1
Jul 1 09:32:39 MyIPhone4IOS7 kernel[0] <Debug>: AppleKeyStore::device_state_transition: Device UnLocked, lockstate=0
Jul 1 09:32:39 MyIPhone4IOS7 backboardd[28] <Notice>: MultitouchHID: detection mode: 5->0
Jul 1 09:32:39 MyIPhone4IOS7 SpringBoard[34] <Error>: __MKBAssertionFinalize: __MKBAssertionFinalize(0x15ba69f0)
Jul 1 09:32:40 MyIPhone4IOS7 AppStore[148] <Warning>: Launch Services: Registering unknown app identifier com.example.oldapp failed
Jul 1 09:32:40 MyIPhone4IOS7 AppStore[148] <Warning>: Launch Services: Unable to find app identifier com.example.oldapp
Jul 1 09:32:43 MyIPhone4IOS7 AppStore[148] <Warning>: Launch Services: Registering unknown app identifier com.example.oldapp failed
Jul 1 09:32:43 MyIPhone4IOS7 AppStore[148] <Warning>: Launch Services: Unable to find app identifier com.example.oldapp
Jul 1 09:32:43 MyIPhone4IOS7 AppStore[148] <Warning>: [SSMetricsEventController] Direct-access controller is calling through XPC to flush Unreported Events
Jul 1 09:32:44 MyIPhone4IOS7 AppStore[148] <Warning>: [SSMetricsEventController] Direct-access controller is calling through XPC to flush Unreported Events
Jul 1 09:32:44 MyIPhone4IOS7 AppStore[148] <Warning>: [SSMetricsEventController] Direct-access controller is calling through XPC to flush Unreported Events
Jul 1 09:32:47 MyIPhone4IOS7 lsd[77] <Warning>: LaunchServices: installation ended for app com.example.newapp
Jul 1 09:32:47 MyIPhone4IOS7 itunesstored[100] <Warning>: LaunchServices: Creating installProgressForApplication:LSApplicationProxy: com.example.newapp (Placeholder) withPhase:0
Jul 1 09:32:48 MyIPhone4IOS7 itunesstored[100] <Warning>: LaunchServices: Uninstalling placeholder for app LSApplicationProxy: com.example.newapp (Placeholder)
Jul 1 09:32:48 MyIPhone4IOS7 installd[63] <Notice>: 0x303000 handle_uninstall_for_ls: Uninstall requested by itunesstored
Jul 1 09:32:48 MyIPhone4IOS7 installd[63] <Notice>: 0x303000 MobileInstallationUninstall_Server: Uninstalling com.example.newapp
Jul 1 09:32:48 MyIPhone4IOS7 SpringBoard[34] <Warning>: Killing com.example.newapp for termination assertion
Jul 1 09:32:50 MyIPhone4IOS7 backboardd[28] <Warning>: Launch Services: Registering unknown app identifier com.example.newapp failed
Jul 1 09:32:50 MyIPhone4IOS7 backboardd[28] <Warning>: Launch Services: Unable to find app identifier com.example.newapp
Jul 1 09:32:50 MyIPhone4IOS7 lsd[77] <Warning>: LaunchServices: Updating identifier store
Jul 1 09:32:50 MyIPhone4IOS7 itunesstored[100] <Warning>: LaunchServices: clearing created progress for com.example.newapp
Jul 1 09:33:52 MyIPhone4IOS7 backboardd[28] <Notice>: Posting 'com.apple.iokit.hid.displayStatus' notifyState=0
Jul 1 09:33:52 MyIPhone4IOS7 kernel[0] <Debug>: ALS: AppleARMBacklight::setBacklightEnableGated 0 (set level to 0x1c8)
Jul 1 09:33:52 MyIPhone4IOS7 kernel[0] <Debug>: ALS: AppleARMBacklight::handleMessageGated - framebufferState -> 0
Jul 1 09:33:52 MyIPhone4IOS7 kernel[0] <Debug>: AppleMultitouchN1SPI: updating power statistics
Jul 1 09:33:52 MyIPhone4IOS7 kernel[0] <Debug>: AppleKeyStore::device_state_transition: Device Lock call: lockstate=0, locknow=0
Jul 1 09:33:52 MyIPhone4IOS7 SpringBoard[34] <Warning>: [MPUSystemMediaControls] Disabling lock screen media controls updates for screen turning off.
Jul 1 09:33:52 MyIPhone4IOS7 SpringBoard[34] <Warning>: [MPUNowPlayingController] Not registered for now playing notifications. Ignoring call to -unregisterForNotifications.
Jul 1 09:33:52 MyIPhone4IOS7 SpringBoard[34] <Error>: MKBDeviceLockAssertion: MKBDeviceLockAssertion (asserttype:4)
Jul 1 09:33:52 MyIPhone4IOS7 SpringBoard[34] <Notice>: (Note ) MC: Locking device.
Jul 1 09:33:52 MyIPhone4IOS7 backboardd[28] <Notice>: MultitouchHID: detection mode: 0->255
Jul 1 09:33:53 MyIPhone4IOS7 SpringBoard[34] <Error>: __MKBAssertionFinalize: __MKBAssertionFinalize(0x15bf5290)
Jul 1 09:33:53 MyIPhone4IOS7 SpringBoard[34] <Notice>: (Note ) MC: Locking device.
Jul 1 09:33:53 MyIPhone4IOS7 SpringBoard[34] <Warning>: [MPUSystemMediaControls] Updating supported commands for now playing application.
Jul 1 09:33:53 MyIPhone4IOS7 kernel[0] <Debug>: AppleKeyStore::device_state_transition: Device Lock call: lockstate=5, locknow=0
It does seem there somehow is a reference to an old app com.example.oldapp one place which is another app of mine already in app store. com.example.newapp is the one I am trying to submit. Interestingly com.example.oldapp is the first app I ever released.
Here is a list of things I have tried:
Recreated all certificates and provision files from scratch. (i.e. removed everything, I renewed account so it was necessary anyway)
Started new projects from scratch.
Tried using a hex editors to search through the files in the .ipa (submitted in application uploader) for e.g. wrong app IDs, text strings or anything that could hint something wrong was inlcuded in the .ipa file.
Compared all files line-by-line (including provisioning profiles, plist ec.) from my working (first) app and all the others (non-downloadable) apps.
Current staus:
I have been in contact wih Apple Developer Technical Support (DTS) who concluded it was not a code error and that I should contact app store support
Personally I have begun to suspect that there is an error when Apple signs the app. Maybe my iOS developer account somehow has an error causing this. I have checked what I could, but I am thinking it could be a "hangover" issue caused by configuration mistakes when I started. maybe something that causes something from the original first app to act as fallback or similar when Apple sign. This is pure guesswork though and rather desperate.
If anyone has any ideas of what else to try, please let me know!
Note All my apps have unique app IDs and are otherwise configured the same way, so if this was a normal problem, the issue should affect all my apps instead of everyone but my first.
If you are using iOS 8 for developers (in that case), and your app has been approved by apple, this might be the problem. Try downloading it on an iOS 7 device, see if you get the same error.
If you are still using iOS 7, Then it might be an app store problem, not your. In this case contact apple through the developers portal.
Regarding the bundle identifier, in Xcode, click on your app's target, go to the info Info tab, and check that the bundle identifier is there. It sounds you might have deleted it by mistake. If its not there or if the error persists, copy the bundle identifier that appears on itunes connect for your app and paste it in the bundle identifier key in the info tab.
This are the solutions I was able to make from the description of your problem, if its different please tell me so I can help you!

Resources