This message will only appear once per execution---xib、或者storyBoard关联出错

invalid mode ‘kCFRunLoopCommonModes’ provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.

问题解决办法:

  • Xcode7以前storyboard关联出错,都会明确提示哪里找不到,到了Xcode8以后就变成这种形式的报错,刚开始遇到时让人一头雾水。以后再遇到,检查一下IBOutlet或者segue identifier就可以了。
  • 数组插入空值
  • 用VFL写约束格式不正确
  • 给 objectAtIndex 传了 -1 也会报这个错
  • 字典里插了nil值,也报了这个错误。
  • 有时候直接clean一下就好了。
  • tableview中的数据为空,但是你从数组中取值了。(数组越界时,你用了xib,也会报这个错误)

猜你喜欢

转载自blog.csdn.net/liyunxiangrxm/article/details/80732010