hwaet / UnityProjectCloner

A tool to let the user to create a duplicate project that links back to the original, for multiplayer testing
MIT License
197 stars 27 forks source link

Error while opening project on MAC OS M1 #10

Open mtaha3249 opened 3 years ago

mtaha3249 commented 3 years ago

Hi, I just downloaded the file and place it in the unity. Clone a project and open it to new editor and throws exceptions. I have attaches SS, PFA.

Screenshot 2021-09-07 at 11 09 17 PM
Pramod-Redapple commented 3 years ago

Same issue

AgentSamad commented 3 years ago

same issue

Phantomxm2021 commented 1 month ago

Replace L476-L484 lines code with the following code. https://github.com/hwaet/UnityProjectCloner/blob/f8c8347af3a144069dffd6120f1c4142f8120891/UnityProjectCloner/Editor/ProjectCloner.cs#L476-L484

        private static void StartHiddenConsoleProcess(string fileName, string args)
        {
            var process = new System.Diagnostics.Process();
            //process.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
#if UNITY_EDITOR_OSX
            process.StartInfo.FileName = $"{fileName}/Contents/MacOS/Unity";
#elif UNITY_EDITOR_LINUX
            process.StartInfo.FileName = $"{fileName}/Contents/Linux/Unity";
#else
            process.StartInfo.FileName = fileName;
#endif
            process.StartInfo.Arguments = args;

            process.Start();
        }