Salut tout le monde,
Je suis actuellement en train d'apprendre l'Objective-C donc j'ai achéter le livre "Progammation Cocoa" qui d'ailleur et très bien fait bref..
Lors de la compilation, j'ai une petite erreur
et le retour de la compilation:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 #import <Cocoa/Cocoa.h> int main(int argc, char *argv[]) { return NSApplicationMain(argc,(const char **)argv); Thread1:Program received signal: "SIGABRT" }
Auriez vous une idée pour résoudre se souci?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51 GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Thu Nov 3 21:59:02 UTC 2011) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin". tty /dev/ttys000 [Switching to process 2835 thread 0x0] 2012-10-21 18:12:06.108 RandomApp[2835:707] An uncaught exception was raised 2012-10-21 18:12:06.109 RandomApp[2835:707] [<Foo 0x100131610> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key seed:. 2012-10-21 18:12:06.111 RandomApp[2835:707] ( 0 CoreFoundation 0x00007fff87e01f56 __exceptionPreprocess + 198 1 libobjc.A.dylib 0x00007fff8f889d5e objc_exception_throw + 43 2 CoreFoundation 0x00007fff87e8c1b9 -[NSException raise] + 9 3 Foundation 0x00007fff89231cd4 _NSSetUsingKeyValueSetter + 108 4 Foundation 0x00007fff892317d9 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 400 5 Foundation 0x00007fff89263ade -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 349 6 AppKit 0x00007fff8c9707a5 -[NSIBUserDefinedRuntimeAttributesConnector establishConnection] + 341 7 AppKit 0x00007fff8c7012a1 -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1079 8 AppKit 0x00007fff8c6f78bb loadNib + 322 9 AppKit 0x00007fff8c6f6db8 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 217 10 AppKit 0x00007fff8c6f6cd3 +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] + 141 11 AppKit 0x00007fff8c6f6c16 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 364 12 AppKit 0x00007fff8c967cd7 NSApplicationMain + 398 13 RandomApp 0x0000000100001482 main + 34 14 RandomApp 0x0000000100001454 start + 52 15 ??? 0x0000000000000003 0x0 + 3 ) 2012-10-21 18:12:06.149 RandomApp[2835:707] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<Foo 0x100131610> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key seed:.' *** First throw call stack: ( 0 CoreFoundation 0x00007fff87e01f56 __exceptionPreprocess + 198 1 libobjc.A.dylib 0x00007fff8f889d5e objc_exception_throw + 43 2 CoreFoundation 0x00007fff87e8c1b9 -[NSException raise] + 9 3 Foundation 0x00007fff89231cd4 _NSSetUsingKeyValueSetter + 108 4 Foundation 0x00007fff892317d9 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 400 5 Foundation 0x00007fff89263ade -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 349 6 AppKit 0x00007fff8c9707a5 -[NSIBUserDefinedRuntimeAttributesConnector establishConnection] + 341 7 AppKit 0x00007fff8c7012a1 -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1079 8 AppKit 0x00007fff8c6f78bb loadNib + 322 9 AppKit 0x00007fff8c6f6db8 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 217 10 AppKit 0x00007fff8c6f6cd3 +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] + 141 11 AppKit 0x00007fff8c6f6c16 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 364 12 AppKit 0x00007fff8c967cd7 NSApplicationMain + 398 13 RandomApp 0x0000000100001482 main + 34 14 RandomApp 0x0000000100001454 start + 52 15 ??? 0x0000000000000003 0x0 + 3 ) terminate called throwing an exceptionsharedlibrary apply-load-rules all (gdb)
Partager