Cannot use cloud build for iOS and Andrdoid

Description of issue: I cannot managed to use UCB to build my game for iOS and Android

Unity version: 5.5.1f

XCode version:

Source control: SVN

Local build platform: iOS, Android (Default Android)

Build target: iOS, Android

Relevant plugins being used (i.e. Google Play Game Services, other plugins that may perform automatic post-build behaviors): Google Analytics, Firebase, Google Play Game Services

Project name: We Are Heroes

Build log (relevant chunk):
iOS Dropbox
Android: Dropbox

Does it build locally from a fresh checkout? (Instructions below):

  • Clone/checkout your project into a new directory from source control.
  • Open the Unity project in the same version of the editor that you are trying to build with in Cloud Build.
  • Build a version of your project for the same platform you are targeting in Cloud Build.
  • Verify that the errors received in your Cloud Build log are not apparent during this local build.

Local build doesn’t have the issue on the CB log. I use one SVN source for both platform, is it possible?

If you read your log file you can find that AUTOGENERATED does not exist.

Maybe you use a defined AUTOGENERATED but in UCb it is not defined? You ca add define in UCB config options on the UCB web interface.

Hello @MetaDOS ,

Sorry to hear you’re having problems building.

Are you making use of Platform Dependent Compilation in your project?

I can see you have a few Google plugins, so you may need to add an #if UNITY_CLOUD_BUILD to your code.

I hope this helps.

  • Sophia

Hi @SophiaC ,

I did use it but for local build only (define iOS, Android) only. I don’t know how to define for cloud build indeed. Do you have any example?

Hello,

You can do this by going to the build target’s Advanced Options. More info here: Unity Build Automation

Does this help?

  • Sophia