Re: [GNC-dev] Building Mac version using SDK 12

john <[email protected]>
Newsgroups gmane.comp.gnome.apps.gnucash.devel
Message-ID <[email protected]>

> On Sep 14, 2022, at 9:41 PM, Mike Alexander <[email protected]> wrote:
> 
> When I try to build either current maint or master using MacOSX12.1.sdk or MacOSX12.3.sdk for SDKROOT I get compile errors in gnc-filepath-utils.cpp.  The first error is
> 
> In file included from /System/Volumes/Data/tools/gnucash-maint/gnucash/libgnucash/core-utils/gnc-filepath-utils.cpp:64:
> In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:12:
> /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h:91:143: error: function does not return NSString
> - (NSAttributedString *)localizedAttributedStringForKey:(NSString *)key value:(nullable NSString *)value table:(nullable NSString *)tableName NS_FORMAT_ARGUMENT(1) NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
> /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:103:48: note: expanded from macro 'NS_FORMAT_ARGUMENT'
>        #define NS_FORMAT_ARGUMENT(A) __attribute__ ((format_arg(A)))
> 
> This is probably because there is something wrong with my build environment, but I was wondering if anyone else had seen this?

Mike,

I haven't had any errors like that. 

I don't understand the error but it seems to be an SDK error rather than anything we're doing. Might the compiler have gotten out of sync with the SDK?

Regards,
John Ralls
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.