Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    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,532
    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,074
    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,532
    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,532
  5. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,532
    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,074
    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.