[AltServer] Fixes installing outdated profile after app installation

This commit is contained in:
Riley Testut
2020-03-30 15:06:16 -07:00
parent 162139d52b
commit 197c3b3338

View File

@@ -115,6 +115,15 @@ NSNotificationName const ALTDeviceManagerDeviceDidDisconnectNotification = @"ALT
}
[cachedProfiles enumerateKeysAndObjectsUsingBlock:^(NSString *bundleID, ALTProvisioningProfile *profile, BOOL * _Nonnull stop) {
for (ALTProvisioningProfile *installedProfile in installedProfiles)
{
if ([installedProfile.bundleIdentifier isEqualToString:profile.bundleIdentifier])
{
// Don't reinstall cached profile because it was installed with the app.
return;
}
}
NSError *installError = nil;
if (![self installProvisioningProfile:profile misagent:mis error:&installError])
{