helpp Xcode build ............

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 .

looks like you messed up significantly.

valid archs starting poitns out that it is for simulator but simulator would be i386 and x86_64 only as the ppc macs were never supported for iOS development at all.
The ARCHS though implies that you try to build for the device which you can’t do with the simulator build at all, you need to select the appropriate base sdk and target in unity - player settings before you build and do a build with replace instead of append.

Also I would recommend you to get osx 10.6, as its a matter of time before the new SDKs become a must and your os can not even install them

thanks dreamora , So . how i can fix this bug ? . In unity tools / player setting . I choose iphone 3.1.3 devide (not emulator) . But it still bug ?

Chose base sdk 4.0 (not simulator) and deploy target 3.x you mean?
cause base sdk 3.x is not valid anyway, such applications are not accepted by apple at all

thanks dreamora . I will try it . hope working . I’m a beginer . my english do’nt good .

I have : iPhone SDK 3.0 (Xcode 3.1.3) Leopard (10.5.7) . and unity 3.1

You need iPhone SDK 4.0 at least and OSX 10.6 to develop for iOS at the time

You can still target your 3.x device if you want through the deployment target (I at least think, iOS 4.3 has removed any support for pre 3GS devices so your device will be useless by this summer at latest as apple will definitely kick ARMV6 targeting out with iOS5 release at latest)

yub . but my OS is 10.5.8 (leopart ) . if update to 10.6 will is Snow , my computer can brick . I dont want update ., and my iphone is 2G with FW 3.1.3 . I think if may be , I want keep iphone sdk 4.0 for leopart , Osx 10.5.8 . How i can do it ???

If you don’t want to upgrade your OSX I fear you are done with iOS development, you can’t.

As mentioned, to develop for iOS and sent to store, iOS SDK 4.0 is the minimum, anything below is rejected / won’t even upload.
Unsure if unity builds anything supported by that as iOS 4 happened before Unity 3 was released already so likely nobody has ever tested it as using and SDK that can’t be used anymore for the store makes no sense

oh …this is really difficult for me . i will try upgrade OSX to 10.6 . Hope the bug don’t happen with me. may be , i hope you can help me for erro after . Thanks so much

What kind of hardware you have that you fear 10.6 that much if I might ask?
I’m sitting on a spring 2008 MacBook Pro no problems basically

I use Pc (ram 2G , core duo ) , with ideneb 10.5.8 , I have not macbook . my company hava a iMac . I will try it . I come from Asia .

I dont want pay 99$ for apple . how I use xcode build to .Ipa file ?

I have a first gen macbook pro (it’s not even 64bit) and 10.6 works fine. Most of the exotic features for 10.6 are turned off for me, but it still works fine.

@acidArrow :

What iphone SDK version you have ?