Building Project For MAC on Windows Failed

Hello Unitianer Anonymous,

I want to build a project for Mac OSX Universal on a Windows XP.

  1. I never saw a Mac computer therefore I have no idea how an executable of Mac looks like.

  2. Damn it, why there are three or four different mac os types you can choose to build. As an windows fetish I am very confused.

  3. Building for mac I have choosen the universal variant, but I get an error:

DirectoryNotFoundException: Destination directory not found: Temp/BuildingPlayer/UnityPlayer.app/Contents/MacOS/Power Of Defense Demo
System.IO.File.Move (System.String src, System.String dest) 
UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options) 
UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, BuildTarget, BuildOptions)
UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, BuildTarget, BuildOptions)
UnityEditor.BuildPlayerWindow:BuildPlayerWithDefaultSettings(Boolean, BuildOptions)
UnityEditor.BuildPlayerWindow:OnGUI()
System.Reflection.MonoMethod:InternalInvoke(Object, Object[])
System.Reflection.MonoMethod:InternalInvoke(Object, Object[])
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
System.Reflection.MethodBase:Invoke(Object, Object[])
UnityEditor.HostView:Invoke(String)
UnityEditor.HostView:OnGUI()

When looking into Temp/BuildingPlayer/UnityPlayer.app/Contents/MacOS/ there is only one file “UnityPlayer” with 14MB size.
Is this my file unity could not move because its name differs? I think not, because “last change” of this file was in 2009.

Am I something missing? :shock:

Found it,

because in Player Settings the Product Name contained a “:” or “!” - I am not really sure, but one of them definitively - these strange behaviour occured.

Removing them everything is OK?:shock:
But can someone tell me something about 1) and 2)…

You should be able to use “!” without any problem. I’d suspect the “:”.

  1. The “.app” folder is actually what users see as the “executable”, without the .app extension. That way you can drag the app around and all the data automatically goes with it, because you’re really dragging around a folder (the actual executable is buried somewhere inside), even if it looks like an app.

  2. Just use Universal.

–Eric

Hi Eric,

thank you for answering my questions.
This really helped me.

peace.