iOS: Does UCB Use "Replace" or "Append" when it exports the xcode project?

Does UCB re-generate the Xcode project every time on build?

The Xcode project is re-generated with every build (i.e. equivalent of using “replace”).

3 Likes

Resurrecting an old thread to ask - why? Is it too difficult to determine if it’s safe/reasonable to append?

There is no persistence of UCB data except for that which we explicitly enable, every build is executed on what is effectively a completely fresh OS install. This is very important for both security and scalability.

Adding in support for append mode would require us to upload the xcode project to a storage bucket and associate it with a Unity version. Builds would take longer as a result, as we would have to upload and download the project again when we run a Unity build. The Editor in batchmode is not very easy to control so we cannot do this at the same time as executing editor operations. The time spent on uploading/downloading the xcode project would be strictly additive.

Since append mode saves relatively little time and would have this upload/download overhead, it’s entirely possible that the tradeoff would result in longer builds on average. Even if build times were reduced on average, it’s unlikely to make as large a difference as other improvements we are working on. And most likely append mode would add a range of new bugs and corner cases to UCB iOS builds which as you probably know are already quite difficult to debug.