Skip to content

Commit

Permalink
Fix regression in 6.0.0 that broke macOS builds in Unity 2022.1+
Browse files Browse the repository at this point in the history
- Closes #109
  • Loading branch information
robinnorth committed May 26, 2023
1 parent ecdaac7 commit 476719c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Editor/Build/Platform/BuildOSX.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,13 @@ private void SetBuildOutputType(string key)
private void SetMacOSArchitecture(string key)
{
#if UNITY_STANDALONE_OSX
UnityEditor.OSXStandalone.UserBuildSettings.architecture = (UnityEditor.OSXStandalone.MacOSArchitecture)EnumValueFromKey<MacOSArchitecture>(key);
UnityEditor.OSXStandalone.UserBuildSettings.architecture =
#if UNITY_2022_1_OR_NEWER
(UnityEditor.Build.OSArchitecture)
#else
(UnityEditor.OSXStandalone.MacOSArchitecture)
#endif
EnumValueFromKey<MacOSArchitecture>(key);
#endif
}
}
Expand Down

0 comments on commit 476719c

Please sign in to comment.