Cloud builds for APK failing: 'Could not find file "/define:UNITY_CLOUD_BUILD".'.

We have been trying to get this to build all day, to no avail.

These have been building fine until after the recent queue/delay fixes, and doesn’t seem to be anything defined on our side.

Unity] -----CompilerOutput:-stdout–exitcode: 255–compilationhadfailure: True–outfile: Temp/Assembly-UnityScript.dll
11: [Unity] BCE0042: Error reading from ‘/define:UNITY_CLOUD_BUILD’: ‘Could not find file “/define:UNITY_CLOUD_BUILD”.’.

Seeing this too, out of nowhere. Different define, same error. Maybe UCB will be fixed soon.

Me too

I noticed this in the full log:
975: [Unity] -define:ENABLE_UNITY_COLLECTIONS_CHECKS
976: [Unity] -define:ENABLE_BURST_AOT
977: [Unity] -define:UNITY_TEAM_LICENSE
978: [Unity] -define:UNITY_PRO_LICENSE
979: [Unity] -define:VUFORIA_ANDROID_SETTINGS
980: [Unity] -define:UNITY_HAS_GOOGLEVR
981: [Unity] -define:UNITY_HAS_TANGO
1039: [Unity] /define:UNITY_CLOUD_BUILD

Note the / instead of - for parameter.

Mr. Unity could you fixed this ?

Im getting it too. Any news?

Thank you for reporting this.

The development team are aware and investigating. Please bear with us and I will update this thread as soon as I know more.

3 Likes

Hi @ollieblanks , just checking in to see if theres any news.

Thanks!

Fix this please my builds are also affected.

Same for me. Please fix it soon.

Same issue here, ever since the queue fixes last week.

We are getting the same issue.

It seems to work if I force it to version 2018.2.16f1 of unity instead of the newest version.

1 Like

This was an issue introduced in 2018.2.17f1 and a fix is being investigated currently. As @sperepel pointed out, you can force your project to user 2018.2.16f1 rather than “latest 2018.2” and you shouldn’t run into this issue. Will keep you all updated on progress here.

2 Likes

Wanted to update everyone with another possible solution/workaround. We have narrowed down that this behaviour will only be exhibited if the Project contains UnityScript(Javascript) files. Removing these files or converting them to C# should alleviate this issue.

1 Like

@ollieblanks Is there a way to search a project for UnityScript(Javascript) files? (I have more than 3,000 script files, a tiny portion of which might be javascript, from external assets).

EDIT: For others, a brute for approach, from file explorer, is simply to search for the .js file extension:

2 Likes

How do you force the specific version? In cloud build → config → [target] → basic options → unity version I can only select 2018.2.

3935719--336472--upload_2018-11-28_14-28-23.png

Scroll down and you will find them

2 Likes

Wow! Can’t believe I missed that! Thanks

1 Like

To the team: If you have known this issue for over a week, it’d have been nice to either disable 2018.2.17f1 for cloud builds, or at least show us a warning in the build page. I just wasted 2 hours looking into what could be wrong with my project before finding this.

If you have a unix shell, e.g. the mac terminal, you can run find, like this from the project directory:

find . -name "*.js"

I get this problem with CS files.

1 Like