From a4cd5a14881d52d6c93f7357c3ffbcd45d9c27d9 Mon Sep 17 00:00:00 2001 From: Karl Stenerud Date: Thu, 15 Aug 2024 12:47:33 +0200 Subject: [PATCH] Remove call to os_proc_available_memory() on Mac Catalyst due to missing API implementation on earlier Catalyst version --- Bugsnag/Helpers/BSGRunContext.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bugsnag/Helpers/BSGRunContext.m b/Bugsnag/Helpers/BSGRunContext.m index 9b6411ae5..6ac18d539 100644 --- a/Bugsnag/Helpers/BSGRunContext.m +++ b/Bugsnag/Helpers/BSGRunContext.m @@ -460,8 +460,8 @@ static void UpdateTaskMemory(void) { if (task_vm.limit_bytes_remaining) { setMemoryUsage(footprint, task_vm.limit_bytes_remaining); } else { -#if !TARGET_OS_OSX - if (@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macCatalyst 13.1, *)) { +#if !TARGET_OS_OSX && !TARGET_OS_MACCATALYST + if (@available(iOS 13.0, tvOS 13.0, watchOS 6.0, *)) { setMemoryUsage(footprint, os_proc_available_memory()); } #endif