Skip to content

Commit

Permalink
fix the errors from previous commits
Browse files Browse the repository at this point in the history
  • Loading branch information
junepark678 committed Dec 27, 2024
1 parent 9cb216c commit 88d6c2d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Sources/CAltSign/Apple API/ALTAppleAPI.m
Original file line number Diff line number Diff line change
Expand Up @@ -427,20 +427,21 @@ - (void)updateAppID:(ALTAppID *)appID team:(ALTTeam *)team session:(ALTAppleAPIS
{
parameters[feature] = appID.features[feature];
}

NSMutableDictionary *entitlementss = [appID.entitlements mutableCopy];

if (team.type == ALTTeamTypeFree)
for (int i = 0; i < appID.entitlements.count; i++)
if (team.type == ALTTeamTypeFree) {
for (ALTEntitlement entitlement in appID.entitlements)
{
ALTEntitlement *entitlement = appID.entitlements[i];
if (!ALTFreeDeveloperCanUseEntitlement(entitlement))
{
// remove entitlement from appID.entitlements
[appID.entitlements removeObjectAtIndex:i];
[entitlementss removeObjectForKey:entitlement];
}
}
}

// parameters[@"capabilities"] = @[ALTCapabilityIncreasedMemoryLimit, ALTCapabilityIncreasedDebuggingMemoryLimit, ALTCapabilityExtendedVirtualAddressing];
[parameters setObject:appID.entitlements forKey:@"entitlements"];
[parameters setObject:entitlementss forKey:@"entitlements"];
[self sendRequestWithURL:URL additionalParameters:parameters
session:session team:team completionHandler:^(NSDictionary *responseDictionary, NSError *requestError) {
if (responseDictionary == nil)
Expand Down

0 comments on commit 88d6c2d

Please sign in to comment.