Merge remote-tracking branch 'origin/develop' into feature/f1shy-mdc

This commit is contained in:
f1shy-dev
2023-03-24 19:04:16 +00:00
28 changed files with 558 additions and 858 deletions

View File

@@ -478,10 +478,13 @@ extension FetchProvisioningProfilesOperation
ALTAppleAPI.shared.delete(profile, for: team, session: session) { (success, error) in
switch Result(success, error)
{
case .failure(let error): completionHandler(.failure(error))
case .success:
case .failure:
// As of March 20, 2023, the free provisioning profile is re-generated each fetch, and you can no longer delete it.
// So instead, we just return the fetched profile from above.
completionHandler(.success(profile))
// Fetch new provisiong profile
case .success:
// Fetch new provisioning profile
ALTAppleAPI.shared.fetchProvisioningProfile(for: appID, deviceType: .iphone, team: team, session: session) { (profile, error) in
completionHandler(Result(profile, error))
}

View File

@@ -119,45 +119,45 @@ enum OperationError: LocalizedError {
func minimuxer_to_operation(code: Int32) -> OperationError {
switch code {
case -1:
case 1:
return OperationError.noDevice
case -2:
case 2:
return OperationError.createService(name: "debug")
case -3:
case 3:
return OperationError.createService(name: "instproxy")
case -4:
case 4:
return OperationError.getFromDevice(name: "installed apps")
case -5:
case 5:
return OperationError.getFromDevice(name: "path to the app")
case -6:
case 6:
return OperationError.getFromDevice(name: "bundle path")
case -7:
case 7:
return OperationError.setArgument(name: "max packet")
case -8:
case 8:
return OperationError.setArgument(name: "working directory")
case -9:
case 9:
return OperationError.setArgument(name: "argv")
case -10:
case 10:
return OperationError.getFromDevice(name: "launch success")
case -11:
case 11:
return OperationError.detach
case -12:
case 12:
return OperationError.functionArguments
case -13:
case 13:
return OperationError.createService(name: "AFC")
case -14:
case 14:
return OperationError.afc
case -15:
case 15:
return OperationError.install
case -16:
case 16:
return OperationError.uninstall
case -17:
case 17:
return OperationError.createService(name: "misagent")
case -18:
case 18:
return OperationError.profileInstall
case -19:
case 19:
return OperationError.profileInstall
case -20:
case 20:
return OperationError.noConnection
default:
return OperationError.unknown