Skip to content

Commit

Permalink
Fixes Xcode 9 build issues
Browse files Browse the repository at this point in the history
Fixes issues #349 #347 #345
  • Loading branch information
Nathan Ansel authored and 0xced committed Sep 22, 2017
1 parent 76b4585 commit 4cf6100
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion XCDYouTubeKit/XCDYouTubeLogger.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ + (void) initialize
if (DDLogClass)
{
const SEL logSeletor = @selector(log:message:level:flag:context:file:function:line:tag:);
const char *typeEncoding = method_getTypeEncoding(class_getClassMethod(DDLogClass, logSeletor));
const char *typeEncoding = method_getTypeEncoding((Method)class_getClassMethod(DDLogClass, logSeletor));
const char *expectedTypeEncoding = protocol_getMethodDescription(@protocol(XCDYouTubeLogger_DDLog), logSeletor, /* isRequiredMethod: */ YES, /* isInstanceMethod: */ NO).types;
if (typeEncoding && expectedTypeEncoding && strcmp(typeEncoding, expectedTypeEncoding) == 0)
LogHandler = CocoaLumberjackLogHandler;
Expand Down
2 changes: 1 addition & 1 deletion XCDYouTubeKit/XCDYouTubeVideo.m
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ - (instancetype) initWithIdentifier:(NSString *)identifier info:(NSDictionary *)
NSString *httpLiveStream = info[@"hlsvp"];
NSString *adaptiveFormats = info[@"adaptive_fmts"];

NSMutableDictionary *userInfo = response.URL ? [@{ NSURLErrorKey: response.URL } mutableCopy] : [NSMutableDictionary new];
NSMutableDictionary *userInfo = response.URL ? [@{ NSURLErrorKey: (id)response.URL } mutableCopy] : [NSMutableDictionary new];

if (streamMap.length > 0 || httpLiveStream.length > 0)
{
Expand Down

0 comments on commit 4cf6100

Please sign in to comment.