From de74384a22d602e404e1c5c237222f7a89ef31fb Mon Sep 17 00:00:00 2001 From: Erisu Date: Wed, 6 Apr 2022 13:02:16 +0900 Subject: [PATCH] fix: gh-action failing to find isiOSAppOnMac on processInfo --- src/ios/CDVDevice.m | 2 +- src/osx/CDVDevice.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ios/CDVDevice.m b/src/ios/CDVDevice.m index 675693a..db807de 100644 --- a/src/ios/CDVDevice.m +++ b/src/ios/CDVDevice.m @@ -117,7 +117,7 @@ - (BOOL)isVirtual - (BOOL) isiOSAppOnMac { if (@available(iOS 14.0, *)) { - return [NSProcessInfo processInfo].isiOSAppOnMac; + return [[NSProcessInfo processInfo] isiOSAppOnMac]; } else { // Fallback on earlier versions, and platforms return false; diff --git a/src/osx/CDVDevice.m b/src/osx/CDVDevice.m index 0cef13a..a396693 100644 --- a/src/osx/CDVDevice.m +++ b/src/osx/CDVDevice.m @@ -112,7 +112,7 @@ + (NSString*) cordovaVersion { + (BOOL) isiOSAppOnMac { if (@available(iOS 14.0, *)) { - return [NSProcessInfo processInfo].isiOSAppOnMac; + return [[NSProcessInfo processInfo] isiOSAppOnMac]; } else { // Fallback on earlier versions and platforms return false;