Unity 5.1 command line build crashes

Just upgraded to Unity Pro 5.1 and I can’t seem to compile from command line anymore. It throws and exception almost instantly. The only change I see in the release notes is:

  • Home Window Login integration. You can now login or work offline using the home window or command-line arguments.

I do not see anything in the documentation on these argument changes. I thought it could possibly be crashing because I’m not forcing offline mode? I can open the same project in the Unity editor and using a menu link execute the same exact build method I’m calling from command line, and in the editor it builds fine without any issues.

Here is a snippet of the error it’s throwing:
Problem signature:
Problem Event Name: BEX64
Application Name: Unity.exe
Application Version: 5.1.0.28848
Application Timestamp: 556c8219
Fault Module Name: Unity.exe
Fault Module Version: 5.1.0.28848

I googled around for BEX64 and did not come across anything useful.

Any thoughts?

Thanks

I think I may have figured this out. I was slowly moving/changing my command line arguments to see if any of them affected the build. I removed -logfile and it started working…

I had:
-logfile “Builds/IOSBuild.log”

I now have:
-logfile “IOSBuild.log”

This seems to have resolved the problem. A full path to the log may have worked too, I never tried it.

I had two automated builds. Both had fullpaths for the -cleanedLogFile parameter.

One was failing, the other succeeding. I changed the failing one to -logfile Build.log as described here, and it stopped failing.

Unfortunately I have no idea where the Build.log is going, but it worked.