mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-11 15:53:30 +01:00
[AltServer] Fixes installing outdated profile after app installation
This commit is contained in:
@@ -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])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user