diff --git a/Sparkle/SUAppcast.m b/Sparkle/SUAppcast.m index 2bfaedcc..196267fb 100644 --- a/Sparkle/SUAppcast.m +++ b/Sparkle/SUAppcast.m @@ -204,7 +204,11 @@ if ([appcastItems count]) { - NSSortDescriptor *sort = [[NSSortDescriptor alloc] initWithKey:@"date" ascending:NO]; +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wselector" + // @selector(date) is from SUAppcastItem + NSSortDescriptor *sort = [[NSSortDescriptor alloc] initWithKey:NSStringFromSelector(@selector(date)) ascending:NO]; +#pragma clang diagnostic pop [appcastItems sortUsingDescriptors:@[sort]]; self.items = appcastItems; } diff --git a/Sparkle/SUAppcastItem.m b/Sparkle/SUAppcastItem.m index 8a8950e5..0f5b7920 100644 --- a/Sparkle/SUAppcastItem.m +++ b/Sparkle/SUAppcastItem.m @@ -105,7 +105,7 @@ NSString *theInfoURL = dict[SURSSElementLink]; if (theInfoURL) { if (![theInfoURL isKindOfClass:[NSString class]]) { - SULog(@"SUAppcastItem -initWithDictionary: Info URL is not of valid type."); + SULog(@"%@ -%@ Info URL is not of valid type.", NSStringFromClass([self class]), NSStringFromSelector(_cmd)); } else { self.infoURL = [NSURL URLWithString:theInfoURL]; } diff --git a/Sparkle/SUHost.m b/Sparkle/SUHost.m index 81eb1c12..58c53651 100644 --- a/Sparkle/SUHost.m +++ b/Sparkle/SUHost.m @@ -44,7 +44,7 @@ typedef struct { if (aBundle == nil) aBundle = [NSBundle mainBundle]; self.bundle = aBundle; if (![self.bundle bundleIdentifier]) { - SULog(@"Error: the bundle being updated at %@ has no CFBundleIdentifier! This will cause preference read/write to not work properly.", self.bundle); + SULog(@"Error: the bundle being updated at %@ has no %@! This will cause preference read/write to not work properly.", self.bundle, kCFBundleIdentifierKey); } self.defaultsDomain = [self.bundle objectForInfoDictionaryKey:SUDefaultsDomainKey];