Disables “Revoked AltStore Certificate” check for debug builds

This commit is contained in:
Riley Testut
2020-01-21 17:14:16 -08:00
parent b6ac0b5f06
commit bcee0f5577

View File

@@ -524,6 +524,9 @@ private extension AuthenticationOperation
// If we're not using the same certificate used to install AltStore, warn user that they need to refresh. // If we're not using the same certificate used to install AltStore, warn user that they need to refresh.
guard !provisioningProfile.certificates.contains(signer.certificate) else { return completionHandler(false) } guard !provisioningProfile.certificates.contains(signer.certificate) else { return completionHandler(false) }
#if DEBUG
completionHandler(false)
#else
DispatchQueue.main.async { DispatchQueue.main.async {
let refreshViewController = self.storyboard.instantiateViewController(withIdentifier: "refreshAltStoreViewController") as! RefreshAltStoreViewController let refreshViewController = self.storyboard.instantiateViewController(withIdentifier: "refreshAltStoreViewController") as! RefreshAltStoreViewController
refreshViewController.signer = signer refreshViewController.signer = signer
@@ -537,6 +540,7 @@ private extension AuthenticationOperation
completionHandler(false) completionHandler(false)
} }
} }
#endif
} }
} }