小编Car*_*arl的帖子

iOS 9上的自动布局崩溃,禁用了自动布局

我知道这是一个通用的问题,但我希望有类似经历的人可能知道可能发生的事情.

我在仅限 iPad的应用程序中仅在iOS 9上发生崩溃.它说NSInternalInconsistencyException.

它出现在纵向和横向模式以及许多iPad代(iPad 2,iPad Pro,iPad 4,......)上.

我没有在项目中的任何位置启用自动布局,但它看起来像是自动布局问题.

它很难复制,所以我无法在Xcode上调试它,但我看到有关崩溃分析服务"Crashlytics"的报告.这是来自Crashlytics的堆栈跟踪:

Auto layout internal error. Cannot find an outgoing row 
head for incoming head <unknown var (bug!) with engine as delegate[...]

Thread : Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x23d4568b __exceptionPreprocess
1  libobjc.A.dylib                0x356c2e17 objc_exception_throw
2  CoreFoundation                 0x23d455d1 -[NSException initWithCoder:]
3  Foundation                     0x24a873b3 -[NSISEngine minimizeConstantInObjectiveRowWithHead:]
4  Foundation                     0x24a86e4d -[NSISEngine optimize]
5  Foundation                     0x24a82a53 -[NSISEngine withBehaviors:performModifications:]
6  UIKit                          0x27e040bb -[UIView(Hierarchy) _postMovedFromSuperview:]
7  UIKit                          0x280fb227 __UIViewWasRemovedFromSuperview
8  UIKit …
Run Code Online (Sandbox Code Playgroud)

objective-c ipad ios autolayout crashlytics

5
推荐指数
1
解决办法
740
查看次数

标签 统计

autolayout ×1

crashlytics ×1

ios ×1

ipad ×1

objective-c ×1