From 45cbc6de83ec23265f33763720a3ec0aeada8b0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Wed, 25 Jun 2025 09:17:13 +0800 Subject: [PATCH] OS (macOS): force reporting 26 on macOS Tahoe Fix #1809 --- src/detection/os/os_apple.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/detection/os/os_apple.m b/src/detection/os/os_apple.m index 5da14ad45..654d32889 100644 --- a/src/detection/os/os_apple.m +++ b/src/detection/os/os_apple.m @@ -25,6 +25,11 @@ static void parseSystemVersion(FFOSResult* os) ffStrbufInitS(&os->version, value.UTF8String); if((value = dict[@"ProductBuildVersion"])) ffStrbufInitS(&os->buildID, value.UTF8String); + if (ffStrbufStartsWithS(&os->version, "16.")) + { + // macOS 26 Tahoe. #1809 + os->version.chars[0] = '2'; + } } static bool detectOSCodeName(FFOSResult* os)