无法解码类的对象 (AMPathPopUpButton)' [英] cannot decode object of class (AMPathPopUpButton)'

查看:22
本文介绍了无法解码类的对象 (AMPathPopUpButton)'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Swift 的新手,我正在使用 xCode 6 Beta 5.我的问题是我收到编译器错误:

I'm new to Swift and I'm using xCode 6 Beta 5. My issue is I'm getting compiler error:

由于未捕获的异常而终止应用程序'NSInvalidUnarchiveOperationException',原因:'*-[NSKeyedUnarchiver decodeObjectForKey:]: 无法解码类的对象 (AMPathPopUpButton)'"

"Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: '* -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (AMPathPopUpButton)'"

AMPathPopUpButton 添加到我的应用程序 UI 时.有人可以帮忙吗??

when adding AMPathPopUpButton to my application UI. Any one can help??

2014-08-17 22:17:39.285 FileSize[6633:303] An uncaught exception was raised
2014-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 and Libraries(在项目 General Tab 中)添加了框架引用Automator.framework".详见附件 **

problem solved and I just added framework reference "Automator.framework" in Linked Frameworks and Libraries (in project General Tab). see attachment **

这篇关于无法解码类的对象 (AMPathPopUpButton)'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆