Skip to content

Commit

Permalink
Remove call to os_proc_available_memory() on Mac Catalyst due to miss…
Browse files Browse the repository at this point in the history
…ing API implementation on earlier Catalyst version
  • Loading branch information
kstenerud committed Aug 15, 2024
1 parent 2328a0f commit a4cd5a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bugsnag/Helpers/BSGRunContext.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a4cd5a1

Please sign in to comment.