12345678910111213141516 |
- use super::{ensure_init, env, with_config, Error, MobileTarget};
- use crate::Result;
- use cargo_mobile::os;
- pub fn command() -> Result<()> {
- with_config(
- Some(Default::default()),
- |_root_conf, config, _metadata, _cli_options| {
- ensure_init(config.project_dir(), MobileTarget::Ios)
- .map_err(|e| Error::ProjectNotInitialized(e.to_string()))?;
- let env = env()?;
- os::open_file_with("Xcode", config.project_dir(), &env).map_err(Error::OpenFailed)
- },
- )
- .map_err(Into::into)
- }
|