mirror of
https://github.com/UrbanApps/Armchair.git
synced 2026-03-20 00:24:34 +01:00
Merge pull request #80 from OliverZiegler/swift3
Update check for iOS Simulator
This commit is contained in:
@@ -1399,13 +1399,15 @@ open class Manager : ArmchairManager {
|
||||
}
|
||||
}
|
||||
|
||||
if UIDevice.current.model.range(of: "Simulator") != nil {
|
||||
// Check for iOS simulator
|
||||
#if (arch(i386) || arch(x86_64)) && os(iOS)
|
||||
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")
|
||||
let fakeURL = reviewURLString().replacingOccurrences(of: "itms-apps", with:"http")
|
||||
debugLog(" - Or try copy/pasting \(fakeURL) into a browser on your computer.")
|
||||
}
|
||||
#endif
|
||||
|
||||
#elseif os(OSX)
|
||||
if let url = URL(string: reviewURLString()) {
|
||||
let opened = NSWorkspace.shared().open(url)
|
||||
|
||||
Reference in New Issue
Block a user