Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

enter image description here

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?

like image 772
Lance Samaria Avatar asked Jun 05 '18 20:06

Lance Samaria


People also ask

How do I view Mac crash logs?

You can access the crash log in macOS in two ways: Launch Finder, press Command + Shift + G, and type ~/Library/Logs/DiagnosticReports/ in the Go to Folder dialog box. Launch Console, and look for Diagnostic Reports located under ~/Library/Logs/.


1 Answers

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.

like image 97
JCutting8 Avatar answered Oct 08 '22 06:10

JCutting8