Adding several pods increases iOS app launch time by 10+ seconds - ios

I'm doing an iOS app project in Swift 1.2, using Cocoapods 0.37.2, Xcode 6.3.2. After adding around 8 pods in my project, app launch time greatly increases (around 10 seconds more) on device (iPhone 5). (Note: launch time means the time when you tap the app icon to open the app)
It is so slow iOS terminates it because it doesn't launch in time. The top of the crash log is as follows...
Application Specific Information: com.tryslowappswift failed to launch in time
Elapsed total CPU time (seconds): 27.720 (user 27.720, system 0.000), 68% CPU
Elapsed application CPU time (seconds): 0.074, 0% CPU
Thread 0:
0 dyld 0x1ff0f4c8 ImageLoaderMachOCompressed::rebase(ImageLoader::LinkContext const&) + 456
1 dyld 0x1ff087be ImageLoader::recursiveRebase(ImageLoader::LinkContext const&) + 174
2 dyld 0x1ff07dca ImageLoader::link(ImageLoader::LinkContext const&, bool, bool, bool, ImageLoader::RPathChain const&) + 186
3 dyld 0x1ff012fc dyld::link(ImageLoader*, bool, bool, ImageLoader::RPathChain const&) + 204
4 dyld 0x1ff022d6 dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) + 2362
5 dyld 0x1fefe222 dyldbootstrap::start(macho_header const*, int, char const**, long, macho_header const*, unsigned long*) + 394
6 dyld 0x1fefe03c _dyld_start + 60
No thread state (register information) available
...
You can test this by:
Note: I have created an example Swift project with all the pods setup in my github repo. You can just clone and run it on your device and see the delay for yourself.
Create a new blank project, nothing in the application:didFinishLaunchingWithOptions: method
Run the app on device and see the app launch very fast.
Stop. Now try adding a Podfile with about 8 pods (no matter big or small the pods are), do pod install.
Just for clarity, this is the Podfile I used...
Podfile
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks! # required for Swift pods
pod 'Alamofire', '~> 1.2.1'
pod 'NPReachability', '~> 0.2.0'
pod 'ActionSheetPicker-3.0', '~> 1.6.1'
pod 'SDWebImage', '~> 3.7.2'
pod 'KVNProgress', '~> 2.2.1'
pod 'KeychainAccess'
pod 'JazzHands', '~> 0.2.1'
pod 'DGActivityIndicatorView'
Then run on device again. This time you will notice the 10+ seconds delay, even before application:didFinishLaunchingWithOptions: method is called. No import, no bridging header files, just install the pod into the project and it slows down the launch (-- rage guy meme !!! ---)
I suspect this has to do with Swift 1.2 so I tried on a Objective-C project, but I still experience the same delay. It seems to happen right after a normal pod installation, I have no idea how I can optimize or fix this. :(
UPDATE 1 (27 July 2015):
As pointed by Bryan Musial, I tried adding flags in my schema settings to log load time for each library. I run this on my iPhone 5. Here is the result in Xcode's 'Devices' Window:
Jul 27 13:56:02 Hlung SpringBoard[43] <Warning>: Installed apps did change.
Added: {(
)}
Removed: {(
)}
Modified: {(
"th.in.hlung.TrySlowAppSwift"
)}
Jul 27 13:56:03 Hlung com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-320.2.89
[4964] <Warning>: debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-320.2.89
for armv7.
Jul 27 13:56:03 Hlung com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-320.2.89
[4964] <Warning>: Connecting to com.apple.debugserver service...
Jul 27 13:56:03 Hlung com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-320.2.89
[4964] <Warning>: Got a connection, waiting for process information for launching or attaching.
Jul 27 13:56:03 Hlung com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-320.2.89
[4964] <Warning>: About to launch process for bundle ID: th.in.hlung.TrySlowAppSwift
Jul 27 13:56:03 Hlung com.apple.xpc.launchd[1] (UIKitApplication:th.in.hlung.TrySlowAppSwift[0x578b]) <Error>: The DisableASLR key is no longer respected. Please remove it.
Jul 27 13:56:03 Hlung amfid[4918] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jul 27 13:56:04 Hlung kernel[0] <Notice>: xpcproxy[4965] Container: /private/var/mobile/Containers/Data/Application/6C097544-9C1E-4B73-ACF8-43701FDFC8C2 (sandbox)
Jul 27 13:56:04 Hlung com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-320.2.89
[4964] <Warning>: In completion handler, got pid for bundle id, pid: 4965.
Jul 27 13:56:04 Hlung com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-320.2.89
[4964] <Warning>: Got a connection, launched process /private/var/mobile/Containers/Bundle/Application/9F233F77-63BC-479E-827A-F08C964DE38C/TrySlowAppSwift.app (pid = 4965).
Jul 27 13:56:04 Hlung SpringBoard[43] <Warning>: LICreateIconForImage passed NULL CGImageRef image
Jul 27 13:56:04 Hlung amfid[4918] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jul 27 13:56:04 Hlung locationd[4692] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
Jul 27 13:56:05 Hlung amfid[4918] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jul 27 13:56:05 Hlung amfid[4918] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jul 27 13:56:06 Hlung amfid[4918] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jul 27 13:56:07 Hlung amfid[4918] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jul 27 13:56:08 Hlung amfid[4918] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jul 27 13:56:08 Hlung amfid[4918] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jul 27 13:56:09 Hlung amfid[4918] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jul 27 13:56:10 Hlung amfid[4918] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jul 27 13:56:10 Hlung amfid[4918] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jul 27 13:56:11 Hlung amfid[4918] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jul 27 13:56:12 Hlung amfid[4918] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jul 27 13:56:12 Hlung MobileMail[139] <Warning>: Attempting to badge the application icon but haven't received permission from the user to badge the application
Jul 27 13:56:12 Hlung MobileMail[139] <Warning>: Attempting to badge the application icon but haven't received permission from the user to badge the application
Jul 27 13:56:12 Hlung MobileMail[139] <Warning>: Attempting to badge the application icon but haven't received permission from the user to badge the application
Jul 27 13:56:12 Hlung MobileMail[139] <Warning>: Attempting to badge the application icon but haven't received permission from the user to badge the application
Jul 27 13:56:12 Hlung MobileMail[139] <Warning>: Attempting to badge the application icon but haven't received permission from the user to badge the application
Jul 27 13:56:12 Hlung MobileMail[139] <Warning>: Attempting to badge the application icon but haven't received permission from the user to badge the application
Jul 27 13:56:12 Hlung MobileMail[139] <Warning>: Attempting to badge the application icon but haven't received permission from the user to badge the application
Jul 27 13:56:12 Hlung amfid[4918] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jul 27 13:56:13 Hlung assistant_service[4931] <Warning>: the local store doesn't allow tasks and we have no default calendar :(
Jul 27 13:56:13 Hlung assistant_service[4931] <Warning>: Error getting NanoAppRegistry workspace info: Error Domain=NSCocoaErrorDomain Code=4099 "The operation couldn’t be completed. (Cocoa error 4099.)" (The connection to service named com.apple.nanoappregistry.workspace was invalidated.) UserInfo=0x17ebf490 {NSDebugDescription=The connection to service named com.apple.nanoappregistry.workspace was invalidated.}
Jul 27 13:56:13 Hlung amfid[4918] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jul 27 13:56:14 Hlung amfid[4918] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jul 27 13:56:14 Hlung amfid[4918] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jul 27 13:56:15 Hlung amfid[4918] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: dyld: loaded: /usr/lib/libcupolicy.dylib
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: dyld: loaded: /usr/lib/libTelephonyUtilDynamic.dylib
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: total time: 13.1 seconds (100.0%)
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: total images loaded: 149 (128 from dyld shared cache)
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: total segments mapped: 60, into 1700 pages with 112 pages pre-fetched
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: total images loading time: 12.8 seconds (97.9%)
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: total dtrace DOF registration time: 0.17 milliseconds (0.0%)
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: total rebase fixups: 32,622
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: total rebase fixups time: 34.74 milliseconds (0.2%)
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: total binding fixups: 121,320
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: total binding fixups time: 116.36 milliseconds (0.8%)
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: total weak binding fixups time: 5.10 milliseconds (0.0%)
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: total bindings lazily fixed up: 0 of 0
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: total initializer time: 118.97 milliseconds (0.9%)
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: libSystem.B.dylib
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: : 37.57 milliseconds (0.2%)
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: libBacktraceRecording.dylib
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: : 0.77 milliseconds (0.0%)
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: libc++.1.dylib
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: : 0.09 milliseconds (0.0%)
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: libobjc.A.dylib
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: : 0.10 milliseconds (0.0%)
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: CoreFoundation
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: : 0.88 milliseconds (0.0%)
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: vImage
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: : 0.02 milliseconds (0.0%)
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: libGLImage.dylib
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: : 0.12 milliseconds (0.0%)
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: libFosl_dynamic.dylib
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: : 0.04 milliseconds (0.0%)
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: CoreImage
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: : 0.02 milliseconds (0.0%)
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: libswiftCore.dylib
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: : 2.14 milliseconds (0.0%)
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: total symbol trie searches: 43149
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: total symbol table binary searches: 0
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: total images defining weak symbols: 18
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: total images using weak symbols: 44
The most important part is probably this:
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: total time: 13.1 seconds (100.0%)
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: total images loaded: 149 (128 from dyld shared cache)
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: total segments mapped: 60, into 1700 pages with 112 pages pre-fetched
Jul 27 13:56:17 Hlung TrySlowAppSwift[4965] <Notice>: total images loading time: 12.8 seconds (97.9%)
It takes a whole 12.8 seconds (97.9%) to load the images. But this empty project doesn't have any image file. I skimmed through the pods and I think they have no significant amount of image file as well. I'm still stuck here.
Comparing to Bryan's result, the same code but run on iPhone 6. The images loading time percentage is also high.
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: total time: 1.9 seconds (100.0%)
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: total images loaded: 148 (127 from dyld shared cache)
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: total segments mapped: 60, into 1756 pages with 164 pages pre-fetched
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: total images loading time: 1.5 seconds (81.6%)
In addition, there's another clue. During the splash screen, there are multiple log lines saying <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]. Googling it just reveal that it is some enterprise app problem, which doesn't help me much.
Overall, I'm still stuck. T_T

There are a host of reasons that you might be observing slow application start situations such as low memory or disk space conditions, jailbroken and/or modded device, failed software update in need of a clean install, or even hardware failure. While there isn't a lot to go on with the info you've provided, there are a few things you can take a look at to try and eliminate potential causes.
I've cloned your sample project and tested on devices from iPhone 5 through iPhone 6 Plus and while I have not been able to replicate slow behavior you've observed locally, I have been in situations where both external and internal factors have caused slow startup performance.
First things first, given that we have only a portion of your crashlog you should do some quick verification to make sure we are heading down the right investigative path (Ideally it would be helpful to see the full crashlog) -- As you may or may not know, iOS employs a watchdog process to ensure that iOS apps respond in a reasonable amount of time. When debugging watchdog restrictions are not enforced to allow Xcode the time it needs to establish a live debugging session. Launching as a standalone app, that is, outside of a debugger, Watchdog restrictions are in full effect. Take a look at your crashlog, and check that the Exception Code is the 0x8badf00d (Read: "Ate bad food") -- on 64-bit devices this code will be padded by leading zeros: 0x000000008badf00d
Via TN2151 > Exception Codes:
The exception code 0x8badf00d indicates that an application has been terminated by iOS because a watchdog timeout occurred. The application took too long to launch, terminate, or respond to system events. One common cause of this is doing synchronous networking on the main thread. Whatever operation is on Thread 0: needs to be moved to a background thread, or processed differently, so that it does not block the main thread.
As you've pointed out that application:didFinishLaunchingWithOptions: isn't hit until after waiting that 10+ seconds, it suggests that the delay is occurring while the app's bootstrapping is happening -- your crashlog excerpt generally seems to agree. TrySlowSwiftApp.app's Thread 0 contains only stack frames for the dynamic link editor dyld. You also want to make sure that your crashlog is indicating that Thread 0 is the frame triggering the crash (I can't recall encountering a watchdog crash where Thread 0 wasn't blamed, but I suppose it is possible!). If another thread is being blamed, then we would need to see more about the crashlog you have on-hand.
TN2239 speaks to a host of iOS debugging tools, and includes a section of Environment Variables for the Dynamic Linker - We want to add DYLD_PRINT_STATISTICS with a value of YES to the current run scheme:
We should also enable 'Log Library Loads' in the Scheme's Diagnostic's Editor:
Finally, Xcode's console does not include timestamp information in the In-Xcode Console. You can, however, use Xcode's 'Devices' screen to view the live console with timestamps:
The Environment Variable we added will give you statistical information about what dyld spent its time doing, while the the 'Log Library Loads' options will show you the specific libraries that are attempting to be loaded. Because you are viewing this information in the Device's console you are able to see timestamps associated with each log entry.
Within the dyld statistics output, look for operations that are taking unusually long on your device -- for reference, here's one load on my iPhone 6:
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: total time: 1.9 seconds (100.0%)
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: total images loaded: 148 (127 from dyld shared cache)
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: total segments mapped: 60, into 1756 pages with 164 pages pre-fetched
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: total images loading time: 1.5 seconds (81.6%)
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: total dtrace DOF registration time: 0.06 milliseconds (0.0%)
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: total rebase fixups: 32,521
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: total rebase fixups time: 24.03 milliseconds (1.2%)
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: total binding fixups: 120,894
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: total binding fixups time: 190.36 milliseconds (9.8%)
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: total weak binding fixups time: 1.76 milliseconds (0.0%)
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: total bindings lazily fixed up: 0 of 0
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: total initializer time: 137.82 milliseconds (7.1%)
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: libSystem.B.dylib
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: : 60.11 milliseconds (3.1%)
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: libBacktraceRecording.dylib
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: : 0.39 milliseconds (0.0%)
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: libc++.1.dylib
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: : 0.27 milliseconds (0.0%)
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: libobjc.A.dylib
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: : 0.03 milliseconds (0.0%)
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: CoreFoundation
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: : 3.40 milliseconds (0.1%)
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: vImage
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: : 0.31 milliseconds (0.0%)
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: libGLImage.dylib
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: : 0.08 milliseconds (0.0%)
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: libFosl_dynamic.dylib
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: : 0.01 milliseconds (0.0%)
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: CoreImage
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: : 0.57 milliseconds (0.0%)
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: libswiftCore.dylib
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: : 1.74 milliseconds (0.0%)
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: total symbol trie searches: 42394
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: total symbol table binary searches: 0
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: total images defining weak symbols: 17
Jul 22 16:44:02 iPhone-6 TrySlowAppSwift[939] <Notice>: total images using weak symbols: 44
Within the 'dyld: loaded:' lines, take a look at the timestamp accompanying each item that is loaded -- you are looking for places where it takes longer to load the resource than it does with surrounding resources.
Depending on what you find by using these diagnostic tools will help determine what the next diagnostic step should be -- This is left for you to interpret in light of additional information gathered with these steps.
As suggested by others, I'd start by double checking the behavior on a second identical model and OS device -- just to rule out something device specific. If you can replicate it there then you should direct more time to a software investigation, however if it doesn't replicate there, you should direct your time to diagnosing your affected device. A more drastic diagnostic step could involve wiping the device and performing a clean install of iOS. If you do this, I would be prepared to do it at least twice -- the first time not restoring from iCloud or iTunes backup and retesting the launch behavior, then reloading a second time to restore your content to the device.

After some research i found that issue actually not in cocoapods, but in embedded libraries (I was able to reproduce the same issue with carthage).
It's not reproducible on all devices (possibly only on 32bit). And this issue doesn't affect app store builds. And while it makes development slightly slower, it not so harmful.
https://forums.developer.apple.com/message/64556#64556
https://forums.developer.apple.com/message/82399#82399

There is a lot of discussion around this here: https://github.com/artsy/eigen/issues/586

Probably there is one Pod which increases launch time (in worst case more Pods). My advice is to remove one by one the Pods to is if your issue is fixed. Maybe it's easier to create another project to make this test.
If you have a framework or Pod which uses -all_load linker flag, it's a big chance that one to increase a lot the launch time.

Related

ios app goes background when launched in ios9.3 after killed. but works fine in ios 10

Jan 23 09:34:06 ipad4 SpringBoard[46] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Jan 23 09:34:06 ipad4 SpringBoard[46] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Jan 23 09:34:06 ipad4 kernel[0] <Notice>: xpcproxy[944] Container: /private/var/mobile/Containers/Data/Application/B079D4E8-6E3B-4742-975F-F2FE38F78C1E (sandbox)
Jan 23 09:34:06 ipad4 com.apple.xpc.launchd[1] <Error>: assertion failed: 13G36: launchd + 85529 [083E000D-4C31-3B98-A2C4-6FADB4D1940F]: 0x3
Jan 23 09:34:07 ipad4 DealerApp[944] <Warning>: -[AppDelegate application:didFinishLaunchingWithOptions:]:65 [Debug] Configured Web Service URL: \\\\\\\\\\
Jan 23 09:34:07 ipad4 DealerApp[944] <Warning>: Initializing Manager Class!!!!!
Jan 23 09:34:07 ipad4 DealerApp[944] <Warning>: -[AppDelegate applicationDidBecomeActive:]:147 [Debug] APP DELEGATE: applicationDidBecomeActive
Jan 23 09:34:26 ipad4 SpringBoard[46] <Warning>: Forcing crash report of <FBApplicationProcess: 0x196f7ad0; DealerApp; pid: 944> (reason: 1, description: App failed to scene-create after 19.77s (launch took 0.23s of total time limit 20.00s))
Jan 23 09:34:27 ipad4 syncdefaultsd[941] <Notice>: (Note ) marked "com.me.keyvalueservice" topic as "enabled" on <APSConnection: 0x1556ab60>
Jan 23 09:34:27 ipad4 ReportCrash[945] <Error>: assertion failed: 13G36: libsystem_trace.dylib + 15927 [E82A6F2D-873A-39AD-8014-EDEB52248157]: 0x0
Jan 23 09:34:27 ipad4 Unknown[945] <Error>:
Jan 23 09:34:27 ipad4 ReportCrash[945] <Warning>: os_activity_diagnostic_for_pid() failed!
Jan 23 09:34:27 ipad4 SpringBoard[46] <Warning>: Finished crash reporting.
Jan 23 09:34:27 ipad4 SpringBoard[46] <Warning>: BSXPCMessage received error for message: Connection interrupted
Jan 23 09:34:27 ipad4 SpringBoard[46] <Warning>: BSXPCMessage received error for message: Connection invalid
Jan 23 09:34:27 ipad4 SpringBoard[46] <Warning>: HW kbd: Failed to set (null) as keyboard focus
Jan 23 09:34:27 ipad4 com.apple.xpc.launchd[1] (UIKitApplication:—————[0x9b4][944]) <Notice>: Service exited due to signal: Killed: 9
Jan 23 09:34:27 ipad4 SpringBoard[46] <Warning>: Application 'UIKitApplication:————[0x9b4]' exited abnormally via signal.
Jan 23 09:34:27 ipad4 UserEventAgent[23] <Warning>: 4288342351487: id=———pid=944, state=0
Jan 23 09:34:27 ipad4 ReportCrash[945] <Warning>: Saved type '109(109_DealerApp)' report (1 of max 25) at /var/mobile/Library/Logs/CrashReporter/DealerApp-2017-01-23-093427.ips
Jan 23 09:34:07 ipad4 DealerApp[944] : Initializing Manager Class!!!!!
Jan 23 09:34:07 ipad4 DealerApp[944] : -[AppDelegate applicationDidBecomeActive:]:147 [Debug] APP DELEGATE: applicationDidBecomeActive
Jan 23 09:34:26 ipad4 SpringBoard[46] : Forcing crash report of (reason: 1, description: App failed to scene-create after 19.77s (launch took 0.23s of total time limit 20.00s))
The first two lines show you were you've been and the last line told you why it crashed: the launch took too long. You would need to provide more context, e.g. the app delegate code to get an answer for why this is happening.
PS: Please use the code feature here, otherwise it's pretty hard to read

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 (in-house) Swift application quits on launch on iOS9

We find that our Swift application signed by in house certificate cannot run on iOS9 while it works correctly on iOS8. We have trusted the developer on settings -> general -> profiles, but when we try to launch the app, it gets stuck on the launch screen and then quits.
We don't have any clue from the logs. It only tells that it failed to launch after 20.00s.
I suspect that is an issue related to the signing. Because when I sign the application with an AdHoc certificate, it has no problem in running on iOS9.
Doesn't anybody know what is going on ?
Seems to related to these issues
Ad-Hoc distributed application failed to launch in time
https://devforums.apple.com/thread/266111
**Device Logs**
Incident Identifier: B4564227-5CC9-447B-9A52-BEC5EB36EE44
CrashReporter Key: 9ec38d809cfa493300f95e440530ad11ac05e5d7
Hardware Model: iPad4,1
Process: xxxxxxx xxxxxxxx [2345]
Path: /var/mobile/Containers/Bundle/Application/02F4CDFC-83E8-4474-9314-4848354A8FC0/xxxxxxx xxxxxxx.app/xxxxxx xxxxxxx
Identifier: com.xxxxx.xxxxx.xxxxxxx
Version: 5097 (4.0)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2015-09-23 10:19:41.41 +0200
Launch Time: 2015-09-23 10:19:16.16 +0200
OS Version: iOS 9.0 (13A344)
Report Version: 105
Exception Type: 00000020
Exception Codes: 0x000000008badf00d
Exception Note: SIMULATED (this is NOT a crash)
Highlighted by Thread: 0
Application Specific Information:
com.xxxxxxx.enterprise.xxxxxxx failed to launch after 20.00s (launchIntent: foreground-interactive)
Elapsed total CPU time (seconds): 22.260 (user 22.260, system 0.000), 56% CPU
Elapsed application CPU time (seconds): 0.002, 0% CPU
Filtered syslog:
None found
Thread 0:
0 dyld 0x0000000120054490 __fcntl + 8
1 dyld 0x0000000120053e94 fcntl + 128
2 dyld 0x0000000120042cec ImageLoaderMachO::loadCodeSignature(linkedit_data_command const*, int, unsigned long long, ImageLoader::LinkContext const&) + 68
3 dyld 0x0000000120045dd0 ImageLoaderMachOCompressed::instantiateFromFile(char const*, int, unsigned char const*, unsigned long, unsigned long long, unsigned long long, stat const&, unsigned int, unsigned int, linkedit_data_command const*, encryption_info_command const*, ImageLoader::LinkContext const&) + 228
4 dyld 0x0000000120041ccc ImageLoaderMachO::instantiateFromFile(char const*, int, unsigned char const*, unsigned long long, unsigned long long, stat const&, ImageLoader::LinkContext const&) + 268
5 dyld 0x0000000120033800 dyld::loadPhase6(int, stat const&, char const*, dyld::LoadContext const&) + 396
6 dyld 0x0000000120037d6c dyld::loadPhase5stat(char const*, dyld::LoadContext const&, stat*, int*, bool*, std::__1::vector<char const*, std::__1::allocator<char const*> >*) + 172
7 dyld 0x0000000120037c38 dyld::loadPhase5(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) + 736
8 dyld 0x0000000120037928 dyld::loadPhase4(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) + 192
9 dyld 0x00000001200373e0 dyld::loadPhase3(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) + 696
10 dyld 0x0000000120036edc dyld::loadPhase1(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) + 160
11 dyld 0x0000000120033314 dyld::loadPhase0(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) + 236
12 dyld 0x0000000120032fdc dyld::load(char const*, dyld::LoadContext const&) + 160
13 dyld 0x0000000120037ecc dyld::libraryLocator(char const*, bool, char const*, ImageLoader::RPathChain const*) + 52
14 dyld 0x000000012003fd34 ImageLoader::recursiveLoadLibraries(ImageLoader::LinkContext const&, bool, ImageLoader::RPathChain const&, char const*) + 332
15 dyld 0x000000012003f1d8 ImageLoader::link(ImageLoader::LinkContext const&, bool, bool, bool, ImageLoader::RPathChain const&) + 124
16 dyld 0x0000000120034c44 dyld::link(ImageLoader*, bool, bool, ImageLoader::RPathChain const&) + 176
17 dyld 0x0000000120035b64 dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) + 2408
18 dyld 0x0000000120031044 _dyld_start + 68
No thread state (register information) available
Binary Images:
0x1000d8000 - 0x100543fff xxxxxxxx xxxxxxxxx arm64 <411a29d1e9843b17802cda346d9d7d5f> /var/mobile/Containers/Bundle/Application/02F4CDFC-83E8-4474-9314-4848354A8FC0/xxxxxx xxxxxxx.app/xxxxxxxx xxxxxxxx
0x100750000 - 0x100963fff libswiftCore.dylib arm64 <1c8fc0a4195f3207ac97389aafa69c65> /var/mobile/Containers/Bundle/Application/02F4CDFC-83E8-4474-9314-4848354A8FC0/xxxxx xxxxxx.app/Frameworks/libswiftCore.dylib
0x1014d0000 - 0x1014d7fff libswiftCoreData.dylib arm64 <b751a5bac05c3293aa1c6b01d78d6bf7> /var/mobile/Containers/Bundle/Application/02F4CDFC-83E8-4474-9314-4848354A8FC0/xxxxxxxxx xxxxxxx.app/Frameworks/libswiftCoreData.dylib
0x120030000 - 0x12005bfff dyld arm64 <1b945967d665331dbf2600249e46660a> /usr/lib/dyld
Those are the live logs when we launch the app
Sep 24 10:23:22 iPad SpringBoard[53] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Sep 24 10:23:25 iPad SpringBoard[53] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Sep 24 10:23:26 iPad amfid[1091] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Sep 24 10:23:39 iPad kernel[0] <Notice>: xpcproxy[1186] Container: /private/var/mobile/Containers/Data/Application/02AF80DC-26F3-4AAE-AD90-A4F148E574AE (sandbox)
Sep 24 10:23:39 iPad amfid[1091] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Sep 24 10:23:39 iPad SpringBoard[53] <Error>: CGContextSaveGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Sep 24 10:23:39 iPad SpringBoard[53] <Error>: CGContextTranslateCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Sep 24 10:23:39 iPad SpringBoard[53] <Error>: CGContextRestoreGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Sep 24 10:23:39 iPad SpringBoard[53] <Error>: CGContextSaveGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Sep 24 10:23:39 iPad SpringBoard[53] <Error>: CGContextTranslateCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Sep 24 10:23:39 iPad SpringBoard[53] <Error>: CGContextRestoreGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Sep 24 10:23:52 iPad syncdefaultsd[1127] <Notice>: (Note ) marked "com.me.keyvalueservice" topic as "enabled" on <APSConnection: 0x15d50e780>
Sep 24 10:23:53 iPad amfid[1091] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Sep 24 10:23:58 iPad amfid[1091] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Sep 24 10:23:59 iPad SpringBoard[53] <Warning>: Forcing crash report of <FBApplicationProcess: 0x128ef74e0; Schneider Elect; pid: 1186> (reason: 1, description: com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx failed to launch after 20.00s (launchIntent: foreground-interactive))
Sep 24 10:23:59 iPad kernel[0] <Notice>: int _validateCodeDirectoryHashInDaemon(const char *, off_t, uint8_t *, int, int *): verify_code_directory returned 0x10004005
Sep 24 10:23:59 iPad SpringBoard[53] <Warning>: Finished crash reporting.
Sep 24 10:23:59 iPad com.apple.xpc.launchd[1] (UIKitApplication:com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx[0x9388][1186]) <Notice>: Service exited due to signal: Killed: 9
Sep 24 10:23:59 iPad ReportCrash[1187] <Warning>: saved type '109_Schneider Electric' report (2 of max 25) as /var/mobile/Library/Logs/CrashReporter/Schneider Electric_2015-09-24-102359_iPad.ips
Sep 24 10:23:59 iPad SpringBoard[53] <Warning>: Application 'UIKitApplication:com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx[0x9388]' exited abnormally via signal.
Sep 24 10:24:00 iPad searchd[156] <Warning>: ====^^^^ DuetExpert missing requested data, people:0 applicationDeepLinks:1 applications:0 requests:36 missingAllDataRequests:0
Sep 24 10:24:04 iPad amfid[1091] <Error>: mig_source_handler: dispatch_mig_server returned 268435459
When we install the app from HockeyApp we have the following logs
Sep 24 10:26:03 iPad itunesstored[103] <Warning>: [Download]: Adding download(s): -7184518095014445338
Sep 24 10:26:03 iPad itunesstored[103] <Warning>: LaunchServices: installing placeholder for <LSApplicationProxy: 0x14e0a5530> com.xxxxxxx.enterprise.xxxxxxx <(null) *Not found in database*>
Sep 24 10:26:03 iPad installd[46] <Notice>: 0x16e12f000 -[MIClientConnection installPath:withOptions:completion:]: Install of "/var/mobile/Library/Caches/com.apple.itunesstored/AppPlaceholders/-xxxxxxxxxx.app" type Placeholder requested by itunesstored (pid 103)
Sep 24 10:26:03 iPad installd[46] <Notice>: 0x16e087000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx; Version=5106, ShortVersion=(null)>
Sep 24 10:26:03 iPad installd[46] <Notice>: 0x16e087000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx at /private/var/mobile/Containers/Data/Application/28FBA6E7-DCD8-49B2-BA05-EFD951531A64
Sep 24 10:26:03 iPad installd[46] <Notice>: 0x16e087000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx at /private/var/mobile/Containers/Bundle/Application/6631F035-AF52-41CB-8299-7E781971C65E
Sep 24 10:26:03 iPad installd[46] <Notice>: 0x16e087000 -[MIInstaller performInstallationWithError:]: Install Successful; Staging: 0.00s; Waiting: 0.00s; Preflight/Patch: 0.00s, Verifying: 0.00s; Overall: 0.09s
Sep 24 10:26:03 iPad itunesstored[103] <Warning>: LaunchServices: Creating installProgressForApplication:<LSApplicationProxy: 0x14e0b0aa0> com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/6631F035-AF52-41CB-8299-7E781971C65E/-7184518095014445338.app> withPhase:3
Sep 24 10:26:03 iPad itunesstored[103] <Warning>: LaunchServices: installPhaseFinishedForProgress: com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx.InstallingPlaceholder - <NSProgress: 0x14ce3cb20> : Parent: 0x0 / Fraction completed: 0.0000 / Completed: 0 of 100 called, removing progress from cache
Sep 24 10:26:03 iPad ondemandd[180] <Error>: Application with ID: com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx was installed, but it doesn't appear to have a bundle URL, we are taking no action on this.
Sep 24 10:26:03 iPad itunesstored[103] <Warning>: [Download]: Starting task: 7 with priority: 300 for download: -xxxxxxxxxxxxx bundleIdentifier: com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx in session: com.apple.itunesstored.default
Sep 24 10:26:03 iPad itunesstored[103] <Warning>: LaunchServices: updating placeholder for <LSApplicationProxy: 0x14e030650> com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/6631F035-AF52-41CB-8299-7E781971C65E/-7184518095014445338.app> with icons
Sep 24 10:26:03 iPad installd[46] <Notice>: 0x16e087000 -[MIClientConnection installPath:withOptions:completion:]: Install of "/var/mobile/Library/Caches/com.apple.itunesstored/AppPlaceholders/-7184518095014445338.app" type Placeholder requested by itunesstored (pid 103)
Sep 24 10:26:03 iPad installd[46] <Notice>: 0x16e1bb000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx; Version=5106, ShortVersion=(null)>
Sep 24 10:26:04 iPad installd[46] <Notice>: 0x16e1bb000 -[MIInstallableBundle _refreshUUIDForContainer:withError:]: Data container for com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx is now at /private/var/mobile/Containers/Data/Application/9D5532A1-DAA6-432D-9F94-7A238714CC81
Sep 24 10:26:04 iPad installd[46] <Notice>: 0x16e1bb000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx at /private/var/mobile/Containers/Bundle/Application/0E91022C-B4DB-42E2-9BC5-50683613AA1E
Sep 24 10:26:04 iPad installd[46] <Notice>: 0x16e1bb000 -[MIInstaller performInstallationWithError:]: Install Successful; Staging: 0.00s; Waiting: 0.00s; Preflight/Patch: 0.00s, Verifying: 0.01s; Overall: 0.16s
Sep 24 10:26:04 iPad ondemandd[180] <Error>: Application with ID: com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx was installed, but it doesn't appear to have a bundle URL, we are taking no action on this.
Sep 24 10:26:04 iPad itunesstored[103] <Warning>: LaunchServices: Creating installProgressForApplication:<LSApplicationProxy: 0x14e04c7f0> com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/0E91022C-B4DB-42E2-9BC5-50683613AA1E/-7184518095014445338.app> withPhase:0
Sep 24 10:26:04 iPad lsd[80] <Warning>: LaunchServices: Updating installPhase for parent <NSProgress: 0x14dd52860> : Parent: 0x0 / Fraction completed: 0.0000 / Completed: 0 of 100 to 0
Sep 24 10:26:04 iPad lockdownd[66] <Error>: CFStringGetCString error in locklog
Sep 24 10:26:08 iPad kernel[0] <Notice>: AppleARMPMUCharger: limiting USB input current to 1600 mA (measured 1164 mA)
Sep 24 10:26:08 iPad kernel[0] <Notice>: AppleARMPMUCharger: limiting USB input current to 1500 mA (measured 1160 mA)
Sep 24 10:26:08 iPad kernel[0] <Notice>: AppleARMPMUCharger: limiting USB input current to 1400 mA (measured 1141 mA)
Sep 24 10:26:17 iPad itunesstored[103] <Warning>: [Download]: Download task did finish: 7 for download: -7184518095014445338
Sep 24 10:26:17 iPad itunesstored[103] <Warning>: [ApplicationWorkspace] Installing download: -7184518095014445338 with step(s): Install
Sep 24 10:26:17 iPad itunesstored[103] <Warning>: [ApplicationWorkspace]: Installing software package with bundleID: com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx: bundleVersion: 5106 path: /var/mobile/Media/Downloads/-7184518095014445338/2540926088173953799
Sep 24 10:26:17 iPad itunesstored[103] <Warning>: [ApplicationWorkspace]: Bundle validated for bundleIdentifier: com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx success: 1
Sep 24 10:26:17 iPad itunesstored[103] <Warning>: LaunchServices: installing app for existing placeholder <LSApplicationProxy: 0x14e06bf60> com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/0E91022C-B4DB-42E2-9BC5-50683613AA1E/-7184518095014445338.app>
Sep 24 10:26:17 iPad itunesstored[103] <Warning>: LaunchServices: Creating installProgressForApplication:<LSApplicationProxy: 0x14e06bf60> com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/0E91022C-B4DB-42E2-9BC5-50683613AA1E/-7184518095014445338.app> withPhase:1
Sep 24 10:26:17 iPad lsd[80] <Warning>: LaunchServices: Updating installPhase for parent <NSProgress: 0x14dd52860> : Parent: 0x0 / Fraction completed: 0.5800 / Completed: 58 of 100 to 1
Sep 24 10:26:17 iPad installd[46] <Notice>: 0x16e087000 -[MIClientConnection installPath:withOptions:completion:]: Install of "/var/mobile/Media/Downloads/-7184518095014445338/2540926088173953799" type Customer requested by itunesstored (pid 103)
Sep 24 10:26:20 iPad installd[46] <Notice>: 0x16e1bb000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx; Version=5106, ShortVersion=4.0>
Sep 24 10:26:20 iPad installd[46] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Sep 24 10:26:20 iPad profiled[132] <Notice>: (Note ) MC: Provisioning profiles changed
Sep 24 10:26:20 iPad profiled[132] <Notice>: (Note ) MC: Updating MIS trust...
Sep 24 10:26:29 iPad online-auth-agent[313] <Error>: SecTrustEvaluate [leaf AnchorTrusted]
Sep 24 10:26:29 iPad installd[46] <Notice>: 0x16e1bb000 -[MIInstallableBundle _refreshUUIDForContainer:withError:]: Data container for com.xxxxxxx.enterprise.xxxxxxxx is now at /private/var/mobile/Containers/Data/Application/CCFF5229-5605-474A-8C2C-5DFA0CA7570C
Sep 24 10:26:29 iPad installd[46] <Notice>: 0x16e1bb000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx at /private/var/mobile/Containers/Bundle/Application/552B30AE-9DD1-4125-8262-3C4A85F2A174
Sep 24 10:26:29 iPad installd[46] <Notice>: 0x16e1bb000 -[MIInstaller performInstallationWithError:]: Install Successful; Staging: 2.71s; Waiting: 0.00s; Preflight/Patch: 0.02s, Verifying: 9.36s; Overall: 12.21s
Sep 24 10:26:29 iPad lsd[80] <Warning>: LaunchServices: Updating identifier store
Sep 24 10:26:29 iPad itunesstored[103] <Warning>: LaunchServices: installPhaseFinishedForProgress: com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx.Installing - <NSProgress: 0x14e083bd0> : Parent: 0x0 / Fraction completed: 1.0000 / Completed: 100 of 100 called, removing progress from cache
Sep 24 10:26:29 iPad lsd[80] <Warning>: LaunchServices: installation ended for app com.xxxxxxxxx.enterprise.xxxxxxxxxxx
Sep 24 10:26:29 iPad itunesstored[103] <Warning>: [ApplicationWorkspace] Install complete for download: -7184518095014445338 result: Success
Sep 24 10:26:29 iPad itunesstored[103] <Warning>: [ApplicationWorkspace]: Updating placeholder for download: -7184518095014445338 bundleIdentifier: com.xxxxxxxx.enterprise.xxxxxxxxxxxxxx
Sep 24 10:26:29 iPad itunesstored[103] <Warning>: LaunchServices: installPhaseFinishedForProgress: com.xxxxxxxxx.enterprise.xxxxxxxxxx.Loading - <NSProgress: 0x14e0bdb30> : Parent: 0x0 / Fraction completed: 1.0000 / Completed: 1 of 1 called, removing progress from cache
Sep 24 10:26:29 iPad lsd[80] <Warning>: LSInstallProgress: In observeValueForKeyPath:fractionCompleted could not find parent progress for com.xxxxxxxxxx.enterprise.xxxxxxxxxxx, it may have been removed
Sep 24 10:26:29 iPad lsd[80] <Warning>: LSInstallProgress: In observeValueForKeyPath:fractionCompleted could not find parent progress for com.xxxxxxxxxx.enterprise.xxxxxxxxxxx, it may have been removed
Sep 24 10:26:29 iPad lsd[80] <Warning>: LSInstallProgress: In observeValueForKeyPath:userInfo.installState could not find parent progress for com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx, it may have been removed
Sep 24 10:26:29 iPad lsd[80] <Warning>: LSInstallProgress: In observeValueForKeyPath:fractionCompleted could not find parent progress for com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx, it may have been removed
Sep 24 10:26:29 iPad lsd[80] <Warning>: LSInstallProgress: In observeValueForKeyPath:userInfo.installState could not find parent progress for com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx, it may have been removed
Sep 24 10:26:29 iPad lsd[80] <Warning>: LSInstallProgress: In observeValueForKeyPath:fractionCompleted could not find parent progress for com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx, it may have been removed
Sep 24 10:26:29 iPad itunesstored[103] <Warning>: [ApplicationWorkspace]: Placeholder updated for download: -7184518095014445338 bundleIdentifier: com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx success: 1
Sep 24 10:26:29 iPad SpringBoard[53] <Warning>: Installed apps did change.
Added: {(
"com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx"
)}
Removed: {(
)}
Modified: {(
)}
Sep 24 10:26:31 iPad lockdownd[66] <Error>: CFStringGetCString error in locklog
Sep 24 10:26:31 iPad lockdownd[66] <Error>: CFStringGetCString error in locklog
Sep 24 10:26:31 iPad mobile_assertion_agent[145] <Notice>: service_one_connection: Connection closed for client iTunes.
Sep 24 10:26:37 iPad SpringBoard[53] <Warning>: HW kbd: Failed to set (null) as keyboard focus
I solved this by wiping out the provisioning profiles on my device.
Go to your Xocde -> Devices -> Gear icon -> Show provisioning profiles and remove them one by one, until you remove all of them.
I don't know what iOS 9 does with Enterprise signed app, but it seems that it attempts to verify something (by going through all of your provisioning profiles) and failed a lot upon first launch. This shouldn't happen with App Store builds.
Hope that helps.
The answer of #shinichi is correct. However, I needed to delete ALL enterprise provisioning profiles and do a hard reset of the device. After that there were no problems.
NOTE: If you have many EP profiles, you can delete them faster by pressing the UP button on your keyboard and positioning your mouse on the "-" button in Xcode and clicked and pressing. I know this is a stupid solution, but I had about 100 EP profiles, deleting them by clicking with the mouse would have driven me crazy.
Hope Apple fixes this.
Xcode 7: Xcode - >devices -> ctrl+click your device -> Show provisioning profiles.
I tried removing the provisioning profiles as suggested by the accepted answer but there were none!
My app worked for a couple hours and then all of a sudden stopped working with the same issue as described in the question.
The solution was to open Keychain Access and search for certificates with my developer name - sure enough, there was an old one that had expired and for some reason it was getting picked up for signing. After I deleted that expired certificate and restarted my dev environment the app started working once again.

libMobileGestalt copySystemVersionDictionaryValue

My app goes crash after installed a new update from app store and sometime log says -
libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
Anyone familiar with it??
one of the customer provided a log.
Jul 23 15:57:49 Ami-Sandlers-iPhone backboardd[26] : ALS: SetDisplayFactor: factor=0.0500
Jul 23 15:57:50 Ami-Sandlers-iPhone backboardd[26] : ALS: SetDisplayFactor: factor=1.0000
Jul 23 16:00:24 Ami-Sandlers-iPhone backboardd[26] : com.demandmedia.traileraddict.ios.free failed to resume in time
Jul 23 16:00:24 Ami-Sandlers-iPhone backboardd[26] : Forcing crash report of TrailerAddict[4919]...
Jul 23 16:00:24 Ami-Sandlers-iPhone backboardd[26] : Finished crash reporting.
Jul 23 16:00:24 Ami-Sandlers-iPhone com.apple.launchd[1] (UIKitApplication:com.demandmedia.traileraddict.ios.free[0xeab9][4919]) : (UIKitApplication:com.demandmedia.traileraddict.ios.free[0xeab9]) Exited: Killed: 9
Jul 23 16:00:24 Ami-Sandlers-iPhone backboardd[26] : Application 'UIKitApplication:com.demandmedia.traileraddict.ios.free[0xeab9]' exited abnormally with signal 9: Killed: 9
Jul 23 16:00:24 Ami-Sandlers-iPhone ReportCrash[4925] : libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
Jul 23 16:00:24 Ami-Sandlers-iPhone ReportCrash[4925] : Saved crashreport to /var/mobile/Library/Logs/CrashReporter/TrailerAddict_2013-07-23-160024_Ami-Sandlers-iPhone.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0

Issue with iOS low memory crash but using very low memory - checked with instruments

I have a sample App that works fine on the simulator, but crashes on the device. I get the following output on the console from Organizer. It crashes within a short time.
Using instruments, memory leak, I see that the memory usage is about 2-3 mb. Using memory allocations, I see around 8-9mb for memory allocations and nothing in VM tracker.
The console output is given below. Can anyone kindly suggest what to do?
pr 26 11:46:37 unknown SpringBoard[15] <Warning>: Memory level is not normal (2). Delaying auto-relaunch of 'com.apple.mobilemail' for 30 seconds.
Apr 26 11:46:44 unknown SpringBoard[15] <Warning>: No valid 'aps-environment' entitlement string found for application 'SampleApp': (null). Notifications will not be delivered.
Apr 26 11:46:44 unknown SampleApp[14834] <Warning>: unique id: //someID
Apr 26 11:46:45 unknown SampleApp[14834] <Warning>: Failed to get token, error: Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo=0x2322ae {NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application}
Apr 26 11:46:46 unknown UserEventAgent[12] <Notice>: jetsam: kernel termination snapshot being created
Apr 26 11:46:46 unknown com.apple.debugserver-64[14833] <Warning>: 1 [39f1/1303]: error: ::read ( 4, 0x2ff389d4, 1024 ) => -1 err = Bad file descriptor (0x00000009)
Apr 26 11:46:46 unknown com.apple.launchd[1] <Notice>: (com.apple.atc) Exited: Killed: 9
Apr 26 11:46:46 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.fun.SampleApp.ios[0x2344]) Bug: launchd_core_logic.c:3730 (25147):3
Apr 26 11:46:46 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.fun.SampleApp.ios[0x2344]) Assuming job exited: <rdar://problem/5020256>: 10: No child processes
Apr 26 11:46:46 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.fun.SampleApp.ios[0x2344]) Job appears to have crashed: Segmentation fault: 11
Apr 26 11:46:46 unknown com.apple.launchd[1] <Notice>: (com.apple.mediaserverd) Exited: Killed: 9
Apr 26 11:46:46 unknown com.apple.launchd[1] <Notice>: (com.apple.ubd) Exited: Killed: 9
Apr 26 11:46:47 unknown kernel[0] <Debug>: launchd[14836] Builtin profile: mediaserverd (sandbox)
Apr 26 11:46:48 unknown lockdownd[21] <Error>: 2ffd4000 _receive_message: walk away - non-SSL 1
Apr 26 11:46:48 unknown com.apple.mobile.lockdown[21] <Notice>: receive secure message timeout!
Apr 26 11:46:48 unknown ReportCrash[14838] <Error>: Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2012-04-26-114648.plist using uid: 0 gid: 0, synthetic_euid: 0 egid: 0
Apr 26 11:46:49 unknown mediaserverd[14836] <Error>: 11:46:49.618590 com.apple.AVConference: /SourceCache/GameKitServices/GameKitServices-344.3/AVConference.subproj/Sources/AVConferenceServer.m:1862: AVConferenceServerStart aborting - device doesn't support conferencing
Apr 26 11:46:49 unknown SpringBoard[15] <Warning>: Application 'SampleApp' exited abnormally with signal 11: Segmentation fault: 11
Apr 26 11:46:52 unknown atc[14835] <Warning>: Error: Connection invalid
Apr 26 11:46:53 unknown wifid[27] <Error>: WiFi:[357158813.1212122]: Client itunesstored is background application
Apr 26 11:47:07 unknown SpringBoard[15] <Warning>: Memory level is not normal (2). Delaying auto-relaunch of 'com.apple.mobilemail' for 30 seconds.
Apr 26 11:47:37 unknown SpringBoard[15] <Warning>: Memory level is not normal (2). Delaying auto-relaunch of 'com.apple.mobilemail' for 30 seconds.
Apr 26 11:48:07 unknown SpringBoard[15] <Warning>: Memory level is not normal (2). Delaying auto-relaunch of 'com.apple.mobilemail' for 30 seconds.
Apr 26 11:48:37 unknown SpringBoard[15] <Warning>: Memory level is not normal (2). Delaying auto-relaunch of 'com.apple.mobilemail' for 30 seconds.
Apr 26 11:48:49 unknown SpringBoard[15] <Notice>: Posting 'com.apple.iokit.hid.displayStatus' notifyState=0
ok, so it seems like everything was fine, I just needed to delete the app from the iPad and reinstall it... pretty weird... !!!

Resources