You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
如题,使用Xcode clang工具链(Apple clang version 15.0.0),ninja(version 1.12.1), cmake(version 3.31.4),编译指令MAA_DEBUG=1 ./tools/build_macos_universal.zsh会得到如下的报错:
In file included from /Users/snow/Desktop/Code/MaaAssistantArknights/src/MaaCore/Config/Miscellaneous/TilePack.cpp:8:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/chrono:773:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__chrono/formatter.h:21:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__chrono/ostream.h:26:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__format/format_functions.h:35:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__format/formatter_floating_point.h:59:32: error: 'to_chars' is unavailable: introduced in macOS 13.3
to_chars_result __r = _VSTD::to_chars(__first, __last, __value, __fmt);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__format/formatter_floating_point.h:265:36: note: in instantiation of function template specialization 'std::__formatter::__to_buffer<long double>' requested here
__result.__last = __formatter::__to_buffer(__integral, __buffer.end(), __value, chars_format::hex);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__format/formatter_floating_point.h:463:25: note: in instantiation of function template specialization 'std::__formatter::__format_buffer_hexadecimal_lower_case<double, long double>' requested here
return __formatter::__format_buffer_hexadecimal_lower_case(
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__format/formatter_floating_point.h:628:42: note: in instantiation of function template specialization 'std::__formatter::__format_buffer<double, long double>' requested here
__float_result __result = __formatter::__format_buffer(
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__format/formatter_floating_point.h:734:25: note: in instantiation of function template specialization 'std::__formatter::__format_floating_point<long double, char, std::format_context>' requested here
return __formatter::__format_floating_point(__value, __ctx, __parser_.__get_parsed_std_specifications(__ctx));
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__format/format_functions.h:278:42: note: in instantiation of function template specialization 'std::__formatter_floating_point<char>::format<long double, std::format_context>' requested here
__ctx.advance_to(__formatter.format(__arg, __ctx));
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__format/format_functions.h:411:17: note: in instantiation of function template specialization 'std::__vformat_to<std::back_insert_iterator<std::string>, char, std::back_insert_iterator<std::__format::__output_buffer<char>>>' requested here
return _VSTD::__vformat_to(_VSTD::move(__out_it), __fmt, __args);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__format/format_functions.h:441:10: note: in instantiation of function template specialization 'std::vformat_to<std::back_insert_iterator<std::string>>' requested here
_VSTD::vformat_to(_VSTD::back_inserter(__res), __fmt, __args);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/charconv:825:17: note: 'to_chars' has been explicitly marked unavailable here
to_chars_result to_chars(char* __first, char* __last, long double __value, chars_format __fmt);
^
9 errors generated.
[16/168] Building CXX object CMakeFile...g/Miscellaneous/SSSCopilotConfig.cpp.o
ninja: build stopped: subcommand failed.
(只展示了部分报错。)
看起来似乎是macOS Xcode自带的SDK头文件中有些问题(error: 'to_chars' is unavailable: introduced in macOS 13.3),但是我使用的macOS版本显然高于13.3,想知道有没有出现过类似问题的朋友,如何解决的呢
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
如题,使用Xcode clang工具链(Apple clang version 15.0.0),ninja(version 1.12.1), cmake(version 3.31.4),编译指令
MAA_DEBUG=1 ./tools/build_macos_universal.zsh
会得到如下的报错:(只展示了部分报错。)
看起来似乎是macOS Xcode自带的SDK头文件中有些问题(
error: 'to_chars' is unavailable: introduced in macOS 13.3
),但是我使用的macOS版本显然高于13.3,想知道有没有出现过类似问题的朋友,如何解决的呢Beta Was this translation helpful? Give feedback.
All reactions