Mobile Native Build Skill
When to Use
Use this skill to automate the building of native iOS and Android applications, ensuring that environmental configurations and dependencies are correctly resolved.
Prerequisites
- Native build environment (Xcode for iOS, Android Studio/SDK for Android).
- Validated
mobile-patterns.jsonKnowledge Item. - Access to the repository containing the mobile source code.
Process
- Configure Environment: Set the necessary environment variables and paths.
- Clean Project: Run
cleancommands to ensure a fresh build. - Trigger Build: Use the
run_native_buildtool for the target platform. - Collect Artifacts: Safeguard the resulting
.ipaor.apkfiles.
Best Practices
- Dependency Isolation: Use dependency managers like CocoaPods or Gradle to manage external libraries.
- Uniform Environments: Use consistent build agents to avoid "works on my machine" issues.
- Fast Fail: Configure builds to stop immediately on the first error.