APP在Xcode8.1上直接安装在手机上运行的所有版本都没有任何问题,发布.ipa到第三方平台安装,在iOS9.3以下没有任何问题,但是当我提交的时候在iOS9.3中将AppStore和testfight安装到手机上以下版本将是异常闪回,任何一个遇到同样问题呀,求解,我在使用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
答案 0 :(得分:1)
ObjC运行时和/或自动释放操作中的崩溃几乎总是一个悬空指针。
我非常怀疑这与环境有关。更像是,只有在正常开发过程中没有看到的代码路径/边缘情况。我从NSZombies开始,这可能非常有用。
我还建议您查看Crashlytics崩溃中的奇怪无法识别的选择器崩溃或运行时代码中的其他内容。它们都可能与相同的根本原因有关。