- Home /
Question by
ichenxiaodao · Dec 28, 2013 at 04:20 PM ·
build-errorcommand-line
How to check error when Unity build by command line
I build project by Unity command line:
cd /Applications/Unity/Unity.app/Contents/MacOS
./Unity -batchmode -projectPath [xxx] -executeMethod [xxxx] -logFile [xxx] -quit
When build error, I want to receive prompt message.
How to do this by command line?
Thanks!!!
Comment
whyyyyyy. Unity's point is to make it easier and more efficient to code. How would this benefit anyone?
I believe this is only practical if you are trying to automate something. This should not be used for basic development.
Easy but not efficent. Give a look in Advantages in http://en.wikipedia.org/wiki/Build_automation.
Answer by Sisso · Oct 10, 2014 at 12:43 PM
You probably need to build by yourself.
You can check the exit code of program ($?) or parser the logs and then popup a msg from bash.