我收到了上述错误。我已应用此thread以及one的以下解决方案,但无济于事。我想要导入一些模块或类吗?任何帮助将不胜感激。
Github:https://github.com/joeavargas/BMI-Calc/tree/master/BMI%20Calc
Swift 3 / Xcode 8.3.3
控制台出错:
2017-07-06 08:20:28.252 BMI Calc [61662:12276419] *由于未捕获的异常'NSUnknownKeyException'终止应用程序,原因:'[setValue:forUndefinedKey:]:此类不是键值符合编码标准的关键质量。 * 第一次抛出调用堆栈: ( 0 CoreFoundation 0x000000010df6eb0b exceptionPreprocess + 171 1 libobjc.A.dylib 0x000000010b2fe141 objc_exception_throw + 48 2 CoreFoundation 0x000000010df6ea59 - [NSException raise] + 9 3基础0x000000010ae1400b - [NSObject(NSKeyValueCoding)setValue:forKey:] + 292 4 UIKit 0x000000010b96b994 - [UIViewController setValue:forKey:] + 87 5 UIKit 0x000000010bbd8a09 - [UIRuntimeOutletConnection connect] + 109 6 CoreFoundation 0x000000010df14e8d - [NSArray makeObjectsPerformSelector:] + 269 7 UIKit 0x000000010bbd73bf - [UINib instantiateWithOwner:options:] + 1856 8 UIKit 0x000000010b971fc3 - [UIViewController _loadViewFromNibNamed:bundle:] + 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:forced:] + 294 14 UIKit 0x000000010b84eebe - [UIWindow makeKeyAndVisible] + 42 15 UIKit 0x000000010b7c837f - [UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4346 16 UIKit 0x000000010b7ce5e4 - [UIApplication _runWithMainScene:transitionContext:completion:] + 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 Calc 0x000000010ad246f7 main + 55 28 libdyld.dylib 0x000000010ef0e65d start + 1 ) libc ++ abi.dylib:以NSException类型的未捕获异常终止 (lldb)
答案 0 :(得分:0)
最重要的信息是
此类不是键值质量符合键值编码。
mass