LoginSignup
4
1

More than 3 years have passed since last update.

Unity 2019.2.xのbatchmodeで `Unable to open log file, exiting.`

Posted at

エラーの原因教えてもらったのでメモ

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.
4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1