I wrote a script to create builds for both mac and windows and push them to steam. It works great for windows, but for mac it creates nothing.
Here are the commands I use:
C:/Program\ Files/Unity/Hub/Editor/2021.2.16f1/Editor/Unity.exe -quit -batchmode -logFile win64UnityBuild.log -projectPath “UnityClient” -buildWindowsPlayer “C:/…/Executables/Win64/gamename.exe”
C:/Program\ Files/Unity/Hub/Editor/2021.2.16f1/Editor/Unity.exe -quit -batchmode -logFile macUnityBuild.log -projectPath “UnityClient” -buildOSX64Player “C:/…/Executables/Mac.app/gamename.app”
Its basically the same except for the build target. And also the fact that the first one works and the second one produces an empty directory.
The created windows log file has a lot of build information. The created mac log file is missing all that. It has logs that I assume are for opening unity, closing unity, and nothing that seems like its for actually building.
There are no errors or anything, it just seems like its totally ignoring the -buildOSX64Player item. (I also tried -buildOSXPlayer)
When I build via the UI it all works fine. (for both mac and windows)
So what gives? Why isn’t -buildOSX64Player doing anything?