All the commands you mention from what I know are perfectly valid, and compile ok on the iphone. If you like I can try and compile your project on my mac to see what I get. As a matter of interest what is your set up i.e. are you creating your code on separate pc and then doing a file copy over, or are you using another method like using a virtual machine on your mac. Im using parallels, and I find that sometimes the files get corrupted when reading them into the XCode, especially if I leave XCode open when Im editing and compiling using GLB.
Also what size is your Xcode Project file? I think its an XML file isn't it, so it might also be interesting to open it up in and editor to see what is written in it?
EDIT : You can't read the project file in an editor, but on the make you can right click and show its package contents. Then you view the individual text files contained within it.