Hello. I am currently building a simple web browser using XCode. My mac version is 10.4.10. For the browser, I am using information from the site http://www.macdevcenter.com/pub/a/mac/2004/01/23/webkit.html. Now, I am finished with constructing the interface with the webview. However, I am having trouble building and running it. Whenever I click the "build and go" button, It says "failed" at the bottom, and this is what it says:
Building target “Web Trawler” of project “Web Trawler” with configuration “Debug” — (1 error)
cd "/Users/Shaun/Web Trawler"
/Developer/usr/bin/gcc-4.0 -o /Users/Shaun/Web\ Trawler/build/Debug/Web\ Trawler.app/Contents/MacOS/Web\ Trawler -L/Users/Shaun/Web\ Trawler/build/Debug -F/Users/Shaun/Web\ Trawler/build/Debug -F%22/Developer/SDKs/MacOSX10.4.10.sdk/System/Library/Frameworks%22 -F/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks -filelist /Users/Shaun/Web\ Trawler/build/Web\ Trawler.build/Debug/Web\ Trawler.build/Objects-normal/i386/Web\ Trawler.LinkFileList -framework Cocoa -framework WebKit -framework Cocoa -framework AppKit -framework CoreData -framework Foundation -framework WebKit -arch i386 -Wl,-Y,1455 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
/Developer/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning -F: directory name (%22/Developer/SDKs/MacOSX10.4.10.sdk/System/Library/Frameworks%22) does not exist
/Developer/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning /Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/Cocoa.framework/Cocoa cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/Developer/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning /Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/WebKit.framework/WebKit cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/Developer/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning /Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/Cocoa.framework/Cocoa cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/Developer/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning /Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/AppKit.framework/AppKit cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/Developer/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning /Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/Foundation.framework/Foundation cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/Developer/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning /Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/WebKit.framework/WebKit cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/Developer/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
_NSApplicationMain
/Users/Shaun/Web Trawler/build/Web Trawler.build/Debug/Web Trawler.build/Objects-normal/i386/main.o reference to undefined _NSApplicationMain
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
Build failed (1 error)
Or see it here: http://www.wikispaces.com/xcode-help
I know that there is nothing wrong with the interface because whenever I click "Test interface", it works perfectly. I suspect there is a setting which needs to be changed. Can somebody help me?
Building target “Web Trawler” of project “Web Trawler” with configuration “Debug” — (1 error)
cd "/Users/Shaun/Web Trawler"
/Developer/usr/bin/gcc-4.0 -o /Users/Shaun/Web\ Trawler/build/Debug/Web\ Trawler.app/Contents/MacOS/Web\ Trawler -L/Users/Shaun/Web\ Trawler/build/Debug -F/Users/Shaun/Web\ Trawler/build/Debug -F%22/Developer/SDKs/MacOSX10.4.10.sdk/System/Library/Frameworks%22 -F/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks -filelist /Users/Shaun/Web\ Trawler/build/Web\ Trawler.build/Debug/Web\ Trawler.build/Objects-normal/i386/Web\ Trawler.LinkFileList -framework Cocoa -framework WebKit -framework Cocoa -framework AppKit -framework CoreData -framework Foundation -framework WebKit -arch i386 -Wl,-Y,1455 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
/Developer/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning -F: directory name (%22/Developer/SDKs/MacOSX10.4.10.sdk/System/Library/Frameworks%22) does not exist
/Developer/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning /Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/Cocoa.framework/Cocoa cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/Developer/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning /Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/WebKit.framework/WebKit cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/Developer/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning /Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/Cocoa.framework/Cocoa cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/Developer/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning /Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/AppKit.framework/AppKit cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/Developer/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning /Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/Foundation.framework/Foundation cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/Developer/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning /Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/WebKit.framework/WebKit cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/Developer/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
_NSApplicationMain
/Users/Shaun/Web Trawler/build/Web Trawler.build/Debug/Web Trawler.build/Objects-normal/i386/main.o reference to undefined _NSApplicationMain
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
Build failed (1 error)
Or see it here: http://www.wikispaces.com/xcode-help
I know that there is nothing wrong with the interface because whenever I click "Test interface", it works perfectly. I suspect there is a setting which needs to be changed. Can somebody help me?