- Home /
MacOS build of the same game made on Windows is not working.
Hello,
I recently finished making a game on unity3D on Windows 10 and then I tried to import the game to my Mac via the unity cloud service. (I also tried with a USB stick and with google Drive)
Once I downloaded the project on unity3D Mac version with the exact same build I have on windows, it gives me 90+ errors and is unplayable. I really don't know what is happening, its the same game saved on the cloud but its far from working on the Mac version and works perfectly fine on Windows.
I noticed that my version of unity on mac has a folder called packages and I think that's giving most of my errors, but I'm not sure because I did some research and those errors are likely not the ones to make the game unplayable.
Here are some of the errors I have:
NullReferenceException: Object reference not set to an instance of an object MakeMap.SetParentToLevel () (at Assets/Scripts/MakeMap.cs:141) MakeMap.Start () (at Assets/Scripts/MakeMap.cs:148)
NullReferenceException: Object reference not set to an instance of an object DetectGameOver.DetectIfIsUpOnTile (UnityEngine.GameObject tilesType) (at Assets/Scripts/DetectGameOver.cs:107) DetectGameOver.DetectIfPlayerEndTile () (at Assets/Scripts/DetectGameOver.cs:124) DetectGameOver.FixedUpdate () (at Assets/Scripts/DetectGameOver.cs:35)
Failed to change file flags for '/Applications/Unity/Unity.app/Contents/Resources/PackageManager/BuiltInPackages/com.unity.modules.ai/package.json.meta'. errno: 13
Failed to change file flags for '/Applications/Unity/Unity.app/Contents/Resources/PackageManager/BuiltInPackages/com.unity.modules.animation/package.json.meta'. errno: 13
Failed to change file flags for '/Applications/Unity/Unity.app/Contents/Resources/PackageManager/BuiltInPackages/com.unity.modules.animation/package.json.meta'. errno: 13
Failed to change file flags for '/Applications/Unity/Unity.app/Contents/Resources/PackageManager/BuiltInPackages/com.unity.modules.animation/package.json.meta'. errno: 13
Failed to change file flags for '/Applications/Unity/Unity.app/Contents/Resources/PackageManager/BuiltInPackages/com.unity.modules.animation/package.json.meta'. errno: 13
...and I skipped a lot.
Thank you so much for your time and help!
Answer by MrMatthias · Jul 27, 2018 at 07:17 AM
you have to look into the scripts and see what is causing the NullReferenceExceptions, for example MakeMap.cs line 148 If you know how to use the debugger, set a breakpoint on that line and see exactly what reference is null (in case there are more than one)
Your answer
Follow this Question
Related Questions
Unity5 build issue, not showing texture. 1 Answer
iOS Cloud Build Error: Not A Directory 3 Answers
IOS Cloud build failing without any Error Log 0 Answers
Display issues, Unity 2019 is not compatible to Windows 10? 0 Answers
How can I stop the variable values reverting to its default values after being built? 1 Answer