[GNC-dev] Building Mac version using SDK 12

Mike Alexander <[email protected]>
Newsgroups gmane.comp.gnome.apps.gnucash.devel
Message-ID <[email protected]>
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
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.