I'm coming to the list with an issue that baffles me. I'm a newbie so please bear with me
I just received the new Hillegass book and entered the first program (RandomApp). It did not build so I checked it and reran it with errors and warnings showing up. This kept happening even though I downloaded the code from the Big Nerd Ranch website.
I finally just started a new project and attempted to build it without any changes or code additions. When I do the following is received:
Building target “TestScottApp” of project “TestScottApp” with configuration “Release” — (2 errors, 2 warnings)
cd /Users/Scott/TestScottApp
"/Previous Systems.localized/2008-04-21_2055/Developer/usr/bin/gcc-4.0" -o /Users/Scott/TestScottApp/build/TestScottApp.build/Release/TestScottApp.build/Objects-normal/i386/TestScottApp -L/Users/Scott/TestScottApp/build/Release -F/Users/Scott/TestScottApp/build/Release -filelist /Users/Scott/TestScottApp/build/TestScottApp.build/Release/TestScottApp.build/Objects-normal/i386/TestScottApp.LinkFileList -framework Cocoa -arch i386 -mmacosx-version-min=10.5 -isysroot "/Previous Systems.localized/2008-04-21_2055/Developer/SDKs/MacOSX10.5.sdk"
ld: warning in /Previous Systems.localized/2008-04-21_2055/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks//Cocoa.framework/Cocoa, file is not of required architecture
ld: warning in /Previous Systems.localized/2008-04-21_2055/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libSystem.dylib, file is not of required architecture
Undefined symbols:
"_NSApplicationMain", referenced from:
_main in main.o
"_exit", referenced from:
start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
ld: warning in /Previous Systems.localized/2008-04-21_2055/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks//Cocoa.framework/Cocoa, file is not of required architecture
ld: warning in /Previous Systems.localized/2008-04-21_2055/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libSystem.dylib, file is not of required architecture
"_NSApplicationMain", referenced from:
_main in main.o
"_exit", referenced from:
start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Build failed (2 errors, 2 warnings)
Can someone tell me what's going on and how to fix it> It appears to me that this is an Xcode issue.
Thanks,
Scott