Skip to content

Android / iOS 平台配置

新项目的 AIR descriptor 默认不预先启用 Android 或 iOS。只有执行对应的 app config 后,CLI 才加入平台 section。

Android

bash
apm-cli app config android --target apk-debug --arch armv8

签名:

bash
apm-cli app config android --keystore .certs/android.p12

发布 AAB:

bash
apm-cli app config android --target aab
AIR_STOREPASS='<password>' apm-cli app package android --release

iOS

bash
apm-cli app config ios --target ipa-debug

签名与 provisioning:

bash
apm-cli app config ios   --keystore .certs/ios.p12   --provisioning-profile .certs/ios.mobileprovision

然后:

bash
AIR_STOREPASS='<password>' apm-cli app package ios

第三方 ANE 可能要求额外 entitlement、InfoAdditions、Android manifest、framework/resource;这些要求应来自对应 ANE/package 文档,而不是在模板中硬编码所有第三方能力。