From 7ad48ff544ac45827571b8d45853648d85b39188 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Thu, 9 Dec 2021 09:44:04 +0100 Subject: [PATCH] [src] Remove Runtime.Arch from Mac Catalyst. Fixes #10312. Fixes https://github.com/xamarin/xamarin-macios/issues/10312. --- src/ObjCRuntime/Runtime.iOS.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ObjCRuntime/Runtime.iOS.cs b/src/ObjCRuntime/Runtime.iOS.cs index 818f1babf68c..0b8af7822081 100644 --- a/src/ObjCRuntime/Runtime.iOS.cs +++ b/src/ObjCRuntime/Runtime.iOS.cs @@ -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 @@ -124,10 +124,12 @@ public static void StartWWAN (Uri uri) #endif // !COREBUILD } +#if !__MACCATALYST__ public enum Arch { DEVICE, SIMULATOR } +#endif } #endif // MONOMAC