Search Unity

Works in editor but build fails

Discussion in 'macOS' started by builtbyeric, Jan 30, 2018.

  1. builtbyeric

    builtbyeric

    Joined:
    Oct 23, 2017
    Posts:
    6
    Hi there,

    I'm experimenting with porting an app from Windows to Mac. It works fine in the editor, but when I create a build, nothing is built, and the log has errors. There are a couple things I see in the log file and I'm not sure what I should be following up on:

    I get a bunch of errors that look like
    program_source:90:38: error: expected expression
    u_xlatu2.x = as_type<uint>(half2(, 0.0));

    and it finally dies with the message
    Metal: Failed to create compute library

    I was wondering if someone would have advice on where to start looking for things that would make a build not work when the editor is working.

    This is with 2017.3, in case anything along these lines has been addressed in 2018.

    thanks much!
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    Try turning off Metal.

    Also, are you building on a Mac, or building under Windows? (I think it should work either way; I'm just curious.)
     
  3. builtbyeric

    builtbyeric

    Joined:
    Oct 23, 2017
    Posts:
    6
    Thanks much! It's not building but now we're getting sensible errors about shaders.