Xcode build iphone problem

I’m trying to build a test project to the iPhone from unity. I consistently receive the error, “No architectures to compile for (ARCHS=armv6, VALID_ARCHS=i386 ppc ppc64 ppc7400 ppc970 x86_64).”

I have zero experience with xcode so I would appreciate some advice on why exactly I am receiving this error.

I use mac osx 10.5.8 , unity 3.1 , iphone2G 3.1.3 , xcode 3.1.3 sdk 4.0 .

no need for double posting http://forum.unity3d.com/threads/81399-XCode-Template?p=520696#post520696