chenfanfang/AvoidCrash
This framework can effective avoid crash by potential error code. For example : If you insert a nil into a mutable array, this framework can avoid crash and note you that where cause crash. observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3632
- days_rel: n/a
- days_push: 2362
- n_releases_24m: 0
Adoption not part of the score
1645 stars · 384 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
AvoidCrash is an Objective-C framework for iOS that uses runtime method swizzling to intercept common Foundation framework errors, such as inserting nil into a mutable array or array out-of-bounds access, preventing app crashes. It logs detailed information about the code that would have caused the crash so developers can locate and fix the underlying issue.
Use cases
- prevent app crashes from nil inserted into mutable arrays
- avoid crashes from array index out of bounds
- handle nil keys when setting dictionary values
- log details of potential crashes instead of crashing in production
- report avoided crash info to crash collection SDKs like Bugly
- keep an iOS app alive when server returns malformed data
When to choose
- you maintain a legacy Objective-C iOS app prone to Foundation-related crashes
- you want to prevent crashes caused by unexpected nil or malformed server data
- you need crash diagnostics without integrating a full crash reporting SDK
When to avoid
- you are starting a new project in Swift where these Foundation pitfalls are less common
- you need a framework actively maintained and compatible with the latest iOS system versions
- you rely on the prefix-based swizzling mode, which the author discourages
Facets
framework · maturity abandoned
error-handling developer-tools mobile-development developer-tools objective-c runtime-swizzling crash-prevention foundation ios-app-stability ios macos
1 source
- readme: https://github.com/chenfanfang/AvoidCrash · fetched 2026-08-28 · 0ce3e42ba077
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| chenfanfang/AvoidCrash | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="chenfanfang/AvoidCrash")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem