├── Jailbreak Detection ├── Jailbreak Detection.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcuserdata │ │ │ └── BillyEllis.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ └── xcuserdata │ │ └── BillyEllis.xcuserdatad │ │ └── xcschemes │ │ ├── Jailbreak Detection.xcscheme │ │ └── xcschememanagement.plist ├── Jailbreak Detection │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ ├── ViewController.h │ ├── ViewController.m │ └── main.m ├── Jailbreak DetectionTests │ ├── Info.plist │ └── Jailbreak_DetectionTests.m └── Jailbreak DetectionUITests │ ├── Info.plist │ └── Jailbreak_DetectionUITests.m └── README.md /Jailbreak Detection/Jailbreak Detection.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | F0D7DD261C9443A30098188D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = F0D7DD251C9443A30098188D /* main.m */; }; 11 | F0D7DD291C9443A30098188D /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = F0D7DD281C9443A30098188D /* AppDelegate.m */; }; 12 | F0D7DD2C1C9443A30098188D /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F0D7DD2B1C9443A30098188D /* ViewController.m */; }; 13 | F0D7DD2F1C9443A30098188D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F0D7DD2D1C9443A30098188D /* Main.storyboard */; }; 14 | F0D7DD311C9443A30098188D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F0D7DD301C9443A30098188D /* Assets.xcassets */; }; 15 | F0D7DD341C9443A30098188D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F0D7DD321C9443A30098188D /* LaunchScreen.storyboard */; }; 16 | F0D7DD3F1C9443A30098188D /* Jailbreak_DetectionTests.m in Sources */ = {isa = PBXBuildFile; fileRef = F0D7DD3E1C9443A30098188D /* Jailbreak_DetectionTests.m */; }; 17 | F0D7DD4A1C9443A40098188D /* Jailbreak_DetectionUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = F0D7DD491C9443A40098188D /* Jailbreak_DetectionUITests.m */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | F0D7DD3B1C9443A30098188D /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = F0D7DD191C9443A30098188D /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = F0D7DD201C9443A30098188D; 26 | remoteInfo = "Jailbreak Detection"; 27 | }; 28 | F0D7DD461C9443A40098188D /* PBXContainerItemProxy */ = { 29 | isa = PBXContainerItemProxy; 30 | containerPortal = F0D7DD191C9443A30098188D /* Project object */; 31 | proxyType = 1; 32 | remoteGlobalIDString = F0D7DD201C9443A30098188D; 33 | remoteInfo = "Jailbreak Detection"; 34 | }; 35 | /* End PBXContainerItemProxy section */ 36 | 37 | /* Begin PBXFileReference section */ 38 | F0D7DD211C9443A30098188D /* Jailbreak Detection.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Jailbreak Detection.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | F0D7DD251C9443A30098188D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 40 | F0D7DD271C9443A30098188D /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 41 | F0D7DD281C9443A30098188D /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 42 | F0D7DD2A1C9443A30098188D /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 43 | F0D7DD2B1C9443A30098188D /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 44 | F0D7DD2E1C9443A30098188D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 45 | F0D7DD301C9443A30098188D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 46 | F0D7DD331C9443A30098188D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 47 | F0D7DD351C9443A30098188D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 48 | F0D7DD3A1C9443A30098188D /* Jailbreak DetectionTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Jailbreak DetectionTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | F0D7DD3E1C9443A30098188D /* Jailbreak_DetectionTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Jailbreak_DetectionTests.m; sourceTree = ""; }; 50 | F0D7DD401C9443A30098188D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 51 | F0D7DD451C9443A40098188D /* Jailbreak DetectionUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Jailbreak DetectionUITests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | F0D7DD491C9443A40098188D /* Jailbreak_DetectionUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Jailbreak_DetectionUITests.m; sourceTree = ""; }; 53 | F0D7DD4B1C9443A40098188D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 54 | /* End PBXFileReference section */ 55 | 56 | /* Begin PBXFrameworksBuildPhase section */ 57 | F0D7DD1E1C9443A30098188D /* Frameworks */ = { 58 | isa = PBXFrameworksBuildPhase; 59 | buildActionMask = 2147483647; 60 | files = ( 61 | ); 62 | runOnlyForDeploymentPostprocessing = 0; 63 | }; 64 | F0D7DD371C9443A30098188D /* Frameworks */ = { 65 | isa = PBXFrameworksBuildPhase; 66 | buildActionMask = 2147483647; 67 | files = ( 68 | ); 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | F0D7DD421C9443A40098188D /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | ); 76 | runOnlyForDeploymentPostprocessing = 0; 77 | }; 78 | /* End PBXFrameworksBuildPhase section */ 79 | 80 | /* Begin PBXGroup section */ 81 | F0D7DD181C9443A20098188D = { 82 | isa = PBXGroup; 83 | children = ( 84 | F0D7DD231C9443A30098188D /* Jailbreak Detection */, 85 | F0D7DD3D1C9443A30098188D /* Jailbreak DetectionTests */, 86 | F0D7DD481C9443A40098188D /* Jailbreak DetectionUITests */, 87 | F0D7DD221C9443A30098188D /* Products */, 88 | ); 89 | sourceTree = ""; 90 | }; 91 | F0D7DD221C9443A30098188D /* Products */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | F0D7DD211C9443A30098188D /* Jailbreak Detection.app */, 95 | F0D7DD3A1C9443A30098188D /* Jailbreak DetectionTests.xctest */, 96 | F0D7DD451C9443A40098188D /* Jailbreak DetectionUITests.xctest */, 97 | ); 98 | name = Products; 99 | sourceTree = ""; 100 | }; 101 | F0D7DD231C9443A30098188D /* Jailbreak Detection */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | F0D7DD271C9443A30098188D /* AppDelegate.h */, 105 | F0D7DD281C9443A30098188D /* AppDelegate.m */, 106 | F0D7DD2A1C9443A30098188D /* ViewController.h */, 107 | F0D7DD2B1C9443A30098188D /* ViewController.m */, 108 | F0D7DD2D1C9443A30098188D /* Main.storyboard */, 109 | F0D7DD301C9443A30098188D /* Assets.xcassets */, 110 | F0D7DD321C9443A30098188D /* LaunchScreen.storyboard */, 111 | F0D7DD351C9443A30098188D /* Info.plist */, 112 | F0D7DD241C9443A30098188D /* Supporting Files */, 113 | ); 114 | path = "Jailbreak Detection"; 115 | sourceTree = ""; 116 | }; 117 | F0D7DD241C9443A30098188D /* Supporting Files */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | F0D7DD251C9443A30098188D /* main.m */, 121 | ); 122 | name = "Supporting Files"; 123 | sourceTree = ""; 124 | }; 125 | F0D7DD3D1C9443A30098188D /* Jailbreak DetectionTests */ = { 126 | isa = PBXGroup; 127 | children = ( 128 | F0D7DD3E1C9443A30098188D /* Jailbreak_DetectionTests.m */, 129 | F0D7DD401C9443A30098188D /* Info.plist */, 130 | ); 131 | path = "Jailbreak DetectionTests"; 132 | sourceTree = ""; 133 | }; 134 | F0D7DD481C9443A40098188D /* Jailbreak DetectionUITests */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | F0D7DD491C9443A40098188D /* Jailbreak_DetectionUITests.m */, 138 | F0D7DD4B1C9443A40098188D /* Info.plist */, 139 | ); 140 | path = "Jailbreak DetectionUITests"; 141 | sourceTree = ""; 142 | }; 143 | /* End PBXGroup section */ 144 | 145 | /* Begin PBXNativeTarget section */ 146 | F0D7DD201C9443A30098188D /* Jailbreak Detection */ = { 147 | isa = PBXNativeTarget; 148 | buildConfigurationList = F0D7DD4E1C9443A40098188D /* Build configuration list for PBXNativeTarget "Jailbreak Detection" */; 149 | buildPhases = ( 150 | F0D7DD1D1C9443A30098188D /* Sources */, 151 | F0D7DD1E1C9443A30098188D /* Frameworks */, 152 | F0D7DD1F1C9443A30098188D /* Resources */, 153 | ); 154 | buildRules = ( 155 | ); 156 | dependencies = ( 157 | ); 158 | name = "Jailbreak Detection"; 159 | productName = "Jailbreak Detection"; 160 | productReference = F0D7DD211C9443A30098188D /* Jailbreak Detection.app */; 161 | productType = "com.apple.product-type.application"; 162 | }; 163 | F0D7DD391C9443A30098188D /* Jailbreak DetectionTests */ = { 164 | isa = PBXNativeTarget; 165 | buildConfigurationList = F0D7DD511C9443A40098188D /* Build configuration list for PBXNativeTarget "Jailbreak DetectionTests" */; 166 | buildPhases = ( 167 | F0D7DD361C9443A30098188D /* Sources */, 168 | F0D7DD371C9443A30098188D /* Frameworks */, 169 | F0D7DD381C9443A30098188D /* Resources */, 170 | ); 171 | buildRules = ( 172 | ); 173 | dependencies = ( 174 | F0D7DD3C1C9443A30098188D /* PBXTargetDependency */, 175 | ); 176 | name = "Jailbreak DetectionTests"; 177 | productName = "Jailbreak DetectionTests"; 178 | productReference = F0D7DD3A1C9443A30098188D /* Jailbreak DetectionTests.xctest */; 179 | productType = "com.apple.product-type.bundle.unit-test"; 180 | }; 181 | F0D7DD441C9443A40098188D /* Jailbreak DetectionUITests */ = { 182 | isa = PBXNativeTarget; 183 | buildConfigurationList = F0D7DD541C9443A40098188D /* Build configuration list for PBXNativeTarget "Jailbreak DetectionUITests" */; 184 | buildPhases = ( 185 | F0D7DD411C9443A40098188D /* Sources */, 186 | F0D7DD421C9443A40098188D /* Frameworks */, 187 | F0D7DD431C9443A40098188D /* Resources */, 188 | ); 189 | buildRules = ( 190 | ); 191 | dependencies = ( 192 | F0D7DD471C9443A40098188D /* PBXTargetDependency */, 193 | ); 194 | name = "Jailbreak DetectionUITests"; 195 | productName = "Jailbreak DetectionUITests"; 196 | productReference = F0D7DD451C9443A40098188D /* Jailbreak DetectionUITests.xctest */; 197 | productType = "com.apple.product-type.bundle.ui-testing"; 198 | }; 199 | /* End PBXNativeTarget section */ 200 | 201 | /* Begin PBXProject section */ 202 | F0D7DD191C9443A30098188D /* Project object */ = { 203 | isa = PBXProject; 204 | attributes = { 205 | LastUpgradeCheck = 0720; 206 | ORGANIZATIONNAME = "Billy Ellis"; 207 | TargetAttributes = { 208 | F0D7DD201C9443A30098188D = { 209 | CreatedOnToolsVersion = 7.2; 210 | }; 211 | F0D7DD391C9443A30098188D = { 212 | CreatedOnToolsVersion = 7.2; 213 | TestTargetID = F0D7DD201C9443A30098188D; 214 | }; 215 | F0D7DD441C9443A40098188D = { 216 | CreatedOnToolsVersion = 7.2; 217 | TestTargetID = F0D7DD201C9443A30098188D; 218 | }; 219 | }; 220 | }; 221 | buildConfigurationList = F0D7DD1C1C9443A30098188D /* Build configuration list for PBXProject "Jailbreak Detection" */; 222 | compatibilityVersion = "Xcode 3.2"; 223 | developmentRegion = English; 224 | hasScannedForEncodings = 0; 225 | knownRegions = ( 226 | en, 227 | Base, 228 | ); 229 | mainGroup = F0D7DD181C9443A20098188D; 230 | productRefGroup = F0D7DD221C9443A30098188D /* Products */; 231 | projectDirPath = ""; 232 | projectRoot = ""; 233 | targets = ( 234 | F0D7DD201C9443A30098188D /* Jailbreak Detection */, 235 | F0D7DD391C9443A30098188D /* Jailbreak DetectionTests */, 236 | F0D7DD441C9443A40098188D /* Jailbreak DetectionUITests */, 237 | ); 238 | }; 239 | /* End PBXProject section */ 240 | 241 | /* Begin PBXResourcesBuildPhase section */ 242 | F0D7DD1F1C9443A30098188D /* Resources */ = { 243 | isa = PBXResourcesBuildPhase; 244 | buildActionMask = 2147483647; 245 | files = ( 246 | F0D7DD341C9443A30098188D /* LaunchScreen.storyboard in Resources */, 247 | F0D7DD311C9443A30098188D /* Assets.xcassets in Resources */, 248 | F0D7DD2F1C9443A30098188D /* Main.storyboard in Resources */, 249 | ); 250 | runOnlyForDeploymentPostprocessing = 0; 251 | }; 252 | F0D7DD381C9443A30098188D /* Resources */ = { 253 | isa = PBXResourcesBuildPhase; 254 | buildActionMask = 2147483647; 255 | files = ( 256 | ); 257 | runOnlyForDeploymentPostprocessing = 0; 258 | }; 259 | F0D7DD431C9443A40098188D /* Resources */ = { 260 | isa = PBXResourcesBuildPhase; 261 | buildActionMask = 2147483647; 262 | files = ( 263 | ); 264 | runOnlyForDeploymentPostprocessing = 0; 265 | }; 266 | /* End PBXResourcesBuildPhase section */ 267 | 268 | /* Begin PBXSourcesBuildPhase section */ 269 | F0D7DD1D1C9443A30098188D /* Sources */ = { 270 | isa = PBXSourcesBuildPhase; 271 | buildActionMask = 2147483647; 272 | files = ( 273 | F0D7DD2C1C9443A30098188D /* ViewController.m in Sources */, 274 | F0D7DD291C9443A30098188D /* AppDelegate.m in Sources */, 275 | F0D7DD261C9443A30098188D /* main.m in Sources */, 276 | ); 277 | runOnlyForDeploymentPostprocessing = 0; 278 | }; 279 | F0D7DD361C9443A30098188D /* Sources */ = { 280 | isa = PBXSourcesBuildPhase; 281 | buildActionMask = 2147483647; 282 | files = ( 283 | F0D7DD3F1C9443A30098188D /* Jailbreak_DetectionTests.m in Sources */, 284 | ); 285 | runOnlyForDeploymentPostprocessing = 0; 286 | }; 287 | F0D7DD411C9443A40098188D /* Sources */ = { 288 | isa = PBXSourcesBuildPhase; 289 | buildActionMask = 2147483647; 290 | files = ( 291 | F0D7DD4A1C9443A40098188D /* Jailbreak_DetectionUITests.m in Sources */, 292 | ); 293 | runOnlyForDeploymentPostprocessing = 0; 294 | }; 295 | /* End PBXSourcesBuildPhase section */ 296 | 297 | /* Begin PBXTargetDependency section */ 298 | F0D7DD3C1C9443A30098188D /* PBXTargetDependency */ = { 299 | isa = PBXTargetDependency; 300 | target = F0D7DD201C9443A30098188D /* Jailbreak Detection */; 301 | targetProxy = F0D7DD3B1C9443A30098188D /* PBXContainerItemProxy */; 302 | }; 303 | F0D7DD471C9443A40098188D /* PBXTargetDependency */ = { 304 | isa = PBXTargetDependency; 305 | target = F0D7DD201C9443A30098188D /* Jailbreak Detection */; 306 | targetProxy = F0D7DD461C9443A40098188D /* PBXContainerItemProxy */; 307 | }; 308 | /* End PBXTargetDependency section */ 309 | 310 | /* Begin PBXVariantGroup section */ 311 | F0D7DD2D1C9443A30098188D /* Main.storyboard */ = { 312 | isa = PBXVariantGroup; 313 | children = ( 314 | F0D7DD2E1C9443A30098188D /* Base */, 315 | ); 316 | name = Main.storyboard; 317 | sourceTree = ""; 318 | }; 319 | F0D7DD321C9443A30098188D /* LaunchScreen.storyboard */ = { 320 | isa = PBXVariantGroup; 321 | children = ( 322 | F0D7DD331C9443A30098188D /* Base */, 323 | ); 324 | name = LaunchScreen.storyboard; 325 | sourceTree = ""; 326 | }; 327 | /* End PBXVariantGroup section */ 328 | 329 | /* Begin XCBuildConfiguration section */ 330 | F0D7DD4C1C9443A40098188D /* Debug */ = { 331 | isa = XCBuildConfiguration; 332 | buildSettings = { 333 | ALWAYS_SEARCH_USER_PATHS = NO; 334 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 335 | CLANG_CXX_LIBRARY = "libc++"; 336 | CLANG_ENABLE_MODULES = YES; 337 | CLANG_ENABLE_OBJC_ARC = YES; 338 | CLANG_WARN_BOOL_CONVERSION = YES; 339 | CLANG_WARN_CONSTANT_CONVERSION = YES; 340 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 341 | CLANG_WARN_EMPTY_BODY = YES; 342 | CLANG_WARN_ENUM_CONVERSION = YES; 343 | CLANG_WARN_INT_CONVERSION = YES; 344 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 345 | CLANG_WARN_UNREACHABLE_CODE = YES; 346 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 347 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 348 | COPY_PHASE_STRIP = NO; 349 | DEBUG_INFORMATION_FORMAT = dwarf; 350 | ENABLE_STRICT_OBJC_MSGSEND = YES; 351 | ENABLE_TESTABILITY = YES; 352 | GCC_C_LANGUAGE_STANDARD = gnu99; 353 | GCC_DYNAMIC_NO_PIC = NO; 354 | GCC_NO_COMMON_BLOCKS = YES; 355 | GCC_OPTIMIZATION_LEVEL = 0; 356 | GCC_PREPROCESSOR_DEFINITIONS = ( 357 | "DEBUG=1", 358 | "$(inherited)", 359 | ); 360 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 361 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 362 | GCC_WARN_UNDECLARED_SELECTOR = YES; 363 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 364 | GCC_WARN_UNUSED_FUNCTION = YES; 365 | GCC_WARN_UNUSED_VARIABLE = YES; 366 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 367 | MTL_ENABLE_DEBUG_INFO = YES; 368 | ONLY_ACTIVE_ARCH = YES; 369 | SDKROOT = iphoneos; 370 | }; 371 | name = Debug; 372 | }; 373 | F0D7DD4D1C9443A40098188D /* Release */ = { 374 | isa = XCBuildConfiguration; 375 | buildSettings = { 376 | ALWAYS_SEARCH_USER_PATHS = NO; 377 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 378 | CLANG_CXX_LIBRARY = "libc++"; 379 | CLANG_ENABLE_MODULES = YES; 380 | CLANG_ENABLE_OBJC_ARC = YES; 381 | CLANG_WARN_BOOL_CONVERSION = YES; 382 | CLANG_WARN_CONSTANT_CONVERSION = YES; 383 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 384 | CLANG_WARN_EMPTY_BODY = YES; 385 | CLANG_WARN_ENUM_CONVERSION = YES; 386 | CLANG_WARN_INT_CONVERSION = YES; 387 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 388 | CLANG_WARN_UNREACHABLE_CODE = YES; 389 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 390 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 391 | COPY_PHASE_STRIP = NO; 392 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 393 | ENABLE_NS_ASSERTIONS = NO; 394 | ENABLE_STRICT_OBJC_MSGSEND = YES; 395 | GCC_C_LANGUAGE_STANDARD = gnu99; 396 | GCC_NO_COMMON_BLOCKS = YES; 397 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 398 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 399 | GCC_WARN_UNDECLARED_SELECTOR = YES; 400 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 401 | GCC_WARN_UNUSED_FUNCTION = YES; 402 | GCC_WARN_UNUSED_VARIABLE = YES; 403 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 404 | MTL_ENABLE_DEBUG_INFO = NO; 405 | SDKROOT = iphoneos; 406 | VALIDATE_PRODUCT = YES; 407 | }; 408 | name = Release; 409 | }; 410 | F0D7DD4F1C9443A40098188D /* Debug */ = { 411 | isa = XCBuildConfiguration; 412 | buildSettings = { 413 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 414 | INFOPLIST_FILE = "Jailbreak Detection/Info.plist"; 415 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 416 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 417 | PRODUCT_BUNDLE_IDENTIFIER = "com.billyellis.Jailbreak-Detection"; 418 | PRODUCT_NAME = "$(TARGET_NAME)"; 419 | }; 420 | name = Debug; 421 | }; 422 | F0D7DD501C9443A40098188D /* Release */ = { 423 | isa = XCBuildConfiguration; 424 | buildSettings = { 425 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 426 | INFOPLIST_FILE = "Jailbreak Detection/Info.plist"; 427 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 428 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 429 | PRODUCT_BUNDLE_IDENTIFIER = "com.billyellis.Jailbreak-Detection"; 430 | PRODUCT_NAME = "$(TARGET_NAME)"; 431 | }; 432 | name = Release; 433 | }; 434 | F0D7DD521C9443A40098188D /* Debug */ = { 435 | isa = XCBuildConfiguration; 436 | buildSettings = { 437 | BUNDLE_LOADER = "$(TEST_HOST)"; 438 | INFOPLIST_FILE = "Jailbreak DetectionTests/Info.plist"; 439 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 440 | PRODUCT_BUNDLE_IDENTIFIER = "com.billyellis.Jailbreak-DetectionTests"; 441 | PRODUCT_NAME = "$(TARGET_NAME)"; 442 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Jailbreak Detection.app/Jailbreak Detection"; 443 | }; 444 | name = Debug; 445 | }; 446 | F0D7DD531C9443A40098188D /* Release */ = { 447 | isa = XCBuildConfiguration; 448 | buildSettings = { 449 | BUNDLE_LOADER = "$(TEST_HOST)"; 450 | INFOPLIST_FILE = "Jailbreak DetectionTests/Info.plist"; 451 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 452 | PRODUCT_BUNDLE_IDENTIFIER = "com.billyellis.Jailbreak-DetectionTests"; 453 | PRODUCT_NAME = "$(TARGET_NAME)"; 454 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Jailbreak Detection.app/Jailbreak Detection"; 455 | }; 456 | name = Release; 457 | }; 458 | F0D7DD551C9443A40098188D /* Debug */ = { 459 | isa = XCBuildConfiguration; 460 | buildSettings = { 461 | INFOPLIST_FILE = "Jailbreak DetectionUITests/Info.plist"; 462 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 463 | PRODUCT_BUNDLE_IDENTIFIER = "com.billyellis.Jailbreak-DetectionUITests"; 464 | PRODUCT_NAME = "$(TARGET_NAME)"; 465 | TEST_TARGET_NAME = "Jailbreak Detection"; 466 | USES_XCTRUNNER = YES; 467 | }; 468 | name = Debug; 469 | }; 470 | F0D7DD561C9443A40098188D /* Release */ = { 471 | isa = XCBuildConfiguration; 472 | buildSettings = { 473 | INFOPLIST_FILE = "Jailbreak DetectionUITests/Info.plist"; 474 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 475 | PRODUCT_BUNDLE_IDENTIFIER = "com.billyellis.Jailbreak-DetectionUITests"; 476 | PRODUCT_NAME = "$(TARGET_NAME)"; 477 | TEST_TARGET_NAME = "Jailbreak Detection"; 478 | USES_XCTRUNNER = YES; 479 | }; 480 | name = Release; 481 | }; 482 | /* End XCBuildConfiguration section */ 483 | 484 | /* Begin XCConfigurationList section */ 485 | F0D7DD1C1C9443A30098188D /* Build configuration list for PBXProject "Jailbreak Detection" */ = { 486 | isa = XCConfigurationList; 487 | buildConfigurations = ( 488 | F0D7DD4C1C9443A40098188D /* Debug */, 489 | F0D7DD4D1C9443A40098188D /* Release */, 490 | ); 491 | defaultConfigurationIsVisible = 0; 492 | defaultConfigurationName = Release; 493 | }; 494 | F0D7DD4E1C9443A40098188D /* Build configuration list for PBXNativeTarget "Jailbreak Detection" */ = { 495 | isa = XCConfigurationList; 496 | buildConfigurations = ( 497 | F0D7DD4F1C9443A40098188D /* Debug */, 498 | F0D7DD501C9443A40098188D /* Release */, 499 | ); 500 | defaultConfigurationIsVisible = 0; 501 | }; 502 | F0D7DD511C9443A40098188D /* Build configuration list for PBXNativeTarget "Jailbreak DetectionTests" */ = { 503 | isa = XCConfigurationList; 504 | buildConfigurations = ( 505 | F0D7DD521C9443A40098188D /* Debug */, 506 | F0D7DD531C9443A40098188D /* Release */, 507 | ); 508 | defaultConfigurationIsVisible = 0; 509 | }; 510 | F0D7DD541C9443A40098188D /* Build configuration list for PBXNativeTarget "Jailbreak DetectionUITests" */ = { 511 | isa = XCConfigurationList; 512 | buildConfigurations = ( 513 | F0D7DD551C9443A40098188D /* Debug */, 514 | F0D7DD561C9443A40098188D /* Release */, 515 | ); 516 | defaultConfigurationIsVisible = 0; 517 | }; 518 | /* End XCConfigurationList section */ 519 | }; 520 | rootObject = F0D7DD191C9443A30098188D /* Project object */; 521 | } 522 | -------------------------------------------------------------------------------- /Jailbreak Detection/Jailbreak Detection.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Jailbreak Detection/Jailbreak Detection.xcodeproj/project.xcworkspace/xcuserdata/BillyEllis.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Billy-Ellis/Jailbreak-Detection-in-iOS-App/3ef89d281aa92f53a1b15208e8afba34e54cf363/Jailbreak Detection/Jailbreak Detection.xcodeproj/project.xcworkspace/xcuserdata/BillyEllis.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /Jailbreak Detection/Jailbreak Detection.xcodeproj/xcuserdata/BillyEllis.xcuserdatad/xcschemes/Jailbreak Detection.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 43 | 49 | 50 | 51 | 52 | 53 | 59 | 60 | 61 | 62 | 63 | 64 | 74 | 76 | 82 | 83 | 84 | 85 | 86 | 87 | 93 | 95 | 101 | 102 | 103 | 104 | 106 | 107 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /Jailbreak Detection/Jailbreak Detection.xcodeproj/xcuserdata/BillyEllis.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Jailbreak Detection.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | F0D7DD201C9443A30098188D 16 | 17 | primary 18 | 19 | 20 | F0D7DD391C9443A30098188D 21 | 22 | primary 23 | 24 | 25 | F0D7DD441C9443A40098188D 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /Jailbreak Detection/Jailbreak Detection/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // Jailbreak Detection 4 | // 5 | // Created by Billy Ellis on 12/03/2016. 6 | // Copyright © 2016 Billy Ellis. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /Jailbreak Detection/Jailbreak Detection/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // Jailbreak Detection 4 | // 5 | // Created by Billy Ellis on 12/03/2016. 6 | // Copyright © 2016 Billy Ellis. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | - (void)applicationWillResignActive:(UIApplication *)application { 24 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 26 | } 27 | 28 | - (void)applicationDidEnterBackground:(UIApplication *)application { 29 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | - (void)applicationWillEnterForeground:(UIApplication *)application { 34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /Jailbreak Detection/Jailbreak Detection/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /Jailbreak Detection/Jailbreak Detection/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /Jailbreak Detection/Jailbreak Detection/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /Jailbreak Detection/Jailbreak Detection/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /Jailbreak Detection/Jailbreak Detection/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // Jailbreak Detection 4 | // 5 | // Created by Billy Ellis on 12/03/2016. 6 | // Copyright © 2016 Billy Ellis. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /Jailbreak Detection/Jailbreak Detection/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // Jailbreak Detection 4 | // 5 | // Created by Billy Ellis on 12/03/2016. 6 | // Copyright © 2016 Billy Ellis. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | 11 | @interface ViewController () 12 | 13 | @end 14 | 15 | @implementation ViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | // Do any additional setup after loading the view, typically from a nib. 20 | } 21 | 22 | - (IBAction)jailbreakTestMethod:(id)sender { 23 | 24 | NSString *filePath = @"/Applications/Cydia.app"; 25 | if ([[NSFileManager defaultManager] fileExistsAtPath:filePath]) 26 | { 27 | UIAlertView *jbAlert = [[UIAlertView alloc]initWithTitle:@"Device" message:@"This device is jailbroken" delegate:self cancelButtonTitle:@"Dismiss" otherButtonTitles:nil]; 28 | [jbAlert show]; 29 | } 30 | else { 31 | UIAlertView *Alert = [[UIAlertView alloc]initWithTitle:@"Device" message:@"This device is not jailbroken" delegate:self cancelButtonTitle:@"Dismiss" otherButtonTitles:nil]; 32 | [Alert show]; 33 | } 34 | } 35 | 36 | - (void)didReceiveMemoryWarning { 37 | [super didReceiveMemoryWarning]; 38 | // Dispose of any resources that can be recreated. 39 | } 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /Jailbreak Detection/Jailbreak Detection/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Jailbreak Detection 4 | // 5 | // Created by Billy Ellis on 12/03/2016. 6 | // Copyright © 2016 Billy Ellis. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Jailbreak Detection/Jailbreak DetectionTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Jailbreak Detection/Jailbreak DetectionTests/Jailbreak_DetectionTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // Jailbreak_DetectionTests.m 3 | // Jailbreak DetectionTests 4 | // 5 | // Created by Billy Ellis on 12/03/2016. 6 | // Copyright © 2016 Billy Ellis. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface Jailbreak_DetectionTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation Jailbreak_DetectionTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | // This is an example of a functional test case. 29 | // Use XCTAssert and related functions to verify your tests produce the correct results. 30 | } 31 | 32 | - (void)testPerformanceExample { 33 | // This is an example of a performance test case. 34 | [self measureBlock:^{ 35 | // Put the code you want to measure the time of here. 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /Jailbreak Detection/Jailbreak DetectionUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Jailbreak Detection/Jailbreak DetectionUITests/Jailbreak_DetectionUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // Jailbreak_DetectionUITests.m 3 | // Jailbreak DetectionUITests 4 | // 5 | // Created by Billy Ellis on 12/03/2016. 6 | // Copyright © 2016 Billy Ellis. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface Jailbreak_DetectionUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation Jailbreak_DetectionUITests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | 22 | // In UI tests it is usually best to stop immediately when a failure occurs. 23 | self.continueAfterFailure = NO; 24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 25 | [[[XCUIApplication alloc] init] launch]; 26 | 27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 28 | } 29 | 30 | - (void)tearDown { 31 | // Put teardown code here. This method is called after the invocation of each test method in the class. 32 | [super tearDown]; 33 | } 34 | 35 | - (void)testExample { 36 | // Use recording to get started writing UI tests. 37 | // Use XCTAssert and related functions to verify your tests produce the correct results. 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Jailbreak-Detection-in-iOS-App 2 | Very simple example of how to detect if the device is jailbroken. This is not the most efficient way but it will work in most cases. 3 | --------------------------------------------------------------------------------