Search Unity

Bug Building for OSX (StandaloneOSX) from Linux.

Discussion in 'Linux' started by mtsg97, Nov 5, 2019.

  1. mtsg97

    mtsg97

    Joined:
    Jun 9, 2017
    Posts:
    1
    Hi,
    I didn't know where to post this. So maybe this is the wrong place. Kindly let me know.
    This morning, I was trying to build a project from linux (pop_os 19.04) to OSX, and came upon this error:

    -----CompilerOutput:-stderr----------
    <my home directory>/Tools/2019.3.0b8/Editor/Data/Tools/RoslynScripts/unity_csc.sh: line 76: [: missing `]'

    Upon further investigation, that line is:
    if [ $VERMAJOR -gt 8 ] && [ $VERMIN -gt 7]; then

    as you can see, it is missing a whitespace after "-gt 7" and should be:
    if [ $VERMAJOR -gt 8 ] && [ $VERMIN -gt 7 ]; then

    instead.
    after correcting the script and rerunning my build, I get the following error:
    Error building player because build target was unsupported

    This is the script line I used for my build:
    BuildPipeline.BuildPlayer(scenes, pathToDeploy, BuildTarget.StandaloneOSX, BuildOptions.None);

    Also, I have installed the macOS build targets along with unity
    Is building for macOS unsupported from Linux?
     
    Last edited: Nov 5, 2019