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 installOr install it yourself as:
$ gem install xcsizeUsage
Profile a single linkmap
xcsize profile --linkmap path/to/your/linkmap.txtOptions:
-
--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.txtOptions:
-
--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 xcsizeUsage
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')
endLicense
This project is licensed under the terms of the MIT license. See the LICENSE file.