Skip to content

updating packagedescription to 5.5 #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Shahzainali
Copy link

error: 'v12' is unavailable .macOS(.v12), packageDescription.SupportedPlatform:15:27: note: 'v12' was introduced in PackageDescription 5.5

error: 'v12' is unavailable    .macOS(.v12), packageDescription.SupportedPlatform:15:27: note: 'v12' was introduced in PackageDescription 5.5

Signed-off-by: Shahzain Ali <[email protected]>
@coderDeviCheng
Copy link

I also encountered the same problem, did you solve it?

@Shahzainali
Copy link
Author

Shahzainali commented Apr 18, 2023

Hi @coderDeviCheng yes most probably this PR will fix the issue, for now, you can use the previous version which is 1.0.15-26, while adding the package select the exact version and type the version mentioned above.

@coderDeviCheng
Copy link

I tried to use your method, but still reported an error, here is the screenshot
1687666165477
1687666204090

@Shahzainali
Copy link
Author

Please select exact version instead of range.

@coderDeviCheng
Copy link

Thanks for your reply, but have the same problem
1687679863864

@Shahzainali
Copy link
Author

Shahzainali commented Jun 25, 2023

So far i remember, you need to write complete version i.e
1.0.15-26

@coderDeviCheng
Copy link

Yes this works, thank you very much for your help, best wishes

@coderDeviCheng
Copy link

But I got a new error
image

Showing Recent Errors Only
unable to spawn process '/usr/bin/make' (No such file or directory)

There have make file in usr/bin
image
Do you know how to fix it?

@Shahzainali
Copy link
Author

Yes, i have same issues then i have used some third party script for building.

@coderDeviCheng
Copy link

Could you please send me a copy of the script, thanks

@luckman212
Copy link

Or better yet, post it here

@Shahzainali
Copy link
Author

I will post it here soon.

@houmie
Copy link

houmie commented Jun 26, 2023

But I got a new error image

This never works like this. You have to use the absolute path.

@coderDeviCheng
Copy link

But I got a new error image

This never works like this. You have to use the absolute path.

It's my first time to use wireguard to develop vpn, can you be more specific, and how to connect after I integrate it, do you have relevant information? Thanks

@houmie
Copy link

houmie commented Jun 26, 2023

Screenshot 2023-06-26 at 15 26 54

There you go.. adjust the path.

@coderDeviCheng
Copy link

Screenshot 2023-06-26 at 15 26 54 There you go.. adjust the path.

Thank you for your reply, do you know where to find this file, I don't know where to find this file

@houmie
Copy link

houmie commented Jun 28, 2023

You need to read the instructions mate.
https://github.com/WireGuard/wireguard-apple#wireguardkit-integration

@houmie
Copy link

houmie commented Sep 30, 2023

Hello @Shahzainali

I just have tried to install the latest 1.0.16-27 but it doesn't work, despite merging your PR.
Then I tried to bump up swift-tools-version:5.8 but it didn't help.

Do you have any suggestions? It's a shame that the owner of repo doesn't allow collaboration on main repo.

Thanks

@Shahzainali
Copy link
Author

Hey @houmie I will check this and get back to you.
Thanks

@kkoless
Copy link

kkoless commented Oct 16, 2023

Screenshot 2023-06-26 at 15 26 54 There you go.. adjust the path.
Screenshot 2023-10-16 at 4 35 14 PM

@houmie did you have an error there? When you chnage the path to make file.

@Sneha1231
Copy link

Screenshot 2023-06-26 at 15 26 54 There you go.. adjust the path.

@houmie After adjusting path I am getting a new error.

Screenshot 2023-11-15 at 6 31 53 PM

I tried adding "PATH" user defined variable in build settings with value "${PATH}:/opt/homebrew/opt/[email protected]/bin" . This is also not woking. Do you know how to fix this?

Thanks.

@houmie
Copy link

houmie commented Nov 15, 2023

Have you installed the latest Go? And adjusted go path? Last but not least, the latest WireGuard version doesn't work anyway. You need an older version.

@Sneha1231
Copy link

Have you installed the latest Go? And adjusted go path? Last but not least, the latest WireGuard version doesn't work anyway. You need an older version.

@houmie : I am working with WireGuardKit version 1.0.15-26 , Xcode 14.2 and go1.21.4. How to adjust the go path ? Could you please help?

@dlc-letelier
Copy link

Same issue, someone found how to resolve it?

@Sneha1231
Copy link

Sneha1231 commented Feb 23, 2024

Same issue, someone found how to resolve it?

@dlc-letelier :My path was wrong. '${PATH}:/usr/local/bin:/opt/homebrew/bin' worked for me. Also, give an absolute path instead of ${BUILD_DIR%Build/*} in the "Info" tab of the WireGuardGoBridge target.

Note that 1.0.15-27 won't work. You have added the package version 1.0.15-26. 

@dlc-letelier
Copy link

dlc-letelier commented Feb 23, 2024

Same issue, someone found how to resolve it?

@dlc-letelier :My path was wrong. '${PATH}:/usr/local/bin:/opt/homebrew/bin' worked for me. Also, give an absolute path instead of ${BUILD_DIR%Build/*} in the "Info" tab of the WireGuardGoBridge target.

Note that 1.0.15-27 won't work. You have added the package version 1.0.15-26.

@Sneha1231: thanks for your answer. Really worked. But now I get stuck here. Do you have any suggestion? Because of that error, I get a "Command SwiftCompile failed with a nonzero exit code".

The file "/Documents/wireguard-apple/Sources/WireGuardApp/WireGuard-Bridging-Header.h" exists

image

@Shahzainali
Copy link
Author

Hey guys, I'll be publishing an article explaining how to integrate WireGuard into an iOS application. I've been planning it for a few months but didn't get the chance. However, I'll have some time in the coming days, so I'll publish it soon. Thanks!

@dlc-letelier
Copy link

Hey guys, I'll be publishing an article explaining how to integrate WireGuard into an iOS application. I've been planning it for a few months but didn't get the chance. However, I'll have some time in the coming days, so I'll publish it soon. Thanks!

Hi @Shahzainali , Thank you very much! We will be waiting for it.

@alenaklysa
Copy link

Hi @Shahzainali
Can you please tell me if it is already possible to read the update on WireGuard integration?

@Shahzainali
Copy link
Author

if you have cloned then you must have. by the way here it is
https://github.com/Shahzainali/Wireguardkit/blob/main/script/build_wireguard_go_bridge.sh

@Harisghanchi
Copy link

sorry my bad have found
image
have modified still getting same error

@Shahzainali
Copy link
Author

share
which go
go version

@Harisghanchi
Copy link

Harisghanchi commented Oct 11, 2024 via email

@Harisghanchi
Copy link

which go
/opt/homebrew/bin/go
go version
go version go1.23.2 darwin/arm64

@Shahzainali
Copy link
Author

The path in script is incorrect, please match according to which go.

@Harisghanchi
Copy link

The path in script is incorrect, please match according to which go
still getting same error have matched with which go path

@Shahzainali
Copy link
Author

then no idea, some environment base issue most probably, follow readme again, also install previous version of go, one of my friend solved it by downgrading go.

@Harisghanchi
Copy link

Harisghanchi commented Oct 11, 2024 via email

@Harisghanchi
Copy link

Harisghanchi commented Oct 11, 2024 via email

@Usmantahir27
Copy link

Does anyone have a working package link for Xcode 16?
Any help will be really appreciated. Thanks!
@Shahzainali @coderDeviCheng @luckman212 @Harisghanchi

@Harisghanchi
Copy link

Harisghanchi commented Oct 15, 2024 via email

@dkawadePromobi
Copy link

Hi All,
I am trying to create an Archive of a macOS project but I am getting the error below. However, it successfully runs on the device.
Please help.

Command ExternalBuildToolExecution failed with a nonzero exit code

Screenshot 2024-11-20 at 7 56 32 PM

@Shahzainali
@coderDeviCheng
@Darwin-cpu
@dlc-letelier
@houmie

@Lucky-ai-b
Copy link

Hello, have you solved the build error on xcode16? I have the same problem, please help me, thank you very much @dkawadePromobi

@dhanarajkawde
Copy link

Use this PR => #33

@Lucky-ai-b

@houmie
Copy link

houmie commented Jan 4, 2025

@dhanarajkawde Sorry, but are you able to compile and run your WireGuard app on a simulator recently?

Since the latest Xcode update, I can no longer do that. (It works fine on a real device, though.)
It still runs on my old MacBook Pro (Intel), so this issue seems to be specific to M1 Macs (Apple Silicon).

Undefined symbol: _darwin_arm_init_mach_exception_handler
Undefined symbol: _darwin_arm_init_thread_exception_port

I wonder if other developers have the same issue. Thanks

@Shahzainali
Copy link
Author

The apps with Network extension never runs on the simulator.

@houmie
Copy link

houmie commented Jan 6, 2025

That's a misunderstanding. I'm not interested in running the VPN on the simulator—of course, that wouldn't work.
However, until the last version of Xcode, it was possible to build the app and run it on the simulator so that I could take screenshots of the app for the App Store.

Now, this is only possible on my old Intel MacBook Pro because the WireGuard extension no longer builds on Apple M1 (Silicon). But this used to work not long ago.

@RUGyron
Copy link

RUGyron commented Mar 10, 2025

image image image

I walked obediently along the path of all the mistakes discussed here above, but after a mistake with the module on C, I came across it. And now I won’t know how to solve it (Last screenshot is about extension).
Hope for any suggestions...

XCode: Version 16.1 (16B40)
Go: 1.16
WireGuardKit (SPM Package): 1.0.15-26

@Shahzainali

@KellyDanielO
Copy link

@Shahzainali I've setup the wireguard but when I try connecting it automatically disconnect.

Though Its a flutter app I've followed the config steps for iOS

@KellyDanielO
Copy link

@Shahzainali I've setup the wireguard but when I try connecting it automatically disconnect.

Though Its a flutter app I've followed the config steps for iOS

I've been able to fix it and it's working, the issue was In my code i was using my bundle id instead of my network extension bundle id for the provider was able to see this thanks to @Shahzainali
And thanks to his article i was able to get the tunnel code needed too

@RUGyron
Copy link

RUGyron commented Apr 17, 2025

I've tired of errors, so that removed everything and started from zero. I have been reading readme guide carefully few times each point. And... build was successful. I don't know of reason why errors disappeared, but difference was that I didn't cloned project, changed it for myself. No, as it said in guide, I created self project and followed carefully step by step. And it's done.

Recommend to pay attention:

  1. go version. I don't remember but there is exact version must be used (use gvm for go version experiments).
  2. go path in author's script and bridge. Don't do redundant actions.
  3. there is failure with C header file in the library. U have to patch this file by yourself (there are details about patching in history of this topic: some PR of official library, don't remember.).

Important about 3 point: patching will be dropped for each clear full rebuild. So that solution for me was to download library locally, patch file and connect it as my local library but not as git source.

Wish you all success with same trouble ☺️

@Shahzainali Thank you very much for such repository and guide. You are cool guy)

Xcode 16+, iOS 18, real device.

@dkawadePromobi
Copy link

Has anyone tried with Per-App VPN with WireGuard?

@Shahzainali
Copy link
Author

Sorry, everyone. I wasn’t able to reply over the past few months—my mother was unwell, and I was spending time with her, completely away from work. But God had other plans; she is no longer with us.

@Shahzainali
Copy link
Author

My repo currently has some issues with Xcode 16. I’ll be updating it in the next few days. If anyone is still facing problems, feel free to reach out—I'll do my best to help you fix them right away.

@Shahzainali
Copy link
Author

I've tired of errors, so that removed everything and started from zero. I have been reading readme guide carefully few times each point. And... build was successful. I don't know of reason why errors disappeared, but difference was that I didn't cloned project, changed it for myself. No, as it said in guide, I created self project and followed carefully step by step. And it's done.

Recommend to pay attention:

  1. go version. I don't remember but there is exact version must be used (use gvm for go version experiments).
  2. go path in author's script and bridge. Don't do redundant actions.
  3. there is failure with C header file in the library. U have to patch this file by yourself (there are details about patching in history of this topic: some PR of official library, don't remember.).

Important about 3 point: patching will be dropped for each clear full rebuild. So that solution for me was to download library locally, patch file and connect it as my local library but not as git source.

Wish you all success with same trouble ☺️

@Shahzainali Thank you very much for such repository and guide. You are cool guy)

Xcode 16+, iOS 18, real device.

Thanks man :) yes the hack for xcode 16 is to add lib wg prebuilt, and import wireguard lib from another repo, someone has fixed the issue. I am gathering stuff so that I can update Readme.

@gharary
Copy link

gharary commented May 18, 2025

Any update on this?
Still facing the issue on Xcode 16

@Shahzainali
Copy link
Author

Hi! Updated for Xcode 16.
This is a bit of a hack, but it works perfectly!
https://github.com/Shahzainali/Wireguardkit

@mercadeoshop
Copy link

Hi! Updated for Xcode 16. This is a bit of a hack, but it works perfectly! https://github.com/Shahzainali/Wireguardkit

Hi, i was searching a lot and i found your repo and its great how you fix it, but i have one question, in the step 6 you say we have to change identifier in WireguardkitApp.swift, but this file i cant find inside my project, so connect but it disconnect after a few miliseconds.

@Shahzainali
Copy link
Author

@mercadeoshop This is your main app file, from where you start the connection and provide config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.