XCSize

A Ruby gem to profile iOS and macOS app and framework sizes from linkmap files, providing detailed breakdowns and insights.

Installation

Add this line to your application's Gemfile:

gem 'xcsize'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install xcsize

Usage

Profile a single linkmap

xcsize profile --linkmap path/to/your/linkmap.txt

Options:

  • --linkmap STRING - Linkmap file path
  • --threshold BYTES - Minimum size threshold in bytes (default: 0)

Compare two linkmaps

xcsize compare --old-linkmap old_linkmap.txt --new-linkmap new_linkmap.txt

Options:

  • --old-linkmap STRING - Old linkmap file path
  • --new-linkmap STRING - New linkmap file path
  • --threshold BYTES - Minimum size threshold in bytes (default: 0)

fastlane integration

To get started with xcsize fastlane plugin, add it to your project by running:

fastlane add_plugin xcsize

Usage

lane :test do
  xcsize(linkmap: 'path/to/your/linkmap.txt')

  xcsize_diff(old_linkmap: 'path/to/your/old_linkmap.txt', new_linkmap: 'path/to/your/new_linkmap.txt')
end

License

This project is licensed under the terms of the MIT license. See the LICENSE file.