Skip to content

Commit 095c752

Browse files
committed
remove FBRetainCycleDetector
1 parent b5702cc commit 095c752

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

MLeaksFinder.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ Pod::Spec.new do |s|
3838

3939
s.public_header_files = 'MLeaksFinder/MLeaksFinder.h', 'MLeaksFinder/NSObject+MemoryLeak.h'
4040
# s.frameworks = 'UIKit', 'MapKit'
41-
s.dependency 'FBRetainCycleDetector'
41+
# s.dependency 'FBRetainCycleDetector'
4242
end

MLeaksFinder/MLeaksFinder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#define _INTERNAL_MLF_ENABLED DEBUG
1717
#endif
1818

19-
//#define MEMORY_LEAKS_FINDER_RETAIN_CYCLE_ENABLED 1
19+
#define MEMORY_LEAKS_FINDER_RETAIN_CYCLE_ENABLED 0
2020

2121
#ifdef MEMORY_LEAKS_FINDER_RETAIN_CYCLE_ENABLED
2222
#define _INTERNAL_MLF_RC_ENABLED MEMORY_LEAKS_FINDER_RETAIN_CYCLE_ENABLED

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ pod 'MLeaksFinder'
1212
```
1313
MLeaksFinder comes into effect after `pod install`, there is no need to add any code nor to import any header file.
1414

15+
*WARNING: FBRetainCycleDetector is removed from the podspec due to Facebook's BSD-plus-Patents license. If you want to use FBRetainCycleDetector to find retain cycle, add `pod 'FBRetainCycleDetector'` to your project's Podfile and turn the macro `MEMORY_LEAKS_FINDER_RETAIN_CYCLE_ENABLED` on in `MLeaksFinder.h`.*
16+
1517
# Usage
1618
MLeaksFinder can automatically find leaks in UIView and UIViewController objects. When leaks happening, it will present an alert with the leaked object in its View-ViewController stack.
1719
```

0 commit comments

Comments
 (0)