Skip to content

Commit

Permalink
fix: fix os version (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhao900914 authored Mar 8, 2023
1 parent a02a97c commit 23fcf7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Amplitude/AMPDeviceInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ - (NSString *)osVersion {
if (!_osVersion) {
#if TARGET_OS_WATCH
_osVersion = [[WKInterfaceDevice currentDevice] systemVersion];
#elif !TARGET_OS_OSX
#elif !TARGET_OS_OSX && !TARGET_OS_MACCATALYST
_osVersion = [[UIDevice currentDevice] systemVersion];
#else
NSOperatingSystemVersion systemVersion = [[NSProcessInfo processInfo] operatingSystemVersion];
Expand Down

0 comments on commit 23fcf7d

Please sign in to comment.