Search Unity

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

Discussion in 'Unity Cloud Build' started by jmccaleb, Nov 22, 2018.

  1. jmccaleb

    jmccaleb

    Joined:
    Nov 7, 2017
    Posts:
    1
    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".'.
     
  2. kwikdev

    kwikdev

    Joined:
    Jun 13, 2013
    Posts:
    25
    Seeing this too, out of nowhere. Different define, same error. Maybe UCB will be fixed soon.
     
  3. vguigui

    vguigui

    Joined:
    Nov 2, 2017
    Posts:
    1
    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 ?
     
    Last edited: Nov 22, 2018
  4. Eric_Bates

    Eric_Bates

    Joined:
    Jan 14, 2014
    Posts:
    120
    Im getting it too. Any news?
     
  5. ollieblanks

    ollieblanks

    Unity Technologies

    Joined:
    Aug 21, 2017
    Posts:
    171
    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.
     
    kcreanor, Jack-Mariani and Eric_Bates like this.
  6. Eric_Bates

    Eric_Bates

    Joined:
    Jan 14, 2014
    Posts:
    120
    Hi @ollieblanks , just checking in to see if theres any news.

    Thanks!
     
  7. playentertainment

    playentertainment

    Joined:
    Jan 21, 2015
    Posts:
    45
    Fix this please my builds are also affected.
     
  8. JeeJee85

    JeeJee85

    Joined:
    May 6, 2014
    Posts:
    1
    Same for me. Please fix it soon.
     
  9. kcreanor

    kcreanor

    Joined:
    Mar 22, 2015
    Posts:
    3
    Same issue here, ever since the queue fixes last week.
     
  10. sperepel

    sperepel

    Joined:
    Jul 29, 2016
    Posts:
    14
    We are getting the same issue.
     
  11. sperepel

    sperepel

    Joined:
    Jul 29, 2016
    Posts:
    14
    It seems to work if I force it to version 2018.2.16f1 of unity instead of the newest version.
     
    AdamKane likes this.
  12. dannyd

    dannyd

    Unity Technologies

    Joined:
    Jun 3, 2014
    Posts:
    757
    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.
     
    ollieblanks and kcreanor like this.
  13. ollieblanks

    ollieblanks

    Unity Technologies

    Joined:
    Aug 21, 2017
    Posts:
    171
    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.
     
    AdamKane likes this.
  14. AdamKane

    AdamKane

    Joined:
    Dec 3, 2012
    Posts:
    122
    @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:

     
    Last edited: Nov 28, 2018
    technicat and ollieblanks like this.
  15. ACHIEVR

    ACHIEVR

    Joined:
    Aug 24, 2017
    Posts:
    3
    How do you force the specific version? In cloud build -> config -> [target] -> basic options -> unity version I can only select 2018.2.

    upload_2018-11-28_14-28-23.png
     
  16. sperepel

    sperepel

    Joined:
    Jul 29, 2016
    Posts:
    14
    Scroll down and you will find them
     
    AdamKane and victorw like this.
  17. ACHIEVR

    ACHIEVR

    Joined:
    Aug 24, 2017
    Posts:
    3
    Wow! Can't believe I missed that! Thanks
     
    SureSight likes this.
  18. DavidBVal

    DavidBVal

    Joined:
    Mar 13, 2017
    Posts:
    76
    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.
     
  19. technicat

    technicat

    Joined:
    Nov 22, 2006
    Posts:
    1,272
    If you have a unix shell, e.g. the mac terminal, you can run find, like this from the project directory:

    Code (CSharp):
    1. find . -name "*.js"
     
  20. playentertainment

    playentertainment

    Joined:
    Jan 21, 2015
    Posts:
    45
    I get this problem with CS files.
     
    vguigui likes this.
  21. technicat

    technicat

    Joined:
    Nov 22, 2006
    Posts:
    1,272
    Just confirming that removing .js files did fix my cloud build problems in several projects (exibited in the log as “compile error in the editor”). These were .js file that I wasn’t even using, happened to be left over from old Standard Assets or Asset Store packages.

     
    ollieblanks likes this.
  22. pfleetwood22

    pfleetwood22

    Joined:
    Jun 6, 2016
    Posts:
    28
    I can confirm this issue still exists in 2018.2.18
     
    fbittner and SureSight like this.
  23. pixelsplit

    pixelsplit

    Joined:
    Sep 16, 2013
    Posts:
    123
    We also have that issue.