Skip to content

Latest commit

 

History

History
72 lines (51 loc) · 1.74 KB

File metadata and controls

72 lines (51 loc) · 1.74 KB

App Analyzer Plugin for Bitrise CLI

A powerful tool for analyzing iOS app bundles, providing detailed insights about size, content, and potential optimizations.

Installation

Can be run directly with the Bitrise CLI.

bitrise plugin install https://github.com/birmacher/bitrise-plugins-analyze.git

Usage

Basic command structure:

bitrise :analyze [path] [flags]

Arguments

  • path: Path to the app bundle (.app), archive (.xcarchive), or IPA file (.ipa)

Flags

  • --html: Generate an interactive HTML visualization report
  • --json: Generate a detailed JSON report
  • --markdown: Generate a markdown report with key insights
  • --output-dir: Directory where the output files will be generated (default: current directory)

Output Files

All generated files will use the app's bundle ID as the base filename:

  • HTML report: <bundle_id>.html
  • JSON report: <bundle_id>.json
  • Markdown report: <bundle_id>.md

Examples

  1. Basic analysis of an .app bundle:
bitrise :analyze MyApp.app
  1. Generate HTML visualization:
bitrise :analyze MyApp.ipa --html
  1. Generate all report formats:
bitrise :analyze MyApp.xcarchive --html --json --markdown
  1. Specify output directory:
bitrise :analyze MyApp.app --html --output-dir=/path/to/reports

Report Contents

The analysis provides detailed information about:

  • Basic app information (bundle ID, version, size)
  • Top 10 largest modules
  • Top 10 largest files
  • Duplicate content (both in file system and asset catalogs)

Requirements

  • macOS (required for iOS app bundle analysis)
  • Bitrise CLI installed
  • For analyzing .ipa files: ability to extract and process iOS app bundles