iPhone应用程序不会生成崩溃报告(iPhone app doesn't build cr

2019-10-21 06:47发布

My app formerly created useful crash logs. I synced my iPhone in the past and found crash logs in library/logs/CrashReporter

About a month ago, my app stopped creating crash reports. When I first discovered this problem, I assumed it was due to memory corruption (a possibility in my app).

I just created a new project and added a crash to it.

// Implement viewDidLoad to do additional setup after loading the view, 
// typically from a nib.
- (void)viewDidLoad {
NSMutableArray *array = [[NSMutableArray alloc] init];
[array removeObjectAtIndex:-1];

  [super viewDidLoad];
}

This app does not create a crash report either.

Ideas I've started to explore:

  1. My phone is corrupted (tried restoring - somehow I brought it to the state from a few months ago)
  2. My XCode is corrupt (tried reinstalling, but current download demands Snow Leopard - and I can't upgrade to Snow Leopard online). This seems possible - I may have messed with device support around a month ago (similar to Does iPhone OS 3.0.1 ruin your development phone? )
  3. The location for crash logs has somehow moved.

Suggestions?

Answer 1:

你有没有在Xcode的组织者看? 按Ctrl-Command-O键

在那里,你会发现所有设备的日志



文章来源: iPhone app doesn't build crash reports
标签: iphone xcode