- Home /
BuildPlayer says successful but there is no .app to run
I am interested in doing build batches with Unity's command line tool on OSX, but when I run the tool, I never get a .app file to use. I only generate a Contents folder.
I run this command in my terminal /Applications/Unity/Unity.app/Contents/MacOS/Unity -batchmode -projectPath /Users/andymartin/Code/tests/TestTools -executeMethod BuildMe.MyBuild -quit
The editor says that my build was succesfull. I had an error before where it wasn't finding my scene file, but I corrected it by putting tin the correct path.
Here is my class using UnityEngine; using System.Collections; using UnityEditor;
public class BuildMe
{
static void MyBuild()
{
string[] levels = new string[]{"Assets/tester.unity"};
BuildPipeline.BuildPlayer(levels, "MacBuild", BuildTarget.StandaloneOSXIntel, BuildOptions.AutoRunPlayer);
}
}
Your answer
Follow this Question
Related Questions
Running in batchmode whilst Unity is already running 0 Answers
How to fix mouse click and drag hang in Unity 5.2.3.p2 OSX 1 Answer
Can't build game for ios (UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors) 2 Answers
OSX Order Project view by type? 1 Answer
W key as Z key in Mac OS X 0 Answers