matiastripode

ios-ci-cd

0
0
# Install this skill:
npx skills add matiastripode/ios-agent-skills --skill "ios-ci-cd"

Install specific skill from multi-skill repository

# Description

Guides building, testing, archiving, and deploying iOS apps via xcodebuild, Fastlane, and TestFlight

# SKILL.md


name: ios-ci-cd
description: Guides building, testing, archiving, and deploying iOS apps via xcodebuild, Fastlane, and TestFlight


iOS CI/CD

An agent skill for building, testing, archiving, and deploying iOS apps from the command line.

When to Activate

  • User asks to build, test, or archive an iOS app
  • User asks about CI/CD setup for iOS
  • User asks about code signing, Fastlane, or TestFlight
  • User runs /ios-build or /ios-archive

Decision Tree

What does the user need?
β”œβ”€β”€ Build the app
β”‚   β”œβ”€β”€ For development/testing β†’ xcodebuild build
β”‚   β”œβ”€β”€ For distribution β†’ xcodebuild archive + exportArchive
β”‚   └── Read references/xcodebuild-commands.md
β”œβ”€β”€ Run tests
β”‚   β”œβ”€β”€ Unit tests β†’ xcodebuild test (specific test target)
β”‚   β”œβ”€β”€ UI tests β†’ xcodebuild test (UI test target with simulator)
β”‚   └── Read references/xcodebuild-commands.md
β”œβ”€β”€ Code signing issues
β”‚   β”œβ”€β”€ Local development β†’ Automatic signing in Xcode
β”‚   β”œβ”€β”€ CI environment β†’ Manual signing or Fastlane match
β”‚   └── Read references/signing-guide.md
β”œβ”€β”€ Automate with Fastlane
β”‚   └── Read references/fastlane-patterns.md
└── Distribute via TestFlight
    └── Read references/testflight-checklist.md

Common Workflow Sequences

Local development build + test:

xcodebuild build -workspace App.xcworkspace -scheme App -destination 'platform=iOS Simulator,name=iPhone 16' | xcpretty
xcodebuild test -workspace App.xcworkspace -scheme App -destination 'platform=iOS Simulator,name=iPhone 16' | xcpretty

CI: Build, test, archive, upload:

fastlane match appstore --readonly
fastlane scan
fastlane gym
fastlane pilot upload

Reference Documents

  • references/xcodebuild-commands.md - Build, test, archive commands
  • references/fastlane-patterns.md - Fastlane setup and lanes
  • references/signing-guide.md - Certificates, profiles, entitlements
  • references/testflight-checklist.md - Pre-submission and distribution

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.