2010-04-13 5 views
0

Hé les gars, j'utilise la dernière version de XCode (3.2.2) et j'ai lié le framework en utilisant le tutoriel. Je construisais mon application et l'ai testée et j'obtiens une exception de BWToolkit sur le décodage.BWToolkit inclusion crash

J'ai inclus le Framework dans les frameworks et je l'ai ajouté à l'étape de copie de fichiers.

J'ai même créé une nouvelle application fictive incluant le framework et l'ajoutant à l'étape des fichiers de copie et elle se bloque toujours lorsque j'essaie de fonctionner.

Des idées? Ai-je besoin de l'inclure quelque part dans l'application? Je suis inquiet d'avoir oublié quelque chose de vraiment 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' 

C'est le rapport d'accident

+2

après le rapport d'accident! – Yuji

+0

Rapport d'accident posté, des idées? – Schroedinger

Répondre

1

Ok je me suis dit la solution, ou tout au moins eu à un point où il travaille sous la dernière Xcode, je copie le cadre sur la cible et je créer un lien aussi le projet contre le cadre et ça charge.

Donc, je l'ajoute à la fois: "Copier des fichiers" et "Link Binary avec la bibliothèque"

+0

Oui, c'est ce que vous devez faire. –