分享

IOS允许没法点击报错,Terminating app due to uncaught exception ''''NSUnknownKeyException'''', reason: ''''[<UIApplication 0x8a58320> setValue:forU...

 实力决定地位 2017-10-27 发布于北京
  1. <span style="font-size: 18px;">014-04-02 10:32:53.264 myTest01[751:70b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIApplication 0x8a58320> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key view.'
  2. *** First throw call stack:
  3. (
  4. 0 CoreFoundation 0x017345e4 __exceptionPreprocess + 180
  5. 1 libobjc.A.dylib 0x014b78b6 objc_exception_throw + 44
  6. 2 CoreFoundation 0x017c46a1 -[NSException raise] + 17
  7. 3 Foundation 0x01178c2e -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 282
  8. 4 Foundation 0x010e4f3b _NSSetUsingKeyValueSetter + 88
  9. 5 Foundation 0x010e4493 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 267
  10. 6 Foundation 0x0114694a -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 412
  11. 7 UIKit 0x004cbcd5 -[UIRuntimeOutletConnection connect] + 106
  12. 8 libobjc.A.dylib 0x014c97d2 -[NSObject performSelector:] + 62
  13. 9 CoreFoundation 0x0172fb6a -[NSArray makeObjectsPerformSelector:] + 314
  14. 10 UIKit 0x004ca82e -[UINib instantiateWithOwner:options:] + 1417
  15. 11 UIKit 0x004cc5bb -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 165
  16. 12 UIKit 0x00229fcb -[UIApplication _loadMainNibFileNamed:bundle:] + 58
  17. 13 UIKit 0x0022a2f9 -[UIApplication _loadMainInterfaceFile] + 245
  18. 14 UIKit 0x00228e9f -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 543
  19. 15 UIKit 0x0023d42c -[UIApplication handleEvent:withNewEvent:] + 3447
  20. 16 UIKit 0x0023d999 -[UIApplication sendEvent:] + 85
  21. 17 UIKit 0x0022ac35 _UIApplicationHandleEvent + 736
  22. 18 GraphicsServices 0x036d72eb _PurpleEventCallback + 776
  23. 19 GraphicsServices 0x036d6df6 PurpleEventCallback + 46
  24. 20 CoreFoundation 0x016afdd5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
  25. 21 CoreFoundation 0x016afb0b __CFRunLoopDoSource1 + 523
  26. 22 CoreFoundation 0x016da7ec __CFRunLoopRun + 2156
  27. 23 CoreFoundation 0x016d9b33 CFRunLoopRunSpecific + 467
  28. 24 CoreFoundation 0x016d994b CFRunLoopRunInMode + 123
  29. 25 UIKit 0x002286ed -[UIApplication _run] + 840
  30. 26 UIKit 0x0022a94b UIApplicationMain + 1225
  31. 27 myTest01 0x0000305d main + 141
  32. 28 libdyld.dylib 0x01d72701 start + 1
  33. 29 ??? 0x00000001 0x0 + 1
  34. )
  35. libc++abi.dylib: terminating with uncaught exception of type NSException</span>


    ​以上是我的相关错误消息:

    ​解决办法如下:
     

    网上有很多解决这个问题的方案,尝试了很多都没用。让后发现在*.plist文件里面有个Main nib file base name,把这个去掉就可以了

     

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多