getsentry/reaper-ios
A framework for detecting dead code at runtime - Reaper is an SDK added to your app to report which Swift and Objective-C types were used for each user session. It supports all classes written in Objective-C, most non-generic Swift classes, and some Swift structs/enums.
Installation
Swift Package Manager
Add Reaper as a dependency with Swift package manager using the URL https://github.com/getsentry/Reaper-iOS.git
CocoaPods
Add Reaper to your Podfile:
target 'MyApp' do
pod 'Reaper', '~> 2.0.1'
endXCFramework
Download the latest XCFramework from Github releases.
Setup
Start the SDK at app launch by adding the following code:
import Reaper
...
EMGReaper.sharedInstance().start { types in
// Handle list of used types
}Determining all types
Run tsc ./Scripts/main.ts then node ./Scripts/main.ts PATH_TO_YOUR_APP.app
Resources
Package Metadata
Repository: getsentry/reaper-ios
Default branch: main
README: README.md