> On 11 Mar 2019, at 09:55, Christiaan Hofman <cmhof...@gmail.com> wrote:
> 
> That's a big problem. I updated Sparkle to the latest, and they say it is 
> compatible with Xcode 8 and runs on 10.7. It looks like that's a lie. These 
> available compiler directives and macros have to do with cross development, a 
> bit like checking for NSAppKitVersionNumber, but on the compiler level. 
> Unfortunately I don't really understand myself how they work. The particular 
> ones have to do with using the newer URL loading API, but only when they're 
> available. Annoyingly I cannot find bug reporting facilities for Sparkle. 
> 
> Op ma 11 mrt. 2019 02:27 schreef Adam R. Maxwell via Bibdesk-develop 
> <bibdesk-develop@lists.sourceforge.net 
> <mailto:bibdesk-develop@lists.sourceforge.net>:
> 
> 
>> On Mar 8, 2019, at 11:19 , Christiaan Hofman <cmhof...@gmail.com 
>> <mailto:cmhof...@gmail.com>> wrote:
>> 
>> I did not see the last nightly in Dropbox. Were there problems building? 
>> There were some changes yesterday for upgrading BibDesk that may give 
>> problems, although they should work for Xcode 8.
> 
> Looks like it's complaining about @available, whatever that is?
> 
> /Volumes/Local/Users/amaxwell/build/bibdesk-clean/vendorsrc/andymatuschak/Sparkle/Sparkle/SPUDownloadData.m:55:9:
>  error: unexpected '@' in program
>     if (@available(macOS 10.8, *)) {
>         ^
> /Volumes/Local/Users/amaxwell/build/bibdesk-clean/vendorsrc/andymatuschak/Sparkle/Sparkle/SPUDownloadData.m:56:33:
>  warning: 'decodeObjectOfClass:forKey:' is partial: introduced in macOS 10.8 
> [-Wpartial-availability]
>         NSData *data = [decoder decodeObjectOfClass:[NSData class] 
> forKey:SPUDownloadDataKey];
>                                 ^
> In module 'Foundation' imported from 
> /Volumes/Local/Users/amaxwell/build/bibdesk-clean/vendorsrc/andymatuschak/Sparkle/Sparkle/SPUDownloadData.h:10:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCoder.h:89:1:
>  note: 'decodeObjectOfClass:forKey:' has been explicitly marked partial here
> - (nullable id)decodeObjectOfClass:(Class)aClass forKey:(NSString *)key 
> NS_AVAILABLE(10_8, 6_0);
> ^
> /Volumes/Local/Users/amaxwell/build/bibdesk-clean/vendorsrc/andymatuschak/Sparkle/Sparkle/SPUDownloadData.m:56:33:
>  note: explicitly redeclare 'decodeObjectOfClass:forKey:' to silence this 
> warning
>         NSData *data = [decoder decodeObjectOfClass:[NSData class] 
> forKey:SPUDownloadDataKey];
> 

I’ve changed this check to compare the system version rather than using this 
compiler directive. Hopefully it does now work.

Christiaan

_______________________________________________
Bibdesk-develop mailing list
Bibdesk-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-develop

Reply via email to