CLI tool for Swift app code analysis and metrics tracking
Top 34.1% on sourcepulse
SwiftInfo is a command-line tool designed for iOS developers to extract, track, and analyze code metrics and build statistics. It helps monitor the evolution of an app's codebase over time, providing insights into size, code coverage, test counts, build durations, and more, with the goal of improving development workflows and identifying potential issues.
How It Works
SwiftInfo operates by parsing build logs generated by Xcode's build system. It leverages providers, which are specific modules designed to extract particular metrics (e.g., IPA size, code coverage, lines of code). Users configure SwiftInfo via an Infofile.swift
script, specifying log file paths and the desired providers. The tool can integrate with build automation tools like fastlane or be used with manually captured xcodebuild
logs.
Quick Start & Requirements
pod 'SwiftInfo'
brew tap rockbruno/SwiftInfo && brew install rockbruno/SwiftInfo/swiftinfo
fastlane
(via scan
and gym
with buildlog_path
) is recommended.Infofile.swift
in the project root.make swiftinfo
in example folder).Highlighted Details
danger-SwiftInfo
for pull request analysis.SwiftInfo-Reader
.Maintenance & Community
The project README states: "I don't intend to ship further updates to this tool."
Licensing & Compatibility
MIT License. Compatible with commercial and closed-source projects.
Limitations & Caveats
The project is in maintenance mode with no plans for further updates. Swift Package Manager is not supported.
2 years ago
1 day