diff --git a/Adjust/ADJUtil.m b/Adjust/ADJUtil.m index 9a8a19d7e..16452eb39 100644 --- a/Adjust/ADJUtil.m +++ b/Adjust/ADJUtil.m @@ -852,7 +852,7 @@ + (BOOL)deleteFileInPath:(NSString *)filePath { } #pragma clang diagnostic push #pragma clang diagnostic ignored "-Warc-performSelector-leaks" - BOOL exists = (BOOL)[man performSelector:selExi withObject:filePath]; + BOOL exists = [[man performSelector:selExi withObject:filePath] boolValue]; #pragma clang diagnostic pop if (!exists) { // [[ADJAdjustFactory logger] verbose:@"File does not exist at path %@", filePath]; @@ -1088,7 +1088,7 @@ + (BOOL)trackingEnabled { if (![manager respondsToSelector:selEnabled]) { return NO; } - BOOL enabled = (BOOL)[manager performSelector:selEnabled]; + BOOL enabled = [[manager performSelector:selEnabled] boolValue]; return enabled; #pragma clang diagnostic pop #endif @@ -1253,7 +1253,7 @@ + (int)attStatus { #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunguarded-availability" #pragma clang diagnostic ignored "-Warc-performSelector-leaks" - return (int)[appTrackingClass performSelector:selAuthorization]; + return [[appTrackingClass performSelector:selAuthorization] intValue]; #pragma clang diagnostic pop } }