Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

Reaper-iOS

> 编程语言
Open source

A tool for detecting unused code

193 stars0 likes1 views
WebsiteGitHub

About

A tool for detecting unused code

Reaper

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.

The framework detects the set of classes that are used, and the Scripts directory in this repo contains a program to determine the set of all possible types that reaper can detect. The difference of these sets are the unused types.

See additional resources below.

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:

ruby
target 'MyApp' do
  pod 'Reaper', '~> 2.0.1'
end

XCFramework

Download the latest XCFramework from Github releases.

Setup

Start the SDK at app launch by adding the following code:

swift
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

  • Example backend
  • Performance & Size Impact
  • Open sourcing Reaper
  • Launch Blog Post.
  • Reaper for Android

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScripttag-production

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言