Skip to content

Commit 63ab988

Browse files
authored
Add visionOS tracking to analytics (#8481)
1 parent 6b1b7a8 commit 63ab988

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Realm/RLMAnalytics.mm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,9 @@ static auto RLMSysCtl(int *mib, u_int mibSize, size_t *bufferSize) {
255255
@"Target OS Version": [[NSProcessInfo processInfo] operatingSystemVersionString],
256256
// Minimum OS version the app is targeting
257257
@"Target OS Minimum Version": info[@"MinimumOSVersion"] ?: info[@"LSMinimumSystemVersion"] ?: kUnknownString,
258-
#if TARGET_OS_WATCH
258+
#if defined(TARGET_OS_VISION) && TARGET_OS_VISION // TARGET_OS_VISION first defined in Xcode 15.2
259+
@"Target OS Type": @"visionos",
260+
#elif TARGET_OS_WATCH
259261
@"Target OS Type": @"watchos",
260262
#elif TARGET_OS_TV
261263
@"Target OS Type": @"tvos",

0 commit comments

Comments
 (0)