Xcode settings overwritten each time I "Build Run

Hey guys,

Every time I hit Build Run the changes I’ve made to the Xcode project are overwritten. So, for example, if I add to the build config an Adhoc build, this will be overwritten the next time I build and run and I have to redo all the stuff for making an Adhoc build again.

Also, the target that it starts building for when it launches Xcode is always Simulator | Release. Not Device 2.0 | Release.

How can I avoid these issues?

Thanks!

try searching the forum for “trampoline” - that’ll probably get you what you want.

Thanks that looks like a viable solution for now.

I think Unity should be changed though to allow me to enter the various things I want to change in Xcode into the editor so you don’t have to go to the lengths of modifying their base project.

Certainly they must expect that everyone will want to do Adhoc builds so that we can get people to test our games. Even the final build for the app store requires special settings.

You should be able to specify:

  • Which provisioning profile to use
  • An Entitlements.plist file (for Adhoc builds).
  • Which build target and OS to build for.
  • And it would be icing on the cake to be able to add in some define’s for the various targets too.

You can all be done already.
post build scripts are a great help in this case and there are various examples of how to use it for exactly such purposes

Oh that’s awesome, I haven’t seen docs on these or the examples, could you provide some links for me?