From 1871f69acadce892a9248c20e0d06cc9ed9fa948 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Tue, 19 Jan 2021 13:04:27 -0600 Subject: [PATCH] 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. --- Delta/Extensions/UIDevice+Processor.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Delta/Extensions/UIDevice+Processor.swift b/Delta/Extensions/UIDevice+Processor.swift index c6f6933..2f84c4c 100644 --- a/Delta/Extensions/UIDevice+Processor.swift +++ b/Delta/Extensions/UIDevice+Processor.swift @@ -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.