iphone crash report doesn't show latest app's crash info - ios

I need to get crash report of my app on iphone 4s (ios 9.2.1), it crashes many times but crash report/logs doesn't show last crashes info, only old info, I make sync for iphone by iTunes many times but without success.
I'm working on Xcode 7.2.
What that mean ? or how can I get the latest crash logs ?

There is a crash logs limit, but it's about 150 or 200 logs. If you reached that number - just clean your logs.
Edit: to clean the logs, go to xcode -> window -> Devices -> then choose your device and press View Device Logs. There you can select all the logs and delete them.

Related

Why crash log couldn't be found

I have an app and under some circumstance the app crashes.It has crashed couple of times.But I am not able to find the crash log.
I opened Xcode -> Window -> Devices & Simulators ->View Device logs - The device
I am not seeing any crash logs over there for the Time it crashed.
Any ideas please
It has happened to me before.
Just delete the old crash logs and let the crash happen and you can easily find the crash log.
I would suggest you to use the following option to check for the crash logs in iOS device itself as its easy and quick to do.(depending on the OS version the below selection process will change)
Settings -> Privacy -> Diagnostic & Usage -> Diagnostic and Usage Data
Just connect the iOS device to a machine and sync it with iTunes then all the crash logs that you saw in Diagnostic and usage Data will not be there any more and it'll be in the machine.
Next time when the crash happens you can see the crash log
under Diagnostic and Usage Data
you can click on the any particular crash log and share it via mail
you can sync it with iTunes and find it in OSx at ~/Library/Logs/CrashReporter/MobileDevice/
you can go to Xcode->Devices and Simulators -> View Device Logs

Xcode isn't showing recent crash logs

On my phone I set Share With App Developers to On.
Settings > Privacy > Analytics > Share With App Developers > On
I printed a nil value to force a crash:
var x: String?
print(x!)
I saw the crash in the console but when I went to:
Window > Device and Simulators > myPhone > myApp's name > View Device Logs > Process > myApp's name
I only see my app's old crashes from Nov 2017 (nothing before or after). It's not showing any current crashes from my app but it shows all the current crashes from all my other apps like YouTube, Slack, Stack Overflow etc. The one where I just printed a nil value an hour ago isn't even appearing.
In Xcode I navigated to Crashes but it says No Crash Logs:
Windows > Organizer > Crashes > App Store > releaseInAppStore but nada
Why aren't my recent crash logs appearing?
My problem was I had the wrong operating system selected.
Make sure you have the correct OS selected for your app. In the top left of organizer is the drop down to select your app, apps are listed twice: for iOS and for Mac. If you have selected Mac (when your app is intended for iOS) crash logs won't show.

Looking for local crashlog when device was tethered to Xcode

Question:
When iOS device is tethered to Xcode and crashed after building (app loaded in, was not a crash ON build), where is the crash log saved to?
Here's my predicament with some context:
I pulled a user's crashlog of EXC_BAD_ACCESS for my app. I symbolicated and I've narrowed it down to get a rough idea but now I'm trying to re-create the issue via building in Xcode to my iOS device (not simulator). Normally the app does not crash on load in (this crash isn't easy to replicate) but I've been able to have the app crash consistently with Address Sanitizer enabled, and it always crashed and points to a line in a thread with an men address -- not anything I don't already have from previous debugging.
However, one time I had a crash occur where it highlighted what func was called as well as every func called in the stack trace and what file this was all occurring in. In haste I hit build again in Xcode before I saved the output however... and now I cannot replicate.
The crashlog wasn't saved locally to my iOS device as I was still tethered to Xcode, and I checked ~Library/Logs/CrashReporter/MobileDevice but that did not contain them either.
I need find where Xcode would've saved these logs on my mac (if it did at all)?
Typically all the crash dumps are stored in Settings -> Privacy -> Diagnostics & Usage -> Diagnostics & Usage Data
Scroll down the list and find the crash file with your app name.
This link might be helpful - https://developer.apple.com/library/content/qa/qa1747/_index.html

IOS App crashes, but there is no crash log available

I am starting my App from XCode and with a specific behaviour it just disconnects and the app disappears from my IPAD screens.
So I guess the app crashes.
Now my question. Where Do I get this crashlog ? I already looked into
Window -> Devices -> choose my Ipad -> "View Device Logs" . But I cant see any actual crash log. I have some from earlier times, but my actual doesn't show up.
How do I get a crashlog ?
check if you have enabled Share with app developers option in settings. Privacy -> Analytics -> Share with App Developers.Xcode was not showing crash logs, enabling this helped me
You need to look at the device console under windows, devices in Xcode.
Its possibly saying something about code signing, bundle id's or missing libraries.
Try to delete the crash logs from "earlier times".
You have maximum amount of saved crash logs, and if you passed it - you won't see the new crash logs

iOS7 xCode 5, how to get crash logs from a development build on device?

I playtested the game that I'm making on my development iPad, while it was not connected to xCode. There were 4 instances where the game just crashed/closed.
If I remember correctly, these crashes should create a crash report which can be visible in the Organizer>Devices>Device Logs. However, upon checking this, I see only 1 (instead of 4) reports, most of which are marked as "unknown".
Is there a way for me to refresh the device logs, or make sure that my device does keep logs of all crashes that happened while not connected to xCode?

Resources