diff --git a/Cargo.lock b/Cargo.lock index 7028fb8..df6db01 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1170,7 +1170,7 @@ checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" [[package]] name = "isideload" -version = "0.1.2" +version = "0.1.3" dependencies = [ "futures", "hex", diff --git a/isideload/Cargo.toml b/isideload/Cargo.toml index 741e7de..0af9bf0 100644 --- a/isideload/Cargo.toml +++ b/isideload/Cargo.toml @@ -3,7 +3,7 @@ name = "isideload" description = "Sideload iOS/iPadOS applications" license = "MPL-2.0" authors = ["Nicholas Sharp "] -version = "0.1.2" +version = "0.1.3" edition = "2024" repository = "https://github.com/nab138/isideload" documentation = "https://docs.rs/isideload" diff --git a/isideload/src/sideload.rs b/isideload/src/sideload.rs index 93b1a6d..93fee7d 100644 --- a/isideload/src/sideload.rs +++ b/isideload/src/sideload.rs @@ -40,6 +40,13 @@ pub async fn sideload_app( } }; + if let Ok(pairing_file) = device_provider.get_pairing_file().await { + lockdown_client + .start_session(&pairing_file) + .await + .map_err(|e| Error::IdeviceError(e))?; + } + let device_name = lockdown_client .get_value("DeviceName", None) .await