cocos_set_native_build_config
Configure iOS or Android native build settings in Cocos Creator projects by setting orientation, icons, signing credentials, and API levels in builder.json.
Instructions
Configure iOS or Android native build settings in builder.json.
platform: 'ios' or 'android'. orientation: 'portrait' / 'landscape' / 'auto'. icon_path / splash_path: paths to PNG files (relative to project). ios_team_id: Apple Developer Team ID (10-char string). android_min_api / android_target_api: Android API levels (e.g. 21 / 30). android_use_debug_keystore=True for dev builds; set False + provide keystore_path/password/alias/alias_password for release signing. android_app_bundle: True to produce .aab instead of .apk.
All fields are optional — None leaves existing values unchanged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| platform | Yes | ||
| package_name | No | ||
| orientation | No | ||
| icon_path | No | ||
| splash_path | No | ||
| ios_team_id | No | ||
| android_min_api | No | ||
| android_target_api | No | ||
| android_use_debug_keystore | No | ||
| android_keystore_path | No | ||
| android_keystore_password | No | ||
| android_keystore_alias | No | ||
| android_keystore_alias_password | No | ||
| android_app_bundle | No |