diff --git a/react-native/RealmAnalytics.mm b/react-native/RealmAnalytics.mm index f4d91f19..49d23699 100644 --- a/react-native/RealmAnalytics.mm +++ b/react-native/RealmAnalytics.mm @@ -42,7 +42,7 @@ #import "RealmAnalytics.h" -#if TARGET_IPHONE_SIMULATOR || TARGET_OS_MAC +#if TARGET_IPHONE_SIMULATOR || !TARGET_OS_IPHONE #import #import #import @@ -188,10 +188,10 @@ static NSDictionary *RLMAnalyticsPayload() { @"Framework": @"react-native", @"Virtual Machine": @"jsc", @"Realm Version": [[@(RealmReactVersionString) componentsSeparatedByString:@"-"] lastObject] ?: kUnknownString, -#if TARGET_OS_MAC - @"Target OS Type": @"osx", -#else +#if TARGET_OS_IPHONE @"Target OS Type": @"ios", +#else + @"Target OS Type": @"osx", #endif // Current OS version the app is targetting @"Target OS Version": [[NSProcessInfo processInfo] operatingSystemVersionString],