How to choose which version of XCode Unity uses?

I have XCode 4.5.2 and XCode 4.4.1 installed so that I can still build to armv6 devices for some older projects. How can you tell Unity which XCode to use?

Unity doesn’t use XCode, it simply creates a project folder for it. It’s up to you to decide in which version you open your project.

When you choose “Build Run” which I always do, it automates opening XCode with the project, performing a “Clean” and then a “Run”.

Run sudo xcode-select from the Terminal. In Windows right now so I can’t give exact instructions.

Thanks will give that a try, I don’t think I actually need it now. I think we are just going to dump armv6 pre-4.3 support going forward.

I just used xcode-select in Terminal to set Xcode.app instead of Xcode6-Beta3.app which I also have and even after restarting OS X Unity keeps trying to Build and Run with Xcode-Beta3.app. If I put Xcode-Beta3.app in the trash then Unity uses Xcode.app. It would really help to be able to select which Xcode for Unity to use if someone knows the trick here. Thanks guys!

If XCode 5 is already running when you build&run the Unity project, Unity will launch your project in that version.

The system is the one that decides which XCode app will be opened, xcode-select won’t help here.