Xcode version for 3.1

What XCode version do I need for unity3.1?

the reason why I ask is that some problems occured when building an empty scene on ipad and ipod 3G.
I’ve created an empty project, with no assets, just a standard cube in front of camera, just for test. Build in Unity was succesful, as well as in XCode, but when the app runs on the device it immediately closes.
I set in XCode OS version 3.2 for ipad and 3.1.3 for ipod
there were warnings about arm version, but only armv6 is available in options, thats why I’m asking about XCode version…

If you go into apple developer center - there is download for xcode + ios sdk. Use this.
WARNING: we didn’t test xcode 4, so for now don’t use it

What’s printed in console? Also, you can just set lowest os version you target - no need for separate projects.

thanx, we’ll try

here what console says:

[Session started at 2011-01-24 16:39:19 +0200.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1460) (Tue Mar 16 06:40:08 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys000
Loading program into debugger…
Program loaded.
target remote-mobile /tmp/.XcodeGDBRemote-2444-24
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
run
Running…
[Switching to thread 11779]
[Switching to thread 11779]
sharedlibrary apply-load-rules all
continue
2011-01-24 16:39:52.727 test1[583:207] -> registered mono modules
-> applicationDidFinishLaunching()
Mono path[0] = '/var/mobile/Applications/5A8ECE7B-2A1A-4634-BA18-0BE0C851922C/test1.app/Data/Managed'
Invalid serialized file version. File: "/var/mobile/Applications/5A8ECE7B-2A1A-4634-BA18-0BE0C851922C/test1.app/Data/mainData". Expected version: 3.1.0f4. Actual version: 3.1.0f3.
 
(Filename: /Applications/buildAgent/work/71ca6fec1b41cc30/Projects/../Runtime/Serialize/SerializedFile.cpp Line: 251)

PlayerInitEngineNoGraphics settings: Could not preload global game manager #0
   engine intialization failed

Debugger stopped.
Program exited with status value:1.

Somehow you managed to mix unity versions: you build your projects with unity editor 3.1.0f3 but your iphone library is from unity 3.1.0f4.
There were some solutions suggested at the forums, but i’d rather uninstall old one :wink:

I am having the exact same problem and I have no iOS older than 4.2 available for test… What do you mean by uninstall the old one, and how ?

install previous unity versions before you install new ones to ensure that you have no left overs.
often though its already enough to just replace the project upon build in unity so it gets regenerated in case paths moved etc in the unity install