Start lockdown session to support tcp

This commit is contained in:
nab138
2025-08-13 00:26:07 -04:00
parent 4a3bfb671b
commit 6c2d323e14
3 changed files with 9 additions and 2 deletions

2
Cargo.lock generated
View File

@@ -1170,7 +1170,7 @@ checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
[[package]]
name = "isideload"
version = "0.1.2"
version = "0.1.3"
dependencies = [
"futures",
"hex",

View File

@@ -3,7 +3,7 @@ name = "isideload"
description = "Sideload iOS/iPadOS applications"
license = "MPL-2.0"
authors = ["Nicholas Sharp <nab@nabdev.me>"]
version = "0.1.2"
version = "0.1.3"
edition = "2024"
repository = "https://github.com/nab138/isideload"
documentation = "https://docs.rs/isideload"

View File

@@ -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