BWToolkit 包含崩溃

发布于 2024-08-28 06:25:13 字数 3401 浏览 6 评论 0原文

大家好,我正在使用最新版本的 XCode (3.2.2),并且我已经使用教程链接了框架。我正在构建我的应用程序并对其进行测试,并且在解码时遇到 BWToolkit 异常。

我已将框架包含在框架中并将其添加到复制文件阶段。

我什至创建了一个新的虚拟应用程序,包括框架并将其添加到复制文件阶段,当我尝试运行时它仍然崩溃。

有什么想法吗?我需要将其包含在应用程序中的某个位置吗?我担心我忽略了一些非常简单的事情。

2010-04-13 14:14:24.540 BWTestFramework[7504:a0f] An uncaught exception was raised
2010-04-13 14:14:24.543 BWTestFramework[7504:a0f] *** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (BWSplitView)
2010-04-13 14:14:24.545 BWTestFramework[7504:a0f] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: '*** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (BWSplitView)'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x00007fff84a77d24 __exceptionPreprocess + 180
    1   libobjc.A.dylib                     0x00007fff82ba00f3 objc_exception_throw + 45
    2   CoreFoundation                      0x00007fff84a77b47 +[NSException raise:format:arguments:] + 103
    3   CoreFoundation                      0x00007fff84a77ad4 +[NSException raise:format:] + 148
    4   Foundation                          0x00007fff83804aa6 _decodeObjectBinary + 2427
    5   Foundation                          0x00007fff83805825 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1229
    6   Foundation                          0x00007fff83805d65 -[NSArray(NSArray) initWithCoder:] + 462
    7   Foundation                          0x00007fff83804b1f _decodeObjectBinary + 2548
    8   Foundation                          0x00007fff83803f99 _decodeObject + 208
    9   AppKit                              0x00007fff8069fbfb -[NSView initWithCoder:] + 362
    10  Foundation                          0x00007fff83804b1f _decodeObjectBinary + 2548
    11  Foundation                          0x00007fff83803f99 _decodeObject + 208
    12  AppKit                              0x00007fff806adfbb -[NSWindowTemplate initWithCoder:] + 3824
    13  Foundation                          0x00007fff83804b1f _decodeObjectBinary + 2548
    14  Foundation                          0x00007fff83805825 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1229
    15  Foundation                          0x00007fff83805268 -[NSSet(NSSet) initWithCoder:] + 447
    16  Foundation                          0x00007fff83804b1f _decodeObjectBinary + 2548
    17  Foundation                          0x00007fff83803f99 _decodeObject + 208
    18  AppKit                              0x00007fff8062fcde -[NSIBObjectData initWithCoder:] + 1983
    19  Foundation                          0x00007fff83804b1f _decodeObjectBinary + 2548
    20  Foundation                          0x00007fff83803f99 _decodeObject + 208
    21  AppKit                              0x00007fff8062f40d loadNib + 146
    22  AppKit                              0x00007fff8062e96d +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 248
    23  AppKit                              0x00007fff8062e7a5 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 326
    24  AppKit                              0x00007fff8062bd27 NSApplicationMain + 279
    25  BWTestFramework                     0x0000000100001891 main + 33
    26  BWTestFramework                     0x0000000100001868 start + 52
)
terminate called after throwing an instance of 'NSException'

这就是崩溃报告

Hey guys I'm using the latest version of XCode (3.2.2) and I've linked the framework using the tutorial. I was building my app and tested it and I get a BWToolkit exception on decoding.

I've included the Framework in the frameworks and added it to the copy files stage.

I even created a new dummy app including the framework and adding it to the copy files stage and it still crashes when I try to run.

Any ideas? Do I need to include it somewhere in the app? I'm worried I've overlooked something really simple.

2010-04-13 14:14:24.540 BWTestFramework[7504:a0f] An uncaught exception was raised
2010-04-13 14:14:24.543 BWTestFramework[7504:a0f] *** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (BWSplitView)
2010-04-13 14:14:24.545 BWTestFramework[7504:a0f] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: '*** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (BWSplitView)'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x00007fff84a77d24 __exceptionPreprocess + 180
    1   libobjc.A.dylib                     0x00007fff82ba00f3 objc_exception_throw + 45
    2   CoreFoundation                      0x00007fff84a77b47 +[NSException raise:format:arguments:] + 103
    3   CoreFoundation                      0x00007fff84a77ad4 +[NSException raise:format:] + 148
    4   Foundation                          0x00007fff83804aa6 _decodeObjectBinary + 2427
    5   Foundation                          0x00007fff83805825 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1229
    6   Foundation                          0x00007fff83805d65 -[NSArray(NSArray) initWithCoder:] + 462
    7   Foundation                          0x00007fff83804b1f _decodeObjectBinary + 2548
    8   Foundation                          0x00007fff83803f99 _decodeObject + 208
    9   AppKit                              0x00007fff8069fbfb -[NSView initWithCoder:] + 362
    10  Foundation                          0x00007fff83804b1f _decodeObjectBinary + 2548
    11  Foundation                          0x00007fff83803f99 _decodeObject + 208
    12  AppKit                              0x00007fff806adfbb -[NSWindowTemplate initWithCoder:] + 3824
    13  Foundation                          0x00007fff83804b1f _decodeObjectBinary + 2548
    14  Foundation                          0x00007fff83805825 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1229
    15  Foundation                          0x00007fff83805268 -[NSSet(NSSet) initWithCoder:] + 447
    16  Foundation                          0x00007fff83804b1f _decodeObjectBinary + 2548
    17  Foundation                          0x00007fff83803f99 _decodeObject + 208
    18  AppKit                              0x00007fff8062fcde -[NSIBObjectData initWithCoder:] + 1983
    19  Foundation                          0x00007fff83804b1f _decodeObjectBinary + 2548
    20  Foundation                          0x00007fff83803f99 _decodeObject + 208
    21  AppKit                              0x00007fff8062f40d loadNib + 146
    22  AppKit                              0x00007fff8062e96d +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 248
    23  AppKit                              0x00007fff8062e7a5 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 326
    24  AppKit                              0x00007fff8062bd27 NSApplicationMain + 279
    25  BWTestFramework                     0x0000000100001891 main + 33
    26  BWTestFramework                     0x0000000100001868 start + 52
)
terminate called after throwing an instance of 'NSException'

That's the crash report

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一曲爱恨情仇 2024-09-04 06:25:13

好吧,我找到了解决方案,或者至少让它在最新的 Xcode 下工作,我将框架复制到目标上,并将项目链接到框架并加载。

所以我将它添加到“复制文件”和“链接二进制文件与库”中

Okay I figured out the solution, or at least got it to a point where it works under the latest Xcode, I copy the framework on target and I also link the project against the framework and it loads.

So I add it to both: "Copy Files" and "Link Binary with Library"

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文