Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice

Command line build failure

Discussion in '5.4 Beta' started by Hyp-X, Jun 20, 2016.

  1. Hyp-X

    Hyp-X

    Joined:
    Jun 24, 2015
    Posts:
    401
    According to the build notes:

    Editor: Optional "strict mode" when building projects and AssetBundles, which will fail the build if any errors (even non-fatal ones) are reported during the build process.

    Can anyone tell how to disable this "strict mode" when building from command line?
    It seems the documentation is not yet updated to reflect this.
     
  2. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,494
    As the release note says, it is optional - it should not be taking effect from the command line.

    Note that even with strict mode turned off, fatal errors can still prevent the build from producing output.
     
  3. Hyp-X

    Hyp-X

    Joined:
    Jun 24, 2015
    Posts:
    401
    Actually as I found out the build is created, but unity dumps misleading error messages saying build cancelled, and returns an error code causing CI to report a build failure.
     
  4. Alex-Lian

    Alex-Lian

    Guest

    Sounds like a bug, could we get a bug report please?
     
unityunity