https://github.com/janlionly/objecttracker
Detecting an object deallocing which proivdes a closure callback.
https://github.com/janlionly/objecttracker
dealloc deallocation ios-app memory-hacking memory-leak object-detection objective-c swift
Last synced: 4 months ago
JSON representation
Detecting an object deallocing which proivdes a closure callback.
- Host: GitHub
- URL: https://github.com/janlionly/objecttracker
- Owner: janlionly
- License: mit
- Created: 2020-10-16T11:35:35.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-16T11:45:23.000Z (about 5 years ago)
- Last Synced: 2025-08-22T05:46:09.481Z (5 months ago)
- Topics: dealloc, deallocation, ios-app, memory-hacking, memory-leak, object-detection, objective-c, swift
- Language: Shell
- Homepage: https://github.com/janlionly/ObjectTracker
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ObjectTracker
[](https://cocoapods.org/pods/ObjectTracker)
[](https://github.com/Carthage/Carthage)
[](https://github.com/janlionly/ObjectTracker/blob/master/LICENSE)
[](https://github.com/janlionly/ObjectTracker)

## Description
**ObjectTracker** which is detecting an object's deallocing, when occurs, it proivdes a closure callback. Compatible with both Swift and Objective-C.
## Installation
### CocoaPods
```ruby
pod 'ObjectTracker'
```
### Carthage
```ruby
github "janlionly/ObjectTracker"
```
### Swift Package Manager
- iOS: Open Xcode, File->Swift Packages, search input **https://github.com/janlionly/ObjectTracker.git**, and then select Version Up to Next Major **0.0.1** < .
- Or add dependencies in your `Package.swift`:
```swift
.package(url: "https://github.com/janlionly/ObjectTracker.git", .upToNextMajor(from: "0.0.1")),
```
## Usage
```swift
// your detecting ctrl
ObjectTracker.trackObject(ctrl) { (ctrl) in
print("============= \(ctrl) deinit =============")
}
```
## Requirements
- iOS 9.0+
- Swift 4.2 to 5.2
## Author
Visit my github: [janlionly](https://github.com/janlionly)
Contact with me by email: janlionly@gmail.com
## Contribute
I would love you to contribute to **ObjectTracker**
## License
**ObjectTracker** is available under the MIT license. See the [LICENSE](https://github.com/janlionly/ObjectTracker/blob/master/LICENSE) file for more info.