swift – 无法解码类的对象(AMPathPopUpButton)’

swift – 无法解码类的对象(AMPathPopUpButton)’,第1张

概述我是 Swift的新手,我正在使用xCode 6 Beta 5.我的问题是我遇到了编译器错误: “Terminating app due to uncaught exception ‘NSInvalidUnarchiveOperationException’, reason: ‘* -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode ob 我是 Swift的新手,我正在使用xCode 6 Beta 5.我的问题是我遇到了编译器错误:

“Terminating app due to uncaught exception
‘NSInvalIDUnarchiveOperationException’,reason: ‘*
-[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (AMPathPopUpbutton)'”

将AMPathPopUpbutton添加到我的应用程序UI时.任何人都可以帮忙?

2014-08-17 22:17:39.285 fileSize[6633:303] An uncaught exception was raised2014-08-17 22:17:39.286 fileSize[6633:303] *** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (AMPathPopUpbutton)2014-08-17 22:17:39.286 fileSize[6633:303] (    0   CoreFoundation                      0x00007fff8f33025c __exceptionPreprocess + 172    1   libobjc.A.dylib                     0x00007fff93c06e75 objc_exception_throw + 43    2   CoreFoundation                      0x00007fff8f33010c +[NSException raise:format:] + 204    3   Foundation                          0x00007fff97fe0dd9 _decodeObjectBinary + 2349    4   Foundation                          0x00007fff97fe1f9f -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1774    5   Foundation                          0x00007fff97fe219b -[NSArray(NSArray) initWithCoder:] + 202    6   Foundation                          0x00007fff97fe0e92 _decodeObjectBinary + 2534    7   Foundation                          0x00007fff97fe034d _decodeObject + 288    8   AppKit                              0x00007fff98a885ac -[NSVIEw initWithCoder:] + 1949    9   Foundation                          0x00007fff97fe0e92 _decodeObjectBinary + 2534    10  Foundation                          0x00007fff97fe034d _decodeObject + 288    11  AppKit                              0x00007fff98a8e438 -[NSWindowTemplate initWithCoder:] + 1043    12  Foundation                          0x00007fff97fe0e92 _decodeObjectBinary + 2534    13  Foundation                          0x00007fff97fe1f9f -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1774    14  Foundation                          0x00007fff97fe15d7 -[NSSet(NSSet) initWithCoder:] + 203    15  Foundation                          0x00007fff97fe0e92 _decodeObjectBinary + 2534    16  Foundation                          0x00007fff97fe034d _decodeObject + 288    17  AppKit                              0x00007fff98a60750 -[NSIBObjectData initWithCoder:] + 155    18  Foundation                          0x00007fff97fe0e92 _decodeObjectBinary + 2534    19  Foundation                          0x00007fff97fe034d _decodeObject + 288    20  AppKit                              0x00007fff98a6056f loadNib + 232    21  AppKit                              0x00007fff98a5fb6c +[NSBundle(NSNibLoading) _loadNibfile:nametable:withZone:ownerBundle:] + 288    22  AppKit                              0x00007fff98a5f95c -[NSBundle(NSNibLoading) loadNibnamed:owner:topLevelObjects:] + 197    23  AppKit                              0x00007fff98a5f74b +[NSBundle(NSNibLoading) loadNibnamed:owner:] + 357    24  AppKit                              0x00007fff98a5b597 NSApplicationMain + 448    25  fileSize                            0x0000000100008f32 top_level_code + 34    26  fileSize                            0x0000000100008f6a main + 42    27  libdyld.dylib                       0x00007fff8ff585fd start + 1)2014-08-17 22:17:39.303 fileSize[6633:303] *** Terminating app due to uncaught exception 'NSInvalIDUnarchiveOperationException',reason: '*** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (AMPathPopUpbutton)'*** First throw call stack:(    0   CoreFoundation                      0x00007fff8f33025c __exceptionPreprocess + 172    1   libobjc.A.dylib                     0x00007fff93c06e75 objc_exception_throw + 43    2   CoreFoundation                      0x00007fff8f33010c +[NSException raise:format:] + 204    3   Foundation                          0x00007fff97fe0dd9 _decodeObjectBinary + 2349    4   Foundation                          0x00007fff97fe1f9f -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1774    5   Foundation                          0x00007fff97fe219b -[NSArray(NSArray) initWithCoder:] + 202    6   Foundation                          0x00007fff97fe0e92 _decodeObjectBinary + 2534    7   Foundation                          0x00007fff97fe034d _decodeObject + 288    8   AppKit                              0x00007fff98a885ac -[NSVIEw initWithCoder:] + 1949    9   Foundation                          0x00007fff97fe0e92 _decodeObjectBinary + 2534    10  Foundation                          0x00007fff97fe034d _decodeObject + 288    11  AppKit                              0x00007fff98a8e438 -[NSWindowTemplate initWithCoder:] + 1043    12  Foundation                          0x00007fff97fe0e92 _decodeObjectBinary + 2534    13  Foundation                          0x00007fff97fe1f9f -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1774    14  Foundation                          0x00007fff97fe15d7 -[NSSet(NSSet) initWithCoder:] + 203    15  Foundation                          0x00007fff97fe0e92 _decodeObjectBinary + 2534    16  Foundation                          0x00007fff97fe034d _decodeObject + 288    17  AppKit                              0x00007fff98a60750 -[NSIBObjectData initWithCoder:] + 155    18  Foundation                          0x00007fff97fe0e92 _decodeObjectBinary + 2534    19  Foundation                          0x00007fff97fe034d _decodeObject + 288    20  AppKit                              0x00007fff98a6056f loadNib + 232    21  AppKit                              0x00007fff98a5fb6c +[NSBundle(NSNibLoading) _loadNibfile:nametable:withZone:ownerBundle:] + 288    22  AppKit                              0x00007fff98a5f95c -[NSBundle(NSNibLoading) loadNibnamed:owner:topLevelObjects:] + 197    23  AppKit                              0x00007fff98a5f74b +[NSBundle(NSNibLoading) loadNibnamed:owner:] + 357    24  AppKit                              0x00007fff98a5b597 NSApplicationMain + 448    25  fileSize                            0x0000000100008f32 top_level_code + 34    26  fileSize                            0x0000000100008f6a main + 42    27  libdyld.dylib                       0x00007fff8ff585fd start + 1)libc++abi.dylib: terminating with uncaught exception of type NSException
解决方法 问题解决了,我刚刚在linked Frameworks和librarIEs中添加了框架参考“automator.framework”(在项目General选项卡中).详见附件 ** 总结

以上是内存溢出为你收集整理的swift – 无法解码类的对象(AMPathPopUpButton)’全部内容,希望文章能够帮你解决swift – 无法解码类的对象(AMPathPopUpButton)’所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/999732.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-21
下一篇 2022-05-21

发表评论

登录后才能评论

评论列表(0条)

保存