Uses URL schemes to determine whether apps are installed

This commit is contained in:
Riley Testut
2019-06-04 13:53:21 -07:00
parent 7c13c42d75
commit b69fb2408d
8 changed files with 165 additions and 58 deletions

View File

@@ -355,11 +355,11 @@ private extension ViewController
let zippedURL = try FileManager.default.zipAppBundle(at: appBundleURL)
let resigner = ALTSigner(team: team, certificate: certificate)
resigner.signApp(at: zippedURL, provisioningProfile: profile) { (resignedURL, error) in
resigner.signApp(at: zippedURL, provisioningProfile: profile) { (success, error) in
do
{
let resignedURL = try Result(resignedURL, error).get()
ALTDeviceManager.shared.installApp(at: resignedURL, toDeviceWithUDID: device.identifier) { (success, error) in
try Result(success, error).get()
ALTDeviceManager.shared.installApp(at: ipaURL, toDeviceWithUDID: device.identifier) { (success, error) in
let result = Result(success, error)
print(result)
}