mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Logs sideloading-related events with OSLog
This commit is contained in:
@@ -49,6 +49,8 @@ final class ResignAppOperation: ResultOperation<ALTApplication>
|
||||
"self.context.certificate is nil")))
|
||||
}
|
||||
|
||||
Logger.sideload.notice("Resigning app \(self.context.bundleIdentifier, privacy: .public)...")
|
||||
|
||||
// Prepare app bundle
|
||||
let prepareAppProgress = Progress.discreteProgress(totalUnitCount: 2)
|
||||
self.progress.addChild(prepareAppProgress, withPendingUnitCount: 3)
|
||||
@@ -56,8 +58,6 @@ final class ResignAppOperation: ResultOperation<ALTApplication>
|
||||
let prepareAppBundleProgress = self.prepareAppBundle(for: app, profiles: profiles) { (result) in
|
||||
guard let appBundleURL = self.process(result) else { return }
|
||||
|
||||
print("Resigning App:", self.context.bundleIdentifier)
|
||||
|
||||
// Resign app bundle
|
||||
let resignProgress = self.resignAppBundle(at: appBundleURL, team: team, certificate: certificate, profiles: Array(profiles.values)) { (result) in
|
||||
guard let resignedURL = self.process(result) else { return }
|
||||
@@ -71,6 +71,9 @@ final class ResignAppOperation: ResultOperation<ALTApplication>
|
||||
|
||||
// Use appBundleURL since we need an app bundle, not .ipa.
|
||||
guard let resignedApplication = ALTApplication(fileURL: appBundleURL) else { throw OperationError.invalidApp }
|
||||
|
||||
Logger.sideload.notice("Resigned app \(self.context.bundleIdentifier, privacy: .public) to \(resignedApplication.bundleIdentifier, privacy: .public).")
|
||||
|
||||
self.finish(.success(resignedApplication))
|
||||
}
|
||||
catch
|
||||
|
||||
Reference in New Issue
Block a user