WireGuardKitC: fix build with Xcode 16b1#33
Conversation
3dcdbe7 to
6452cd4
Compare
This commit fixes build errors of the WireGuardKitC target appearing with Xcode 16b1. Errors are: > Declaration of 'u_int32_t'/'u_char'/'u_int16_t' must be imported from module 'DarwinFoundation.unsigned_types.*' before it is required" Signed-off-by: Adam McNight <mcnight@mcnight.fr>
6452cd4 to
4fc08d6
Compare
|
This one is an important commit, merge this to resolve the Xcode 16 issue. |
|
@zx2c4 Please merge this, simple a one-liner but now the APP won't build on xcode 16 |
|
Please merge this PR. Really helpful. |
vanyasem
left a comment
There was a problem hiding this comment.
Can confirm that it's working with Xcode 16 (stable version)
|
related StackOverflow discussion: https://stackoverflow.com/questions/79002585/wireguardkitc-h-failing-to-compile-in-xcode-16-0 |
|
Please merge the PR. This change is needed. |
|
Kindly merge it ASAP. This change is required |
|
@McNight Is there any way we can use your changes using package? |
You can fork my repo and use the fork URL as your dependency in your Package.swift or in Xcode. |
I tried using it but "master" branch is missing changes and "fix_xcode16_build" branch is not working for me. Unable to add the package using that branch. |
|
anyone solved this? i have the same problem with new xcode |
|
[ -n "" ] Can someone help me with this problem |
Thank you! This was the only solution that worked for me. Simply remove the existing WireGuard dependency (https://git.zx2c4.com/wireguard-apple) and replace it with this one: https://github.com/groupofstars/wireguard-apple. It works like a charm—boom! |
|
Has anyone worked on Per-App VPN using WireGuard? @McNight @ZhaiMingchong @vanyasem |
|
@dkawadePromobi Pls let's stay on topic! (Feel free to reach me at my personal email if needed) |
|
@McNight, yes, reaching out to you via mcnight@mcnight.fr |
I have this same exact issue |
Above not working. Have a fork https://github.com/ut360e/wireguard-apple.git |
- fix building on Xcode 16. See: WireGuard/wireguard-apple#33 - support ProxyGuard using the forked wireguard-go as a submodule - fix split tunnel DNS search domains, see: https://lists.zx2c4.com/pipermail/wireguard/2021-July/006927.html from eduvpn/apple#524 - Update Go modules
- fix building on Xcode 16. See: WireGuard/wireguard-apple#33 - support ProxyGuard using the forked wireguard-go as a submodule - Update Go modules
This commit fixes build errors of the WireGuardKitC target appearing with Xcode 16b1. Errors are: