Reputation: 9869
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_AppDelegate_Shared", referenced from: _OBJC_CLASS_$_AppDelegate_iPad in AppDelegate_iPad.o "_OBJC_METACLASS_$_AppDelegate_Shared", referenced from: _OBJC_METACLASS_$_AppDelegate_iPad in AppDelegate_iPad.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Hello, this is a straight up AppDelegate, and I'm getting this error. Any ideas? There's no library to link to or anything. I've seen these errors time and time again in XCode, but the causes have ranged from a libxml2 library being not right (needed libxml2.7.3), to just something odd in XCode itself. No idea what to do next, but obviously would like the program to compile. Thanks!
Upvotes: 1
Views: 882
Reputation: 37
same here. thanks for the answer.
I had just (literally 30 seconds ago) dragged the files in. I used the same files in other projects no problem. got this linker error (updated to XCode 4.3 yesterday) and same problem, the .m file was checked for the Test target membership, but NOT the app target.
possibly a 4.3 bug. it seems it is defaulting to adding dragged in files to the test build and not the app build.
thanks... you helped me find it very fast. I was not looking forward to that.
Upvotes: 1