Pain in the **** SDK 4.0 - Unity building

Hi

I installed 4.0 today and am running unity 1.5.

When I go to build, i have iPhone )S 3.1.2. set as SDK Version (and yes I’ve tried ‘unknown’ with same result, Xcode tells me that the Base SDK is missing. And the only way i can change this is by MANUALLY going into Edit Project Settings in Xcode and setting it to 3.2. Every… Time…i build. This is such a pain and I’m worried that this isn’t correct.

is there any way to set xcode to default to 3.2 every time, or for Unity to spit out something Xcode recognises?
Cheers

Is there any specific reason you’re still working with Unity iPhone 1.5?

If not, just update to 1.7 and let it output to 3.2.

shamefully i didn’t realize i could do that **

If you try to target iOS 4.0 you run back into the same problem. The only know fix that I am aware of is to create a build script in Xcode that runs before compiling and changes the BaseSDK and deployment targets properly.

Or right click the app in the target group, within the Groups Files pane of the XCode project.
Change the base sdk there.
Also, do not forget to switch your compiling from “Debug” to “Release”; This will circumvent a small but annoying compiling quirk.

The steps above will make your application compile fine with iPhone OS 4 SDK and the latest Unity iPhone build (v1.7).