Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Feedback Cannot build from command line

Discussion in '2019.2 Beta' started by liortal, Jul 12, 2019.

  1. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    I am working on a presentation i am going to give related to "Build automation with Unity".
    For this presentation i would like to demonstrate building a Unity game from the command line.

    The problem is that i cannot seem to get it working. I am using 2019.2 beta 7 (haven't tried older versions yet).

    This is the command line and arguments i am using:
    The output log doesn't mention anything interesting that i could find.
    Does anyone know if this is a known bug? or am i doing something wrong here ?

    Log file is also attached. Any help would be appreciated :)

    EDIT adding a build script (editor script that calls BuildPipeline.BuildPlayer) and calling that from the command line works, but the default built-in options like -buildOSX64Player are not working).
     

    Attached Files:

    Last edited: Jul 12, 2019
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,674
    The command line to build Mac player is "-buildOSXUniversalPlayer". Looks like documentation is incorrect. Can you submit a bug report?
     
  3. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    I used the available commands from the docs I believe I also tried the option you wrote. I will try again and see if it works.
     
  4. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
  5. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    Cannot build from command line using -buildOSX64player (Bug Case 1169361)
     
    LeonhardP and Peter77 like this.
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,674
    Thanks, we'll fix the documentation.

    The other ones didn't work because the code doesn't check for them :).
     
    mythical_downs and liortal like this.