Nei*_*Net 6 crash objective-c ios libobjc
我在Crashlytics中得到了如下所示的崩溃.
我无法理解应用程序中的这个形式.不幸的是,我自己从来没有能够产生这种崩溃,但它是在野外发生的.
应用程序名称只有一个引用,并且没有任何内容可以显示应用程序的来源.
事实上,没有关于应用程序在何处发生的数据,这表明在didFinishLaunchingWithOptions期间发生了一个问题,因此实际上没有足够的距离显示任何进一步的细节?或者是否有其他原因导致数据中缺少日志以显示问题所在?
任何人都可以建议我如何追踪这个?
Thread : Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x0000000195de3bd0 objc_msgSend + 16
1 CoreFoundation 0x0000000183fd9458 CFRelease + 524
2 CoreFoundation 0x0000000183fe5a18 -[__NSArrayM dealloc] + 152
3 libobjc.A.dylib 0x0000000195de9724 (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 564
4 CoreFoundation 0x0000000183fdd074 _CFAutoreleasePoolPop + 28
5 Foundation 0x0000000184f0e588 -[NSAutoreleasePool release] + 148
6 UIKit 0x0000000188be03f4 -[UIApplication _run] + 588
7 UIKit 0x0000000188bdaf40 UIApplicationMain + 1488
8 _THE_APP_NAME_ 0x0000000100031e20 main (main.m:16)
9 libdyld.dylib 0x000000019647aa08 start + 4
Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x00000000f5b2beb8
Run Code Online (Sandbox Code Playgroud)
我在这个帖子的评论中添加以下内容.此代码是与UI相关的主要更改,除了通常的标签设置等,我无法看到问题.
下面的代码被添加到AppDelegate.m,DidFinishLaunchingWithOptions.
我想知道,因为崩溃不是我能够重新制作的东西,而且每天发生的事情只是在极少数情况下,如果它可能是一个时间问题,并且UI无法接收消息.
我欢迎任何想法,如果您同意,我应该改为将代码移到ViewController中的ViewDidLoad.
[[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
[UIColor lightGrayColor], NSForegroundColorAttributeName,
[UIFont fontWithName:@"Helvetica Neue" size:16],
NSFontAttributeName, nil] forState:UIControlStateNormal];
[[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
[UIColor darkGrayColor], NSForegroundColorAttributeName,
[UIFont fontWithName:@"Helvetica Neue" size:16],
NSFontAttributeName,
nil] forState:UIControlStateSelected];
[[UITabBar appearance] setBarTintColor:[UIColor colorWithRed:0.44 green:0.99 blue:0.45 alpha:1]];
[[UINavigationBar appearance] setBarTintColor:[UIColor colorWithRed:0.44 green:0.99 blue:0.45 alpha:1]];
[[UINavigationBar appearance] setTintColor:[UIColor darkGrayColor]];
[[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor darkGrayColor], NSFontAttributeName : [UIFont fontWithName:@"Helvetica Neue" size:22]}];
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
Run Code Online (Sandbox Code Playgroud)
在对代码进行大量搜索后,我偶然发现了另一篇关于objc_msgSend [__NSArrayM dealloc] 崩溃报告的帖子,有时来自 Crashlytics。
Crashlytics 似乎在 3.0.9 中有一个错误,并且是导致此问题的原因。
更新了 SDK,现在一切正常。
| 归档时间: |
|
| 查看次数: |
11830 次 |
| 最近记录: |