# jezzmemo/JJException

Protect the objective-c application(保护App不闪退)

Repository: https://github.com/jezzmemo/JJException
Canonical: https://ross.abutalabs.com/products/jjexception
Language: Objective-C
License: MIT
License Family: permissive
Topics: crash, hook, ios, exception-protect, swizzle-method
Last push: 2022-12-03T09:15:43+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2981, "days_push": 1369, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1633, forks 272 (observed 2026-08-28T04:05:14.251093+00:00)

## What it is
JJException is an Objective-C library that prevents common runtime crashes in iOS and macOS apps by hooking error-prone APIs such as unrecognized selectors, array/dictionary out-of-bounds access, KVO misuse, NSTimer, NSNotification, and string index errors. It intercepts these exceptions, keeps the app running, and forwards exception records to a custom handler for logging and later fixes.

## Use cases
- prevent ios app from crashing on unrecognized selector
- protect against nsarray out of bounds crash
- avoid kvo crash when observer not removed
- fix nstimer memory leak crash
- catch nsnull crashes in objective-c app
- log runtime exceptions instead of crashing the app

## When to choose
- you maintain a legacy Objective-C iOS app prone to runtime crashes
- you want a stopgap crash shield while preparing a proper fix or hot-patch
- you need configurable, category-based crash protection with custom logging

## When to avoid
- you are building a new Swift-only project with modern safe APIs
- you want a full crash reporting/analytics solution rather than crash prevention
- the project needs actively maintained dependencies - last release was 2022

## Facets
- artifact type: library
- maturity: maintenance
- function: error-handling, logging, middleware
- domain: mobile-development, developer-tools
- platform: cross-platform
- tags: crash-protection, objective-c, method-swizzling, exception-handling, cocoapods, ios-sdk, ios, macos, mobile

## Member repositories
- jezzmemo/JJException (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:14.251093+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:47:20.572935+00:00, confidence not recorded.
  - readme: https://github.com/jezzmemo/JJException (fetched 2026-08-28T04:05:14.251093+00:00, sha bbef1331b802)
- Data as of 2026-08-30T08:39:29.467469+00:00.
