2017-07-06 123 views
0

我收到了上述错误。我应用了thread以及one这个解决方案,但没有效果。是否有一些模块或类我想导入?任何帮助将不胜感激。Swift 3“线程1:信号SIGABRT”错误

Github上:https://github.com/joeavargas/BMI-Calc/tree/master/BMI%20Calc

夫特3/Xcode的8.3.3

error

从控制台错误:

2017年7月6日08:20:28.252 BMI计算值[61662: 12276419] *因未捕获异常'NSUnknownKeyException'而终止应用程序,原因:'[setValue:forUndefinedKey:]:此类不是密钥编码兼容的密钥。 *第一掷调用堆栈: ( 0的CoreFoundation 0x000000010df6eb0b exceptionPreprocess + 171 1 libobjc.A.dylib 0x000000010b2fe141 objc_exception_throw + 48 2的CoreFoundation 0x000000010df6ea59 - [NSException提高] + 9 3基础0x000000010ae1400b - [NSObject的(的NSKeyValueCoding)的setValue:forKey:] + 292 4的UIKit 0x000000010b96b994 - [UIViewController中的setValue:forKey:] + 87 5的UIKit 0x000000010bbd8a09 - [UIRuntimeOutletConnection连接] + 109 6的CoreFoundation 0x000000010df14e8d - [NSArray的makeObjectsPerformSelector:] + 269 7的UIKit 0x000000010bbd73bf - [ UINib实例化WithOwner:选择:] + 1856 8的UIKit 0x000000010b971fc3 - [UIViewController中_loadViewFromNibNamed:束:] + 381 9的UIKit 0x000000010b9728d9 - [UIViewController中的loadView] + 177 10的UIKit 0x000000010b972c0a - [UIViewController中loadViewIfRequired] + 195 11的UIKit 0x000000010b97345a - [UIViewController中查看] + 27 12的UIKit 0x000000010b83b98a - [一个UIWindow addRootViewControllerViewIfPossible] + 65 13的UIKit 0x000000010b83c070 - [一个UIWindow _setHidden:强制:] + 294 14的UIKit 0x000000010b84eebe - [一个UIWindow makeKeyAndVisible] + 42 15的UIKit 0x000000010b7c837f - [UIApplication的_callInitializationDelegatesForMainScene:transitionContext :] + 4346 16 UIKit 0x00000 0010b7ce5e4 - [UIApplication的_runWithMainScene:transitionContext:完成:] + 1709 17的UIKit 0x000000010b7cb7f3 - [UIApplication的workspaceDidEndTransaction:] + 182个 18 FrontBoardServices 0x000000010f67e5f6 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 24个 19 FrontBoardServices 0x000000010f67e46d - [FBSSerialQueue _performNext] + 186个 20 FrontBoardServices 0x000000010f67e7f6 - [ FBSSerialQueue _performNextFromRunLoopSource] + 45 21的CoreFoundation 0x000000010df14c01 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17 22的CoreFoundation 0x000000010defa0cf __CFRunLoopDoSources0 + 527 23的CoreFoundation 0x000000010def95ff __CFRunLoopRun + 911 24的CoreFoundation 0x000000010def9016 CFRunLoopRunSpecific + 406 25的UIKit 0x000000010b7ca08f - [UIApplication的_run] + 468 26的UIKit 0x000000010b7d0134 UIApplicationMain + 159 27 BMI计算值0x000000010ad246f7主+ 55 28 libdyld.dylib 0x000000010ef0e65d启动+ 1 ) 的libC++ ABI。dylib:与类型NSException的未捕获的异常 (LLDB)结束

+0

请您分享它在调试日志中说的内容 – penatheboss

+0

Interface Builder中很可能存在缺失或死亡连接。 – vadian

+0

从控制台添加了错误。对不起,延迟的答复...我工作夜班,我刚刚几分钟前醒了过来。 –

回答

0

最显著信息是

this class is not key value coding-compliant for the key mass.

  • 选择项目导航
  • 故事板或XIB文件选择视图控制器
  • 打开连接检查器(⌥⌘6
  • 删除连接到mass
+0

我看到两个大量连接作为一个选项来删除。我认为我删除了未在代码中声明/使用的那个? –