mirror of
https://github.com/UrbanApps/Armchair.git
synced 2026-03-25 19:01:47 +01:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user