Skip to content

Commit

Permalink
[src] Remove Runtime.Arch from Mac Catalyst. Fixes dotnet#10312.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne committed Dec 14, 2021
1 parent bb2572f commit 7ad48ff
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ObjCRuntime/Runtime.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ public static partial class Runtime {
#error Unknown platform
#endif

#if !__MACCATALYST__
public static Arch Arch; // default: = Arch.DEVICE;
#endif

unsafe static void InitializePlatform (InitializationOptions* options)
{
#if __MACCATALYST__
Arch = Arch.SIMULATOR;
#else
#if !__MACCATALYST__
if (options->IsSimulator)
Arch = Arch.SIMULATOR;
#endif
Expand Down Expand Up @@ -124,10 +124,12 @@ public static void StartWWAN (Uri uri)
#endif // !COREBUILD
}

#if !__MACCATALYST__
public enum Arch {
DEVICE,
SIMULATOR
}
#endif
}

#endif // MONOMAC

0 comments on commit 7ad48ff

Please sign in to comment.