pub enum AppleError {
Show 18 variants
Assets(AssetError),
AssetPipeline(AssetPipelineError),
InvalidRequest(String),
InvalidConfig(String),
UnsupportedHost {
host: String,
},
ToolMissing {
tool: String,
searched: Vec<Utf8PathBuf>,
fix: String,
},
XcodeMissing {
developer_dir: Option<Utf8PathBuf>,
fix: String,
},
SimulatorSdkMissing {
fix: String,
},
RustTargetMissing {
target: String,
},
CommandSpawn {
stage: String,
program: Utf8PathBuf,
source: Error,
},
CommandTimedOut {
stage: String,
program: Utf8PathBuf,
log: Option<Utf8PathBuf>,
},
ProcessOutputTooLarge {
stage: String,
program: Utf8PathBuf,
stream: String,
limit_bytes: usize,
log: Option<Utf8PathBuf>,
},
CommandInterrupted {
stage: String,
program: Utf8PathBuf,
},
CommandFailed {
stage: String,
program: Utf8PathBuf,
status: String,
summary: String,
log: Option<Box<Utf8PathBuf>>,
},
Io {
operation: &'static str,
path: Utf8PathBuf,
source: Error,
},
UnsafeGeneratedPath {
path: Utf8PathBuf,
reason: String,
},
InvalidArtifact {
path: Utf8PathBuf,
reason: String,
},
NonUtf8Path(PathBuf),
}Expand description
Failure while discovering, generating, building, or validating an Apple artifact.
Variants§
Assets(AssetError)
Project icon or splash asset validation failed.
AssetPipeline(AssetPipelineError)
Deterministic platform asset generation or cache validation failed.
InvalidRequest(String)
A request value cannot safely enter a generated project or process argument.
InvalidConfig(String)
ferry.toml failed semantic validation.
UnsupportedHost
iOS builds were requested on a non-macOS host.
ToolMissing
A required Apple or Rust executable was not found.
Fields
searched: Vec<Utf8PathBuf>Candidate paths inspected.
XcodeMissing
The selected developer directory is not a full Xcode installation.
Fields
developer_dir: Option<Utf8PathBuf>Selected developer directory, when one was found.
SimulatorSdkMissing
Xcode does not expose an iPhone Simulator SDK.
RustTargetMissing
The required Rust target is absent.
CommandSpawn
An external command could not be started.
Fields
program: Utf8PathBufExecutable path.
CommandTimedOut
An external command exceeded its deadline.
Fields
program: Utf8PathBufExecutable path.
log: Option<Utf8PathBuf>Redacted diagnostic log, when requested.
ProcessOutputTooLarge
An external command exceeded the per-stream output memory limit.
Fields
program: Utf8PathBufExecutable path.
log: Option<Utf8PathBuf>Diagnostic log containing only the retained prefixes.
CommandInterrupted
Cancellation interrupted an external build tool.
CommandFailed
An external command returned a non-zero status.
Fields
program: Utf8PathBufExecutable path.
log: Option<Box<Utf8PathBuf>>Redacted diagnostic log, when requested.
Io
A filesystem operation failed.
Fields
path: Utf8PathBufAffected path.
UnsafeGeneratedPath
A generated path escaped or traversed a protected boundary.
InvalidArtifact
Independent artifact validation rejected an app or extension bundle.
NonUtf8Path(PathBuf)
A platform path cannot be represented by this crate’s UTF-8 API.
Trait Implementations§
Source§impl Debug for AppleError
impl Debug for AppleError
Source§impl Display for AppleError
impl Display for AppleError
Source§impl Error for AppleError
impl Error for AppleError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()