Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit 0264639

Browse files
authored
Fix async functions
1 parent 5fbbe20 commit 0264639

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Sources/prostore/install/installApp.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Foundation
22
import IDeviceSwift
33

4-
public async func installApp(from ipaURL: URL) throws {
4+
public func installApp(from ipaURL: URL) async throws {
55
print("Installing app from \(ipaURL.path)...")
66

77
// Heartbeat

Sources/prostore/signing/DownloadSignManager.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ private func signIPA(ipaURL: URL, p12URL: URL, provURL: URL, password: String, a
173173
}
174174
},
175175
completion: { [weak self] result in
176+
Task {
176177
DispatchQueue.main.async {
177178
switch result {
178179
case .success(let signedIPAURL):
@@ -181,7 +182,7 @@ private func signIPA(ipaURL: URL, p12URL: URL, provURL: URL, password: String, a
181182
self?.showSuccess = true
182183

183184
do {
184-
try installApp(from: signedIPAURL)
185+
try await installApp(from: signedIPAURL)
185186
} catch {
186187
self?.status = "❌ Install failed: \(error.localizedDescription)"
187188
}
@@ -203,6 +204,7 @@ private func signIPA(ipaURL: URL, p12URL: URL, provURL: URL, password: String, a
203204
}
204205
}
205206
}
207+
}
206208
)
207209
}
208210

0 commit comments

Comments
 (0)