Simple application crashes - ios

I have developed a simple app that calculates the risk of developing type 2 diabetes. The app runs fine from xcode on my iPhone 3Gs. I archived the app in a .ipa file and I have uploaded the app to my testflightapp.com account. I have installed the app on my iPhone with the standard testflightapp.com procedure: clicking the install link in the email from testflightapp.com.
When I run the app, I see the launch image for a few seconds and then it goes away. The console of my iPhone in xcode displays what is going wrong, but I do not know what this means:
Jan 8 20:00:42 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.reinvdo.diabete[0xa6a]) Conflict with job: UIKitApplication:com.reinvdo.diabete[0x291b] over Mach service: com.reinvdo.diabete
Jan 8 20:00:42 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.reinvdo.diabete[0xa6a]) Conflict with job: UIKitApplication:com.reinvdo.diabete[0x291b] over Mach service: com.reinvdo.diabete.UIKit.migserver
Jan 8 20:00:42 unknown kernel[0] <Debug>: launchd[4255] Builtin profile: container (sandbox)
Jan 8 20:00:42 unknown kernel[0] <Debug>: launchd[4255] Container: /private/var/mobile/Applications/64A83260-5918-4109-A861-A3399D825654 [69] (sandbox)
Jan 8 20:00:42 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.reinvdo.diabete[0x291b]) The following job tried to hijack the service "com.reinvdo.diabete" from this job: UIKitApplication:com.reinvdo.diabete[0xa6a]
Jan 8 20:00:42 unknown UIKitApplication:com.reinvdo.diabete[0xa6a][4255] <Notice>: Couldn't register com.reinvdo.diabete with the bootstrap server. Error: unknown error code.
Jan 8 20:00:42 unknown UIKitApplication:com.reinvdo.diabete[0xa6a][4255] <Notice>: This generally means that another instance of this process was already running or is hung in the debugger.
Jan 8 20:00:43 unknown ReportCrash[4256] <Notice>: Formulating crash report for process diabete[4255]
Jan 8 20:00:43 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.reinvdo.diabete[0xa6a]) Job appears to have crashed: Abort trap: 6
Jan 8 20:00:43 unknown SpringBoard[15] <Warning>: Application 'diabete' exited abnormally with signal 6: Abort trap: 6
Jan 8 20:00:43 unknown ReportCrash[4256] <Error>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/diabete_2012-01-08-200042_reins-iPhone.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
Can anybody shine a light on this error?

On the iPhone, a process of a previous run of the application was still active. To fix the issue, all that is necessary is a reboot.

Related

App crashing on iOS device

EDIT - I downgraded back to METEOR#1.1.0.3 and everything is working again. Looks like there's something wrong in Meteor's 1.3 release
I have an app that I built in meteor. I recently upgraded Meteor to the latest 1.3 Beta.
My app works on the iOS simulator, on an iOS device when I build and run for the device through XCode, however it crashes on devices when downloading the app through Testflight. Everything worked before the upgrade.
The splash screen will show for half a second and then the app will quit.
I'm at a bit of a loss here. What could be causing this?
EDIT 2 - Found a different log. I think this is the one we need.
Feb 21 13:23:03 iPhone kernel[0] <Notice>: xpcproxy[366] Container: /private/var/mobile/Containers/Data/Application/E04C2844-B735-4BA2-B54A-9202F6EA5C6F (sandbox)
Feb 21 13:23:03 iPhone ReportCrash[367] <Error>: task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)
Feb 21 13:23:03 iPhone ReportCrash[367] <Notice>: ReportCrash acting against PID 366
Feb 21 13:23:03 iPhone locationd[64] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
Feb 21 13:23:03 iPhone ReportCrash[367] <Notice>: Formulating crash report for process VUSE Videos[366]
Feb 21 13:23:03 iPhone com.apple.xpc.launchd[1] (UIKitApplication:rocks.brownchikenbrowncow.app[0x4a08][366]) <Notice>: Service exited due to signal: Trace/BPT trap: 5
Feb 21 13:23:03 iPhone ReportCrash[367] <Notice>: Saved report to /var/mobile/Library/Logs/CrashReporter/VUSE Videos_2016-02-21-132303_iPhone.ips.beta
Feb 21 13:23:03 iPhone SpringBoard[43] <Warning>: Application 'UIKitApplication:rocks.brownchikenbrowncow.app[0x4a08]' crashed.
Feb 21 13:23:03 iPhone wifid[70] <Notice>: WiFi:[477771783.972406]: BG Application: Not Present, BG Daemon: Present. Daemons: networkd apsd
Feb 21 13:23:03 iPhone assertiond[58] <Warning>: Could not set priority of <BKNewProcess: 0x16e75b10; rocks.brownchikenbrowncow.app; pid: 366; hostpid: -1> to 2, priority: No such process
Feb 21 13:23:03 iPhone assertiond[58] <Warning>: Could not set priority of <BKNewProcess: 0x16e75b10; rocks.brownchikenbrowncow.app; pid: 366; hostpid: -1> to 4096, priority: No such process
Feb 21 13:23:04 iPhone locationd[64] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
looks like the default build setting for "Runpath Search Paths" is blank for "Release"
both targets should be set to
#executable_path/Frameworks
after this change, my testflight build is no longer crashing right after startup
--
i had the same problem after meteor 1.3 upgrade. i got this error message from the device
Dyld Error Message:
Dyld Message: Library not loaded: #rpath/libswiftCore.dylib
which led me to dyld: Library not loaded: #rpath/libswiftCore.dylib / Image not found
I think, Logs will be helpful here
Open XCode -> window -> devices
Select your device on left window:
Now you will be seeing logs coming.
Clean logs from bottom of screen, and try opening your app, and when your app gets crashed, it will fill out error logs.
If you can provide those logs here, then we will be able to help better.

Cannot distribute inhouse build with ios-charts library embedded to my project

first of all, I would like to thank you for creating this library. I have embedded it in my project (as written in the README file) by dragging it into the project, embedding it in the binaries and so on. Target iOS version is 8.0.
Everything worked great for dev version of the app, but as soon as I built the inhouse version, app crashes after initial welcome screen shows. Logs for the crash are as following:
Oct 20 15:54:15 iPhone SpringBoard[54] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Oct 20 15:54:15 iPhone SpringBoard[54] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Oct 20 15:54:15 iPhone kernel[0] <Notice>: xpcproxy[700] Container: /private/var/mobile/Containers/Data/Application/6D451583-EE0E-4F0A-9CA9-2E33F83D6138 (sandbox)
Oct 20 15:54:15 iPhone kernel[0] <Notice>: AMFI: energy_challenge(pid 700) - [deny-mmap] mapped executable file has no team identifier in its signature: /private/var/mobile/Containers/Bundle/Application/84AEA7F2-4987-4119-B3CC-A4EAFC9989DC/energy_challenge.app/Frameworks/Charts.framework/Charts
Oct 20 15:54:15 iPhone com.apple.xpc.launchd[1] (UIKitApplication:com.edge5.nativeMenuEnergieInhouse[0x1f2e][700]) <Notice>: Service exited due to signal: Trace/BPT trap: 5
Oct 20 15:54:15 iPhone assertiond[63] <Warning>: Unable to obtain a task name port right for pid 700: (os/kern) failure (5)
Oct 20 15:54:15 iPhone SpringBoard[54] <Warning>: Unable to register for exec notifications: No such process
Oct 20 15:54:15 iPhone SpringBoard[54] <Warning>: Unable to obtain a task name port right for pid 700: (os/kern) failure (5)
Oct 20 15:54:15 iPhone SpringBoard[54] <Warning>: Unable to obtain a task name port right for <FBApplicationProcess: 0x13226dc00; com.edge5.nativeMenuEnergieInhouse; pid: 700>
Oct 20 15:54:15 iPhone SpringBoard[54] <Warning>: Application 'UIKitApplication:com.edge5.nativeMenuEnergieInhouse[0x1f2e]' crashed.
Oct 20 15:54:15 iPhone SpringBoard[54] <Warning>: Application '(null)' exited for an unknown reason.
Oct 20 15:54:15 iPhone ReportCrash[701] <Notice>: Formulating report for corpse[700] energy_challenge
Oct 20 15:54:15 iPhone ReportCrash[701] <Warning>: report not saved because the limit of 25 for 109_energy_challenge logs has been reached.
Oct 20 15:54:15 iPhone ReportCrash[701] <Error>: Notice: This report is abbreviated for syslog inclusion because it could not be saved to disk.
Symbolication may be possible by manually cleaning up and including the Binary Image section of a full report from this same device -- good luck!
Oct 20 15:54:15 iPhone ReportCrash[701] <Error>: Process: energy_challenge [700]
Path: /private/var/mobile/Containers/Bundle/Application/84AEA7F2-4987-4119-B3CC-A4EAFC9989DC/energy_challenge.app/energy_challenge
OS Version: iOS 9.0.2 (13A452)
Oct 20 15:54:15 iPhone ReportCrash[701] <Error>: Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x0000000120095088
Triggered by Thread: 0
Oct 20 15:54:15 iPhone ReportCrash[701] <Error>: Dyld Error Message:
Dyld Message: Library not loaded: #rpath/Charts.framework/Charts
Referenced from: /var/mobile/Containers/Bundle/Application/84AEA7F2-4987-4119-B3CC-A4EAFC9989DC/energy_challenge.app/energy_challenge
Reason: no suitable image found. Did find:
/private/var/mobile/Containers/Bundle/Application/84AEA7F2-4987-4119-B3CC-A4EAFC9989DC/energy_challenge.app/Frameworks/Charts.framework/Charts: mmap() errno=1 validating first page of '/private/var/mobile/Containers/Bundle/Application/84AEA7F2-4987-4119-B3CC-A4EAFC9989DC/energy_challenge.app/Frameworks/Charts.framework/Charts'
Dyld Version: 369.12
Oct 20 15:54:16 iPhone wifid[39] <Error>: WiFi:[467042056.241745]: Enable WoW requested by "apsd"
Oct 20 15:54:16 iPhone wifid[39] <Error>: WiFi:[467042056.243839]: Unable to dispatch WowStateChanged message to client dataaccessd (268435460)
Oct 20 15:54:16 iPhone wifid[39] <Error>: WiFi:[467042056.244041]: Unable to dispatch WowStateChanged message to client MobileMail (268435460)
Oct 20 15:54:16 iPhone wifid[39] <Error>: WiFi:[467042056.244185]: Unable to dispatch WowStateChanged message to client softwareupdatese (268435460)
Oct 20 15:54:16 iPhone wifid[39] <Error>: WiFi:[467042056.244422]: Unable to dispatch WowStateChanged message to client dataaccessd (268435460)
Oct 20 15:54:16 iPhone wifid[39] <Error>: WiFi:[467042056.244678]: Unable to dispatch WowStateChanged message to client assistantd (268435460)
Oct 20 15:54:16 iPhone wifid[39] <Error>: WiFi:[467042056.245010]: Unable to dispatch WowStateChanged message to client itunesstored (268435460)
The problem occurs here:
[deny-mmap] mapped executable file has no team identifier in its signature: /private/var/mobile/Containers/Bundle/Application/84AEA7F2-4987-4119-B3CC-A4EAFC9989DC/energy_challenge.app/Frameworks/Charts.framework/Charts
I tried creating new certificate, new inhouse build, basically went through all the stackoverflow questions regarding this or similar issue (eg. https://www.airsignapp.com/ios-apps-using-swift-crash-when-signed-with-inhouse-certificate/) without any success. Is it possible that maybe you need to change something certificate-related on your side?
Thank you very much for any answer
I came across this post when I was searching for "[deny-mmap] mapped executable file has no team identifier in its signature" on Google.
It turned out that the old Apple WWDR Cert expired on 14 Feb 2016. If your OSX still has that expired cert in Keychain Access, your Distribution Certificate would be regarded as invalid. (A red line showing "This certificate has an invalid issuer") You could forcefully "trust" that cert in Keychain Access, but the side effect is that the signed binary would NOT have TeamIdentifier in its signature:
$ codesign -d -vv MyApp.app
Executable=/Users/admin/MyApp.app/MyApp
Identifier=info.eddywong.MyApp
Format=bundle with Mach-O universal (armv7 arm64)
CodeDirectory v=20100 size=1920 flags=0x0(none) hashes=87+5 location=embedded
Signature size=4389
Authority=iPhone Distribution: Eddy Wong Limited (KG7UETNRCJ)
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Signed Time=15 Mar 2016 23:59:38
Info.plist entries=33
TeamIdentifier=not set
Sealed Resources version=2 rules=12 files=108
So I had to follow the solution posted in https://stackoverflow.com/a/35400712 - to remove the old, expired WWDR certificate in "System" keychain.
Then, I cleaned and re-archive, then export IPA. This time it works!
The reason why "Everything worked great for dev version of the app" is that dev version of the app is signed by your own developer cert, not your organization's distribution cert. I can't figure out why developer cert is not affected by WWDR expiry, though. But I could verify that the dev signed binary does have the TeamIdentifier set, while the dist signed binary doesn't.

iOS app Crashes on Start Up

I developed an application with Xamarin studio. It runs completely fine with the iPhoneSimulator. I was able to run Ad-Hoc | Iphone and it compiles and actually saves the IPA directly to my phone. When I click the app it launches the load screen and crashes within 1 second.
I've tried to install command line tools for my OSX which is 10.9.
I'm all out of ideas, any help would be great.
Warning MT5303: Native linking warning: warning: can't parse dwarf compilation unit info in /Users/test/Google Drive/FernSoftware Mobile App/Hello/obj/iPhone/Debug/mtouch-cache/Hello.exe.armv7.o (MT5303)
Warning MT5303: Native linking warning: warning: can't parse dwarf compilation unit info in /Users/test/Google Drive/FernSoftware Mobile App/Hello/obj/iPhone/Debug/mtouch-cache/System.Data.dll.armv7.o (MT5303)
no errors but many warnings similar to that.
Jun 20 15:25:59 com.apple.debugserver-199[2466] <Warning>: 1 +0.000000 sec [09a2/0303]: error: ::ptrace (request = PT_THUPDATE, pid = 0x09a3, tid = 0x2503, signal = -1) err = Invalid argument (0x00000016)
Jun 20 15:25:59 com.apple.debugserver-199[2466] <Warning>: 2 +0.036680 sec [09a2/1303]: error: ::read ( 5, 0x2fe809fc, 18446744069414585344 ) => -1 err = Bad file descriptor (0x00000009)
Jun 20 15:25:59 com.apple.debugserver-199[2463] <Warning>: 1 +0.000000 sec [099f/0303]: error: ::read ( 5, 0x2fd7cebc, 1024 ) => 0 err = Bad file descriptor (0x00000009)
Jun 20 15:25:59 mobile_installation_proxy[2461] <Error>: main: Could not receive request from host.
Jun 20 15:25:59 mobile_installation_proxy[2464] <Error>: main: Could not receive request from host.
Jun 20 15:25:59 kernel[0] <Debug>: launchd[2467] Builtin profile: container (sandbox)
Jun 20 15:25:59 kernel[0] <Debug>: launchd[2467] Container: /private/var/mobile/Applications/6C7A90BA-B71E-41F5-BAA1-85B0202BA07F (sandbox)
Jun 20 15:25:59 FaaSBank[2467] <Notice>: MS:Notice: Installing: com.FaaSBank.FernSoftware [FaaSBank] (793.00)
Jun 20 15:26:00 com.apple.launchd[1] <Error>: (UIKitApplication:com.FaaSBank.FernSoftware[0x1e67]) Exited with code: 1
Jun 20 15:26:00 com.apple.launchd[1] <Notice>: (UIKitApplication:com.FaaSBank.FernSoftware[0x1e67]) Throttling respawn: Will start in 2147483647 seconds
Jun 20 15:26:00 backboardd[53] <Warning>: Application 'UIKitApplication:com.FaaSBank.FernSoftware[0x1e67]' exited abnormally with exit status 1
The device log is huge but i think these are the important pars
iOS device log
http://pastebin.com/PDjj0aHJ
Go through this, It' would be help you :
Architecture settings (armv6, armv7, armv7s) and also check your deployment version setting.
Set your Code Signing properly (Build Settings --> Code Signing)
Set/Check proper Deployment Target
Set/Check your Search Paths, if any. Check your other linker flags.
I think, might be possible your application run perfectly.

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... !!!

UIWebView strange behavior on different devices

I have developed a sample iPad application in which I open the one file of type ppt in UIWebView. When I run this application on iPad having O.S version 5.0(iPad2) & 4.3.1(iPad1) the application gets crash with following error(Memory Warning):
Apr 11 11:01:23 unknown WebViewTest[345] <Warning>: Received memory warning.
Apr 11 11:01:24 unknown UserEventAgent[12] <Notice>: jetsam: kernel termination snapshot being created
Apr 11 11:01:24 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.apple.Preferences[0x3072]) Exited: Killed: 9
Apr 11 11:01:24 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.extentia.DMG[0x6ba7]) Exited: Killed: 9
Apr 11 11:01:24 unknown SpringBoard[15] <Warning>: Application 'Settings' exited abnormally with signal 9: Killed: 9
Apr 11 11:01:24 unknown SpringBoard[15] <Warning>: Application 'DMG' exited abnormally with signal 9: Killed: 9
Apr 11 11:01:25 unknown ReportCrash[347] <Error>: Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2012-04-11-110125.plist using uid: 0 gid: 0, synthetic_euid: 0 egid: 0
Apr 11 11:01:25 unknown WebViewTest[345] <Warning>: Received memory warning.
Apr 11 11:01:26 unknown SpringBoard[15] <Warning>: Received memory warning.
Apr 11 11:01:26 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.extentia.WebViewTest[0x99f4]) Exited: Killed: 9
Apr 11 11:01:26 unknown UserEventAgent[12] <Notice>: jetsam: kernel termination snapshot being created
Apr 11 11:01:26 unknown SpringBoard[15] <Warning>: Application 'WebViewTest' exited abnormally with signal 9: Killed: 9
Apr 11 11:01:35 unknown ReportCrash[348] <Error>: Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2012-04-11-110135.plist using uid: 0 gid: 0, synthetic_euid: 0 egid: 0
But when I run same application on iPad having O.S version 4.3.3(iPad2) it runs perfectly. What is the reason behind this strange behavior & any solution to solve this. Thanks in advance.
your app is crashing because it ran out of memory.
Try using PDF format or PPS (power point slide show) format. That may take some lesser space.

Resources