You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

同意Apple新服务条款后,clang++用-fsanitize=address报错求助

AddressSanitizer编译报错:static AddressSanitizer runtime is not supported on darwin

之前使用clang++编译程序时,一直通过添加-fsanitize=address参数来定位问题代码的行号。但在2024年9月18日通过命令行同意Apple新服务条款后,再使用该参数编译时触发如下错误:

clang++: error: static AddressSanitizer runtime is not supported on darwin

目前网上能找到的相关问题均为旧版本适配问题,希望了解此次报错的新原因,恳请解答。

环境信息

  • macOS版本:14.6.1 (23G93)
  • clang版本:
Apple clang version 16.0.0 (clang-1600.0.26.3)
Target: arm64-apple-darwin23.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

内容的提问来源于stack exchange,提问作者Seth

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.18 04:25:58