https://github.com/testableapple/xcsize
https://github.com/testableapple/xcsize
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/testableapple/xcsize
- Owner: testableapple
- License: mit
- Created: 2025-10-08T18:39:13.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-10-09T11:20:57.000Z (7 months ago)
- Last Synced: 2025-10-10T13:10:40.621Z (7 months ago)
- Language: Ruby
- Size: 12.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```ruby
gem 'xcsize'
```
And then execute:
```bash
$ bundle install
```
Or install it yourself as:
```bash
$ gem install xcsize
```
## Usage
### Profile a single linkmap
```bash
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
```bash
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](https://github.com/fastlane/fastlane) integration
To get started with [xcsize fastlane plugin](https://github.com/testableapple/fastlane-plugin-xcsize), add it to your project by running:
```bash
fastlane add_plugin xcsize
```
### Usage
```ruby
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](LICENSE) file.