We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aac33a8 + a117463 commit 8a66324Copy full SHA for 8a66324
1 file changed
JailMonkey/JailMonkey.mm
@@ -323,6 +323,18 @@ - (BOOL)canMockLocation{
323
return YES;
324
#endif
325
326
+ if (@available(iOS 15.0, *)) {
327
+ CLLocationManager *locationManager = [[CLLocationManager alloc] init];
328
+ CLLocation *location = locationManager.location;
329
+
330
+ if (location.sourceInformation != nil) {
331
+ if (location.sourceInformation.isSimulatedBySoftware ||
332
+ location.sourceInformation.isProducedByAccessory) {
333
+ return YES;
334
+ }
335
336
337
338
return [self isJailBroken];
339
}
340
0 commit comments