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.
This commit is contained in:
Mike O. Abidakun
2018-03-30 21:36:44 +01:00
parent ffd05b16a5
commit ead9ec4656

View File

@@ -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")