0

APP在Xcode8.1直接安装在手机上运行所有版本都没有问题,贴.ipa到第三方平台安装,在iOS9.3以下没有任何问题,但是当我提交到AppStore和testfight在iOS9.3安装到手机下面版本会出现异常闪退,有谁遇到过同样的问题呀,解决了,我在使用Xcode7发布的时候还没有遇到过这个问题。

谁能告诉我如何能够追踪到这个?

我在 Crashlytics 中遇到如下所示的崩溃。

0 libobjc.A.dylib   objc_msgSend + 28
1 libobjc.A.dylib   (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 508
2 FrontBoardServices    -[FBSSerialQueue _performNext] + 192
3 FrontBoardServices    -[FBSSerialQueue _performNextFromRunLoopSource] + 56
4 CoreFoundation    ___CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
5 CoreFoundation    ___CFRunLoopDoSources0 + 540
6 CoreFoundation    ___CFRunLoopRun + 724
7 CoreFoundation    CFRunLoopRunSpecific + 384
8 UIKit -[UIApplication _run] + 460
9 UIKit UIApplicationMain + 204
10 huxijia  main (main.m:14)
11 libdyld.dylib    _start + 4



0   libobjc.A.dylib
objc_msgSend + 28
1   CoreFoundation
CFEqual + 340
2   CoreFoundation
___NSCacheKeyEqual + 12
3   libcache.dylib
__entry_get_optionally_checking_collisions + 164
4   libcache.dylib
cache_get_and_retain + 132
5   CoreFoundation
-[NSCache objectForKey:] + 68
6   CoreUI
-[CUIStructuredThemeStore _canGetRenditionWithKey:isFPO:lookForSubstitutions:] + 360
7   CoreUI
-[CUICatalog _resolvedRenditionKeyFromThemeRef:withBaseKey:scaleFactor:deviceIdiom:deviceSubtype:sizeClassHorizontal:sizeClassVertical:memoryClass:graphicsClass:graphicsFallBackOrder:] + 1416
8   CoreUI
-[CUICatalog namedLookupWithName:scaleFactor:deviceIdiom:deviceSubtype:sizeClassHorizontal:sizeClassVertical:] + 148
9   UIKit
___98-[_UIAssetManager imageNamed:scale:idiom:subtype:cachingOptions:sizeClassPair:attachCatalogImage:]_block_invoke + 424
10  UIKit
-[_UIAssetManager imageNamed:scale:idiom:subtype:cachingOptions:sizeClassPair:attachCatalogImage:] + 212
11  UIKit
-[_UIAssetManager imageNamed:withTrait:] + 528
12  UIKit
__UIImageWithNameAndTraitCollection + 96
13  UIKit
+[UIImage(UIImagePrivate) _kitImageNamed:withTrait:] + 36
14  UIKit
_CreateScrollIndicator + 260
15  UIKit
-[UIScrollView _adjustScrollerIndicators:alwaysShowingThem:] + 200
16  UIKit
-[UIScrollView setContentOffset:] + 524
17  UIKit
-[UITableView setContentOffset:] + 300
18  UIKit
-[UIPickerTableView _setContentOffset:notify:] + 100
19  UIKit
-[UIScrollView(UIScrollViewInternal) _adjustContentOffsetIfNecessary] + 60


0   libobjc.A.dylib
objc_msgSend + 28
1   libcache.dylib
__entry_get_optionally_checking_collisions + 52
2   libcache.dylib
__entry_table_resize + 308
3   libcache.dylib
cache_set_and_retain + 852
4   CoreFoundation
-[NSCache setObject:forKey:cost:] + 268
5   CoreUI
-[CUIStructuredThemeStore _canGetRenditionWithKey:isFPO:lookForSubstitutions:] + 860
6   CoreUI
-[CUICatalog _resolvedRenditionKeyFromThemeRef:withBaseKey:scaleFactor:deviceIdiom:deviceSubtype:sizeClassHorizontal:sizeClassVertical:memoryClass:graphicsClass:graphicsFallBackOrder:] + 924
7   CoreUI
-[CUICatalog namedLookupWithName:scaleFactor:deviceIdiom:deviceSubtype:sizeClassHorizontal:sizeClassVertical:] + 148
8   UIKit
___98-[_UIAssetManager imageNamed:scale:idiom:subtype:cachingOptions:sizeClassPair:attachCatalogImage:]_block_invoke + 424
9   UIKit
-[_UIAssetManager imageNamed:scale:idiom:subtype:cachingOptions:sizeClassPair:attachCatalogImage:] + 260
10  UIKit
-[UIImageAsset imageWithTraitCollection:] + 404
11  UIKit
-[UIImageView _resolveImageForTrait:] + 460
12  UIKit
-[UIImageView _didMoveFromWindow:toWindow:] + 212
13  UIKit
-[UIView(Internal) _didMoveFromWindow:toWindow:] + 760
14  UIKit
-[UIActivityIndicatorView _didMoveFromWindow:toWindow:] + 196
15  UIKit
-[UIView(Internal) _didMoveFromWindow:toWindow:] + 760
16  UIKit
-[UIView(Internal) _didMoveFromWindow:toWindow:] + 760
17  UIKit
-[UIView(Internal) _didMoveFromWindow:toWindow:] + 760
18  UIKit
___45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 152
19  UIKit
-[UIView(Hierarchy) _postMovedFromSuperview:] + 504
4

1 回答 1

1

ObjC 运行时和/或自动释放操作中的崩溃几乎总是一个悬空指针。

我非常怀疑这与环境有关。更像是,只有一个代码路径/边缘案例,您在正常开发过程中看不到。我会从 NSZombies 开始,这真的很有帮助。

I'd also recommend looking through your Crashlytics crashes for strange unrecognized selector crashes, or other things in runtime code. They could all potentially be related to the same underlying root cause.

于 2016-12-16T18:23:08.853 回答