use plume_core::developer::DeveloperSession;
#[tokio::main]
async fn main() -> Result<(), plume_core::Error> {
let session = DeveloperSession::using_account(account).await?;
// Get team
let teams = session.qh_list_teams().await?;
let team_id = &teams.teams[0].team_id;
// Create app ID
let app_id = session.qh_ensure_app_id(
team_id,
&"My App".to_string(),
&"com.example.myapp".to_string()
).await?;
// Get provisioning profile
let profile = session.qh_get_profile(
team_id,
&app_id.app_id_id
).await?;
// Save profile
tokio::fs::write(
"embedded.mobileprovision",
&profile.provisioning_profile.encoded_profile
).await?;
Ok(())
}