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

Xcode 15 Beta编译WireGuard-Apple项目出现链接错误求助

Xcode 15 Beta编译WireGuard-Apple项目时出现链接器错误

问题情况

  • 使用Xcode 15 Beta编译WireGuard-Apple项目的WireguardNetworkExtensionsmacOS目标时构建失败,WireguardNetworkExtensionsiOS目标存在同样问题。
  • 相同代码库在Xcode 14中编译完全正常。
  • 测试官方参考实现后,同样复现该问题。

链接器报错详情

ld: warning: '/Users/daniel/Library/Developer/Xcode/DerivedData/WireGuard-eummroygnzwynwfxhjfgjmamxkof/Build/Products/Debug/libwg-go.a[arm64][2](go.o)' has malformed LC_DYSYMTAB, expected 72 undefined symbols to start at index 4928, found 81 undefined symbols starting at index 15
ld: initializer pointer must point to start of function (no addend) in '/Users/daniel/Library/Developer/Xcode/DerivedData/WireGuard-eummroygnzwynwfxhjfgjmamxkof/Build/Products/Debug/libwg-go.a[arm64][2](go.o)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

推测原因

该问题大概率与Go 1.20和Xcode 15 Beta的兼容性有关。


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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.13 18:22:23