Xcode 8.1 打包发布后 iOS9.3 以下版本闪退

2016-12-14 11:00:38 +08:00
 solon

1 , APP 在 Xcode8.1 直接安装到手机上各个版本跑都没有任何问题,发布到蒲公英, fir 上面在 iOS9.3 以下也没有任何问题,但是当我提交到 AppStore 以及用 testfight 安装到手机在 iOS9.3 以下的版本都会异常闪退,有没有人遇到同样的问题呀,求解,我在使用 Xcode7 发布没有遇到过这种问题。

2 , crash 日志如下:

出错堆栈

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    UIKit
-[UINibStringIDTable lookupKey:identifier:] + 132
2    UIKit
-[UINibDecoder decodeObjectForKey:] + 48
3    CoreFoundation
-[NSOrderedSet initWithCoder:] + 208
4    UIKit
_UINibDecoderDecodeObjectForValue + 672
5    UIKit
-[UINibDecoder decodeObjectForKey:] + 336
6    UIKit
-[_UIRelationshipTraitStorage initWithCoder:] + 100
7    UIKit
_UINibDecoderDecodeObjectForValue + 672
8    UIKit
_UINibDecoderDecodeObjectForValue + 1048
9    UIKit
-[UINibDecoder decodeObjectForKey:] + 336
10    UIKit
-[_UITraitStorageList initWithCoder:] + 164
11    UIKit
_UINibDecoderDecodeObjectForValue + 672
12    UIKit
_UINibDecoderDecodeObjectForValue + 1048
13    UIKit
-[UINibDecoder decodeObjectForKey:] + 336
14    UIKit
-[UINib instantiateWithOwner:options:] + 1416
15    UIKit
-[UIViewController _loadViewFromNibNamed:bundle:] + 376
16    UIKit
-[UIViewController loadView] + 176
17    UIKit
-[UIViewController loadViewIfRequired] + 144
18    UIKit
-[UINavigationController _layoutViewController:] + 72
19    UIKit
-[UINavigationController _updateScrollViewFromViewController:toViewController:] + 416



出错堆栈
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
5743 次点击
所在节点    iPhone
5 条回复
lavzchen
2016-12-14 13:26:13 +08:00
开启了 bitcode ?
solon
2016-12-14 16:15:05 +08:00
@lavzchen 没有不过我找到了一个类似的问题 http://stackoverflow.com/questions/39404285/xcode-8-build-crash-on-ios-9-2-and-below
我现在升级 Xcode8.2 看看能不能解决
finab
2016-12-14 16:29:56 +08:00
权限 设置了没? 在 info 文件里
solon
2016-12-14 16:48:46 +08:00
@finab 升级 Xcode 8 我把该加的权限全都加了,如果没有加权限审核也难通过呀。
sunvb
2017-01-17 15:09:52 +08:00
解决了没,我也遇到这样的问题了,可以提供一下思路吗

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/327527

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX