Build error with the new iphone 4 beta xcode Please Help!

Today, the new beta version of xcode has decided to stop working for me. It’s giving me an error that i have no idea what it means, “No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv6, VALID_ARCHS=i386 ppc ppc64 ppc7400 ppc970 x86_64).”

also it says the Base SDK is missing. i have the beta itunes, iphone sdk, and the iphone os. It was working before, but just randomly stopped working. Does anyone have any idea of what’s wrong?

you need to go into the target and project settings and change the base SDK to 4.0 and then set the deployment target to whatever you want to target as minimum (likely 3.1.3)

YES! It worked like a charm. Thank you for that quick response.

http://forum.unity3d.com/viewtopic.php?t=55049&highlight=fast+app+switching

Is there a way to set it to SDK 4.0 by default? It’s annoying having to change it each time my project is created by Unity.

set it to unknown

At the time of 1.7, 4.0 GM etc were not available.

Thanks for that. It was driving me nuts.

it didn’t work when i set it to unknown. It only worked when i set it to the most recient version of iphone os, which for me i think was 3.3.

since this question is very simular to my last one, i thought i’d put it in the same thread.
once again, xcode is giving me problems. when ever i click build and run, xcode opens and runs normally, but once my game starts running on my itouch, it quits after the first splash screen.
In xcode, i keep getting 87 error messages that all say " warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘void*’ "

help please?

NEVER set it to 3.2 unless you do an ipad / iphone + ipad release
thats truely asking for trouble, cause 3.2 is an ipad only os (and at the time the only ipad os)

So what if one IS doing an iphone/ipad release? (I think most people would want to). I’m using 3.2, and receiving the same warnings.

I then switched to 4.0 debug and still getting the warnings that are mentioned above.

If you do a combined one, set the base SDK to 4.0 and deployment target to 3.1.3
ensure to set the architecture in target and project to standard, not optimized
and ensure that you switch the architecture to ARM6 in the project menu - set active architecture