エラーの原因教えてもらったのでメモ
Unity 2019.2.xになってからビルドがコケるようになった。
下記のような雰囲気のコマンドで Unable to open log file, exiting.
がでる
しかも exit code 0
で成功している風味をだすのでかなりハマった。
shell
/Applications/Unity_2019.2.4f1/Unity.app/Contents/MacOS/Unity \
-quit \
-batchmode \
-projectPath project \
-executeMethod Hoge.Run_Android \
-logFile /dev/stdout -buildTarget Android
Unable to open log file, exiting.
ReferenceのlogFileをみると
標準出力に出したい場合は、 /dev/stdout
を -
に変えろとのこと
Specify where Unity writes the Editor or Windows/Linux/OSX standalone log file.
To output to the console, specify - for the path name.
On Windows, specify - option to ensure output goes to stdout, which is not the console by default.