Disables JIT on iOS 14.4

JIT no longer works on iOS 14.4 beta 2, so disable for now until it (hopefully) works again.
This commit is contained in:
Riley Testut 2021-01-19 13:04:27 -06:00
parent 7034b1dd8a
commit 1871f69aca

View File

@ -26,7 +26,10 @@ extension UIDevice
}
var supportsJIT: Bool {
guard #available(iOS 14.2, *) else { return false }
// As of iOS 14.4 beta 2, JIT is no longer supported :(
// Hopefully this change is reversed before the public release...
let ios14_4 = OperatingSystemVersion(majorVersion: 14, minorVersion: 4, patchVersion: 0)
guard #available(iOS 14.2, *), !ProcessInfo.processInfo.isOperatingSystemAtLeast(ios14_4) else { return false }
// JIT is supported on devices with an A12 processor or better running iOS 14.2 or later.
// ARKit 3 is only supported by devices with an A12 processor or better, according to the documentation.