Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

talguy

macrumors member
Original poster
Jun 17, 2009
30
0
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
 
I just tried to do a normal cocoa desktop hello world application and got the same errors. So the error is xcode in general.
 
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!
 
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.
 
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?
 
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
 
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.