因为我们之前都没有考虑到Mac的打包,打包流程都在windows下走的,所有没有考虑到mac下的兼容性问题,今天打mac包发现有部分功能失效了,仔细看发现报了一个Win32的错,如下:
"/Volumes/UnityForGame/Game/Client/Assets/Scripts/Game Logic" "/Volumes/UnityForGame/Game/Client/Assets/Scripts/XLua"', CurrentDirectory=''
System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process)
System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process)
System.Diagnostics.Process.Start ()
(wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start ()
mac下执行mono exe的方式和windows下是不同的,windows下直接走下面这段代码就可以了
System.Diagnostics.Process hotfix_injection = new System.Diagnostics.Process();
hotfix_injection.StartInfo.FileName = "xx.exe";
hotfix_injection.StartInfo.Arguments = "args";
hotfix_injection.StartInfo.WindowStyl