提交 8c15aa79 编写于 作者: Y yixiangboy

集成最新的FBRetainCycleDetector

上级 3d3ddacd
......@@ -18,7 +18,7 @@
//#define MEMORY_LEAKS_FINDER_RETAIN_CYCLE_ENABLED 1
#ifdef MEMORY_LEAKS_FINDER_RETAIN_CYCLE_ENABLED
#if MEMORY_LEAKS_FINDER_RETAIN_CYCLE_ENABLED
#define _INTERNAL_MLF_RC_ENABLED MEMORY_LEAKS_FINDER_RETAIN_CYCLE_ENABLED
#elif __has_include(<FBRetainCycleDetector/FBRetainCycleDetector.h>)
#define _INTERNAL_MLF_RC_ENABLED 1
......
......@@ -14,6 +14,12 @@
//#import <CocoaLumberjack/CocoaLumberjack.h>
#import "DoraemonUtil.h"
#if __has_include(<FBRetainCycleDetector/FBRetainCycleDetector.h>)
#define XXX 1
#else
#define XXX 2
#endif
@interface DoKitAppDelegate ()
@end
......@@ -74,11 +80,21 @@
//[DoraemonTimeProfiler stopRecord];
[self test];
return YES;
}
- (void)test{
[self test2];
}
- (void)test2{
NSLog(@"a == %zi",XXX);
}
void uncaughtExceptionHandler(NSException*exception){
NSLog(@"CRASH: %@", exception);
NSLog(@"Stack Trace: %@",[exception callStackSymbols]);
......
......@@ -19,4 +19,6 @@ target :'DoraemonKitDemo' do
pod 'DoraemonKit', :subspecs => ['Core','WithGPS','WithGPS', 'WithMLeaksFinder', 'WithDatabase'], :path => '../../'
pod 'AFNetworking','2.6.3'
pod 'SDWebImage', '5.0.6'
pod 'FBRetainCycleDetector', :git => 'git@github.com:facebook/FBRetainCycleDetector.git', :configurations => ['Debug']
#pod 'FBRetainCycleDetector'
end
......@@ -37,6 +37,7 @@ PODS:
- BSBacktraceLogger
- DoraemonKit/Core
- fishhook
- FBRetainCycleDetector (0.1.4)
- fishhook (0.2)
- FMDB (2.7.5):
- FMDB/standard (= 2.7.5)
......@@ -57,6 +58,7 @@ DEPENDENCIES:
- DoraemonKit/WithDatabase (from `../../`)
- DoraemonKit/WithGPS (from `../../`)
- DoraemonKit/WithMLeaksFinder (from `../../`)
- "FBRetainCycleDetector (from `git@github.com:facebook/FBRetainCycleDetector.git`)"
- SDWebImage (= 5.0.6)
SPEC REPOS:
......@@ -72,17 +74,25 @@ SPEC REPOS:
EXTERNAL SOURCES:
DoraemonKit:
:path: "../../"
FBRetainCycleDetector:
:git: "git@github.com:facebook/FBRetainCycleDetector.git"
CHECKOUT OPTIONS:
FBRetainCycleDetector:
:commit: 19fd284845b8454dbb75a648baa47d99b7708b74
:git: "git@github.com:facebook/FBRetainCycleDetector.git"
SPEC CHECKSUMS:
AFNetworking: cb8d14a848e831097108418f5d49217339d4eb60
BSBacktraceLogger: 06b983ee93a9f87d957960e9c73d660d5966b447
DoraemonKit: a636f4aca0689106b1719bd0a44249074ef942ba
FBRetainCycleDetector: 46daef95c2dfa9be34b53087edf6a8f34e4c749c
fishhook: ea19933abfe8f2f52c55fd8b6e2718467d3ebc89
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
GCDWebServer: c0ab22c73e1b84f358d1e2f74bf6afd1c60829f2
SDWebImage: 920f1a2ff1ca8296ad34f6e0510a1ef1d70ac965
YYDebugDatabase: c8be8bd85222cc2ced76e93ca06618bab87224d7
PODFILE CHECKSUM: 6b926999502c573aa59855d165e5c5dc38998390
PODFILE CHECKSUM: e3a8ed916535f347ac18202d838b851eea330ef8
COCOAPODS: 1.8.4
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册