Skip to main content

generate_ios_project

Function generate_ios_project 

Source
pub fn generate_ios_project(
    output_dir: &Path,
    project_slug: &str,
    project_pascal: &str,
    bundle_prefix: &str,
    default_function: &str,
) -> Result<(), BenchError>
Available on crate feature full only.
Expand description

Generates iOS project structure from templates

This function can be called standalone to generate just the iOS project scaffolding, useful for auto-generation during build.

§Arguments

  • output_dir - Directory to write the ios/ project into
  • project_slug - Project name (e.g., “bench-mobile” -> “bench_mobile”)
  • project_pascal - PascalCase version of project name (e.g., “BenchMobile”)
  • bundle_prefix - iOS bundle ID prefix (e.g., “dev.world.bench”)
  • default_function - Default benchmark function to use (e.g., “bench_mobile::my_benchmark”)