Struct crossbundle_lib::commands::build::apple::IosBuildCommand
source · [−]pub struct IosBuildCommand {
pub shared: SharedBuildCommand,
pub bin: Option<String>,
pub target: Vec<IosTarget>,
pub strategy: IosStrategy,
pub profile_name: Option<String>,
pub profile_path: Option<PathBuf>,
pub team_identifier: Option<String>,
pub identity: Option<String>,
}Fields
bin: Option<String>Specify custom cargo binary.
target: Vec<IosTarget>Build for the given apple architecture.
Supported targets are: aarch64-apple-ios, aarch64-apple-ios-sim,
armv7-apple-ios, armv7s-apple-ios, i386-apple-ios, x86_64-apple-ios
strategy: IosStrategyBuild strategy specifies what and how to build iOS application: with help of XCode, or with our native approach.
profile_name: Option<String>Provisioning profile name to find in this directory:
~/Library/MobileDevice/Provisioning\ Profiles/.
profile_path: Option<PathBuf>Absolute path to provisioning profile.
team_identifier: Option<String>The team identifier of your signing identity.
identity: Option<String>The id of the identity used for signing. It won’t start the signing process until you provide this flag.
Implementations
sourceimpl IosBuildCommand
impl IosBuildCommand
pub fn run(&self, config: &Config) -> Result<()>
pub fn execute(
&self,
config: &Config,
context: &BuildContext
) -> Result<(InfoPlist, Vec<PathBuf>)>
sourcepub fn apple_build_targets(
context: &BuildContext,
profile: Profile,
build_targets: &Vec<IosTarget>
) -> Vec<IosTarget>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn apple_build_targets(
context: &BuildContext,
profile: Profile,
build_targets: &Vec<IosTarget>
) -> Vec<IosTarget>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Get apple build targets from cargo manifest
sourcepub fn gen_info_plist(
context: &BuildContext,
package_name: &str
) -> Result<InfoPlist>
pub fn gen_info_plist(
context: &BuildContext,
package_name: &str
) -> Result<InfoPlist>
Get info plist from the path in cargo manifest or generate it with the given configuration
sourcepub fn prepare_assets_and_resources(
config: &CrossbowMetadata,
out_dir: &Path
) -> Result<(Option<PathBuf>, Option<PathBuf>)>
pub fn prepare_assets_and_resources(
config: &CrossbowMetadata,
out_dir: &Path
) -> Result<(Option<PathBuf>, Option<PathBuf>)>
Prepare assets and resources for the application.
Trait Implementations
sourceimpl Args for IosBuildCommand
impl Args for IosBuildCommand
sourceimpl Clone for IosBuildCommand
impl Clone for IosBuildCommand
sourcefn clone(&self) -> IosBuildCommand
fn clone(&self) -> IosBuildCommand
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl CommandFactory for IosBuildCommand
impl CommandFactory for IosBuildCommand
sourcefn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Deprecated, replaced with CommandFactory::command_for_update
sourcefn command_for_update<'help>() -> App<'help>
fn command_for_update<'help>() -> App<'help>
sourceimpl Debug for IosBuildCommand
impl Debug for IosBuildCommand
sourceimpl FromArgMatches for IosBuildCommand
impl FromArgMatches for IosBuildCommand
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
sourcefn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
sourcefn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
Assign values from ArgMatches to self.
sourcefn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
Assign values from ArgMatches to self.
sourceimpl Parser for IosBuildCommand
impl Parser for IosBuildCommand
sourcefn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
sourcefn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
sourcefn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, exit on error
sourcefn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.
Auto Trait Implementations
impl RefUnwindSafe for IosBuildCommand
impl Send for IosBuildCommand
impl Sync for IosBuildCommand
impl Unpin for IosBuildCommand
impl UnwindSafe for IosBuildCommand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more