wireguard-apple icon indicating copy to clipboard operation
wireguard-apple copied to clipboard

WireGuardKitC: fix build with Xcode 16b1

Open McNight opened this issue 1 year ago • 17 comments

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"

McNight avatar Jun 24 '24 14:06 McNight

This one is an important commit, merge this to resolve the Xcode 16 issue.

dkawadePromobi avatar Sep 17 '24 14:09 dkawadePromobi

@zx2c4 Please merge this, simple a one-liner but now the APP won't build on xcode 16

ZhaiMingchong avatar Sep 18 '24 07:09 ZhaiMingchong

Please merge this PR. Really helpful.

komal-lathiya avatar Sep 23 '24 06:09 komal-lathiya

related StackOverflow discussion: https://stackoverflow.com/questions/79002585/wireguardkitc-h-failing-to-compile-in-xcode-16-0

vanyasem avatar Sep 23 '24 10:09 vanyasem

Please merge the PR. This change is needed.

shahhmatist avatar Oct 04 '24 10:10 shahhmatist

Kindly merge it ASAP. This change is required

Usmantahir27 avatar Oct 14 '24 16:10 Usmantahir27

@McNight Is there any way we can use your changes using package?

Usmantahir27 avatar Oct 14 '24 16:10 Usmantahir27

@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.

McNight avatar Oct 19 '24 17:10 McNight

@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.

Usmantahir27 avatar Oct 22 '24 07:10 Usmantahir27

anyone solved this? i have the same problem with new xcode

evangelme avatar Nov 19 '24 22:11 evangelme

[ -n "" ] make: *** [/Users/admin/Library/Developer/Xcode/DerivedData/*****-cocnhptuqkaqhlasaffabzyuxaoj/Build/Intermediates.noindex/****/Debug-iphoneos/wireguard-go-bridge/goroot/.prepared] Error 1 Command ExternalBuildToolExecution failed with a nonzero exit code

Can someone help me with this problem

EbichuI avatar Apr 17 '25 09:04 EbichuI

I forked and fix that issue. You can use my repository as a dependency.

https://github.com/groupofstars/wireguard-apple https://github.com/groupofstars/AtomWireguardTunnel

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!

Arslan-Zafar avatar Apr 22 '25 05:04 Arslan-Zafar

Has anyone worked on Per-App VPN using WireGuard? @McNight @ZhaiMingchong @vanyasem

dkawadePromobi avatar Apr 22 '25 06:04 dkawadePromobi

@dkawadePromobi Pls let's stay on topic! (Feel free to reach me at my personal email if needed)

McNight avatar Apr 22 '25 08:04 McNight

@McNight, yes, reaching out to you via [email protected]

dkawadePromobi avatar Apr 22 '25 09:04 dkawadePromobi

[ -n "" ] make: *** [/Users/admin/Library/Developer/Xcode/DerivedData/*****-cocnhptuqkaqhlasaffabzyuxaoj/Build/Intermediates.noindex/****/Debug-iphoneos/wireguard-go-bridge/goroot/.prepared] Error 1 Command ExternalBuildToolExecution failed with a nonzero exit code

Can someone help me with this problem

I have this same exact issue

GoldenJayz avatar Jul 04 '25 22:07 GoldenJayz

I forked and fix that issue. You can use my repository as a dependency. https://github.com/groupofstars/wireguard-apple https://github.com/groupofstars/AtomWireguardTunnel

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!

Above not working. Have a fork https://github.com/ut360e/wireguard-apple.git

ut360e avatar Jul 20 '25 13:07 ut360e