|
|
@@ -272,14 +272,24 @@ static BOOL HasEmbeddedMobileProvision() {
|
|
|
#if TARGET_OS_MACCATALYST
|
|
|
applePlatform = @"maccatalyst";
|
|
|
#elif TARGET_OS_IOS
|
|
|
+
|
|
|
+#if defined(__IPHONE_14_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 140000
|
|
|
+ if (@available(iOS 14.0, *)) {
|
|
|
+ applePlatform = [NSProcessInfo processInfo].isiOSAppOnMac ? @"ios_on_mac" : @"ios";
|
|
|
+ } else {
|
|
|
+ applePlatform = @"ios";
|
|
|
+ }
|
|
|
+#else // defined(__IPHONE_14_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 140000
|
|
|
applePlatform = @"ios";
|
|
|
+#endif // defined(__IPHONE_14_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 140000
|
|
|
+
|
|
|
#elif TARGET_OS_TV
|
|
|
applePlatform = @"tvos";
|
|
|
#elif TARGET_OS_OSX
|
|
|
applePlatform = @"macos";
|
|
|
#elif TARGET_OS_WATCH
|
|
|
applePlatform = @"watchos";
|
|
|
-#endif
|
|
|
+#endif // TARGET_OS_MACCATALYST
|
|
|
|
|
|
return applePlatform;
|
|
|
}
|