Building my Wireguard-Apple project with latest Xcode 15 Beta release leads to some build issue. It looks like the problem appears when building the target WireguardNetworkExtensionsmasOs (same for target WireguardNetworkExtensionsiOS). Using the same code base and building with Xcode 14, all looks fine.
I downloaded the reference implementation from https://git.zx2c4.com/wireguard-apple and the same problem appears.
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)
Somehow, the problem must be with GO@1.20 and the latest Xcode 15 beta release.
I tried to use the WireGuard_Apple reference implementation (https://git.zx2c4.com/wireguard-apple) to exclude the error from my application.
- Using Xcode 15 beta, the problem shows up. Build is not possible.
- Switching back to Xcode 14, everything build well.