Unity iPhone to xCode - is there a better way (less steps)

Took a while to get Unity iPhone to work and put my game on the Touch and run.

I am down to the following repetitive steps each time I do and build and run in Unity iPhone. Is there a better way? When is the next version of Unity iPhone due out? Hoping for a better way to not have to always repeat the steps below in 1.7 or hoping for better support in the next version of Unity iPhone!

My steps xCode each time I do a build and run into Unity iPhone:

  1. watch the first compile in xCode fail because the bundle identifier does not match.
  2. Go into Targets->Unity iPhone and do a get info and change properties->identifier to remove the # (digits to the right of appid) from #.appid.${PROD…}
  3. In the info dialog now go to the Build tab and change
    Base SDK to ‘iPhoneDevice 4.0’ since its always set to 3.2
    Architectures to ‘arm6’ or ‘Standard (armv6 armv7)’ - seems random which choice is available
    change ‘iPhone OS Deployment Target’ to ‘iPhoneOS 4.0’ since its set to 3.2
  4. Now go into Project->Edit Project Settings and…
    go to the General tab and change Base SDK for all configurations to ‘iPhone device 4.0’
    Go to the Build tab and change ‘Base SDK’ to iPhone device ‘4.0’
    Change Architectures to armv6 or ‘Standard (armv6 armv7)’ again seems random which one shows up.
    Change iPhone OS Deployment Target to ‘iPhone OS 4.0’

Is there a better way so I don’t have to repeat these steps!

Yeah, just do all that once and from then on, in Unity, select “Build Run” instead of just “Build”. That will launch Xcode automatically for you and use all your old settings.

1-click building!

Well, I am finding that each time I do ‘Build Run’ I have to do all the settings again. So I am missing something.

Inside xCode the save button is disabled.

What can I be missing to save the xCode project settings.

set the base sdk to unknown and it won’t override it

Ya but its the iPhone bundle identifier that is causing the grief.
Unity complains if I remove the leading ‘com.’ and xCode complains if it is there.

So I am manually deleting the leading ‘com.’ in xCode.

sigh

the identifier is com.company.name

unity won’t complain due to the com, it will only complain if you don’t touch it so the dummy is in there :slight_smile: