Skip to content

Commit 6e8aed7

Browse files
committed
Fixed deprecation warning on IOS
1 parent 916e761 commit 6e8aed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OAuth2Client/NXOAuth2PostBodyPart.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ - (id)initWithName:(NSString *)name fileContent:(NSString *)path;
7171
[headers appendString:@"Content-Type: application/octet-stream\r\n"];
7272
[headers appendString:@"\r\n"];
7373

74-
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6
74+
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6 || TARGET_OS_IPHONE
7575
NSDictionary *fileAttributes = [[NSFileManager defaultManager] attributesOfItemAtPath:path error:nil];
7676
#else
7777
NSDictionary *fileAttributes = [[NSFileManager defaultManager] fileAttributesAtPath:path traverseLink:YES];

0 commit comments

Comments
 (0)