iOS9故事板"为变量设置空向量"异常 - 由于未捕获的异常'NSInternalInconsistencyException'而终止应用程序

Ale*_*one 1 exception objective-c uistoryboard ios9

我遇到了一个问题,我的主要故事板在我乱搞之后被破坏了,我得到了以下神秘的错误消息.该应用程序捕获错误,main()然后SIGABRT出现以下异常:

  Terminating app due to uncaught exception 'NSInternalInconsistencyException', 
reason: '{objective 0x147dc56e0: <1:-25.3333> + <1:1>*0x147dc39b0.posErrorMarker{id: 91} +
 <1:0.125>*0x147dc50e0.negError{id: 90} +
 <1:-0.125>*0x147e2e300.marker{id: 77} +
 <1:0.125>*0x147e2e300.slack{id: 78} +
 <1:0.125>*0x147e2e350.marker{id: 81} +
 <1:-1>*0x147e2e440.marker{id: 87} +
 <1:-0.125>*0x147e436b0.marker{id: 63} +
 <1:0.125>*0x147e437f0.marker{id: 72} +
 <1:-0.125>*0x147e764c0.marker{id: 55} +
 <1:0.125>*0x147e88820.marker{id: 52}}:
 internal error.  Setting empty vector for variable 0x147dc1b90.negError{id: 48}.'
Run Code Online (Sandbox Code Playgroud)

将另一个故事板设置为主界面可以正确启动应用程序.

如何找到导致"为变量设置空向量"故事板异常的元素?

Mat*_*ewS 10

如果它帮助其他人,我Setting empty vector for variable使用spacing未设置属性的UIStackView时出错.

不确定它是实际原因,还是只是一个奇怪的相关性,但将间距设置为非零值可以防止出现此错误.

  • 这是救星 (3认同)