Skip to content

Commit 1beddc4

Browse files
author
Doan Truong Thi
committed
Disable on Simulator
1 parent c5de31b commit 1beddc4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Classes/DTTJailbreakDetection.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ @implementation DTTJailbreakDetection
2626

2727
+ (BOOL)isJailbroken
2828
{
29+
#if !(TARGET_IPHONE_SIMULATOR)
30+
2931
NSFileManager *fileManager = [NSFileManager defaultManager];
3032

3133
if ([fileManager fileExistsAtPath:@"/Applications/Cydia.app"]) {
@@ -57,6 +59,8 @@ + (BOOL)isJailbroken
5759
return YES;
5860
}
5961

62+
#endif
63+
6064
return NO;
6165
}
6266

0 commit comments

Comments
 (0)