View Full Version : App will not compile....Help Please
talguy
Jun 17, 2009, 05:12 PM
I am new to programming for the iphone. I tried to do the basic hello world app using a static label and a static image view. When I compile the application i get the following error while trying to link the main file and the appdelegate.
file not found: /Users/macuser/Desktop/Evans/projects/hello.build/Debug-iphonesimulator/hello.build/Objects-normal/i386/main.o /Users/macuser/Desktop/Evans/projects/hello.build/Debug-iphonesimulator/hello.build/Objects-normal/i386/helloAppDelegate.o
I also just upgraded my computer from tiger to leoprad and I did not do a fresh install.
Thanks in advance
Evan
talguy
Jun 17, 2009, 06:30 PM
I just tried to do a normal cocoa desktop hello world application and got the same errors. So the error is xcode in general.
Paix247
Jun 18, 2009, 09:52 AM
I had this problem recently as well. The way I eventually fixed it is by reverting to an earlier copy of the folder via Time Machine... good luck!
talguy
Jun 18, 2009, 01:04 PM
I can't revert to an older version since I just upgraded to leopard. But I did uninstall all the developer tools by running this command
sudo /Developer/Library/uninstall-devtools --mode=all
I then reinstalled xcode and the iphone sdk and have had no luck.
dejo
Jun 18, 2009, 01:48 PM
You're running on an Intel-Mac, right?
PhoneyDeveloper
Jun 18, 2009, 02:09 PM
Do the files that it says it can't find exist or not?
It's possible that this is a permissions problem.
Can you show the link line from the build transcript?
talguy
Jun 18, 2009, 06:41 PM
When I build the app code never makes the object files. I can make these files if I click on the file and select compile. But when I click build and with the files already compiled I still get the same error.
So right now code can not link C, C++ and Objective-C programs. Java Works. So it has to be somethign with gcc.
Here is the build transcript
Building target “hello” of project “hello” with configuration “Debug”
Checking Dependencies
Ld "/Users/macuser/Desktop/Evan's/projects/Debug-iphonesimulator/hello.app/hello" normal i386
cd /Users/macuser/Documents/hello
setenv MACOSX_DEPLOYMENT_TARGET 10.5
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk -L/Users/macuser/Desktop/Evan's/projects/Debug-iphonesimulator -F/Users/macuser/Desktop/Evan's/projects/Debug-iphonesimulator -filelist /Users/macuser/Desktop/Evan's/projects/hello.build/Debug-iphonesimulator/hello.build/Objects-normal/i386/hello.LinkFileList -mmacosx-version-min=10.5 -framework Foundation -framework UIKit -framework CoreGraphics -o /Users/macuser/Desktop/Evan's/projects/Debug-iphonesimulator/hello.app/hello
ld: file not found: /Users/macuser/Desktop/Evans/projects/hello.build/Debug-iphonesimulator/hello.build/Objects-normal/i386/main.o /Users/macuser/Desktop/Evans/projects/hello.build/Debug-iphonesimulator/hello.build/Objects-normal/i386/helloAppDelegate.o
collect2: ld returned 1 exit status
Evan
talguy
Jun 18, 2009, 06:46 PM
Please ignore my last post. I got it working.
What I did was change the build path from "/Users/macuser/Desktop/Evan's/projects" to "/Users/macuser/Desktop/Evans/projects"
Thanks for all the help
Evan
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.