error: unknown type name 'CFAttributedStringRef'; did you mean 'NSAttributedStringKey'?
CFAttributedStringRef attrString ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAttributedString.h:22:20: note: 'NSAttributedStringKey' declared here
typedef NSString * NSAttributedStringKey NS_TYPED_EXTENSIBLE_ENUM;
^
可能是因为之前的系统是比较旧的,使用系统迁移到新的makbook上导致的
在新的电脑上更新一下系统解决
xcode-select --install
如果提示已经安装过了,执行更新
softwareupdate --install -a
标签:foundation,qt,CFAttributedStringRef,Library,mac,NSAttributedStringKey
From: https://www.cnblogs.com/nocanstillbb/p/18287183