From ead9ec4656105151750a3d9283fdb739693724fe Mon Sep 17 00:00:00 2001 From: "Mike O. Abidakun" Date: Fri, 30 Mar 2018 21:36:44 +0100 Subject: [PATCH] Replaces code for checking the platform and OS version, with a simplified call that meets the original intent. The original intent was to check if the code was running in an iOS simulator on an x86 architecture. This solution was provided by a FixIt in Xcode-9.3. --- Source/Armchair.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Armchair.swift b/Source/Armchair.swift index ac34a74..6d918a9 100644 --- a/Source/Armchair.swift +++ b/Source/Armchair.swift @@ -1447,8 +1447,8 @@ open class Manager : ArmchairManager { UIApplication.shared.openURL(url) } } - // Check for iOS simulator - #if (arch(i386) || arch(x86_64)) && os(iOS) + + #if targetEnvironment(simulator) debugLog("iTunes App Store is not supported on the iOS simulator.") debugLog(" - We would have went to \(reviewURLString()).") debugLog(" - Try running on a test-device")