From 1f7924b773eb8c85e0b1f704e0aab1835812ca7a Mon Sep 17 00:00:00 2001 From: Nicholas Sharp Date: Mon, 16 Feb 2026 21:11:54 -0500 Subject: [PATCH] Add ApplicationVerificationFailed to list of known errors (#72) * Add ApplicationVerificationFailed to list of known errors * Add missing cfg directive --- idevice/src/lib.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/idevice/src/lib.rs b/idevice/src/lib.rs index ba62ed0..856664b 100644 --- a/idevice/src/lib.rs +++ b/idevice/src/lib.rs @@ -869,6 +869,10 @@ pub enum IdeviceError { #[cfg(feature = "notification_proxy")] #[error("notification proxy died")] NotificationProxyDeath = -69, + + #[cfg(feature = "installation_proxy")] + #[error("Application verification failed: {0}")] + ApplicationVerificationFailed(String) = -70, } impl IdeviceError { @@ -912,6 +916,15 @@ impl IdeviceError { Some(Self::InternalError(detailed_error)) } } + #[cfg(feature = "installation_proxy")] + "ApplicationVerificationFailed" => { + let msg = context + .get("ErrorDescription") + .and_then(|x| x.as_string()) + .unwrap_or("No context") + .to_string(); + Some(Self::ApplicationVerificationFailed(msg)) + } _ => None, } } @@ -1037,6 +1050,9 @@ impl IdeviceError { #[cfg(feature = "notification_proxy")] IdeviceError::NotificationProxyDeath => -69, + + #[cfg(feature = "installation_proxy")] + IdeviceError::ApplicationVerificationFailed(_) => -70, } } }