Skip to content
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

updating packagedescription to 5.5 #24

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 <shahzainali93@gmail.com>
@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/go@1.21.4/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?

@meetp-zluck
Copy link

meetp-zluck commented Mar 22, 2024

Screenshot 2024-03-22 at 6 16 23 PM

Hi @Sneha1231 , @Shahzainali , After putting a user defined variable path with provided value, and putting an absolute path in the "Info" tab of the WireGuardGoBridge target, I got the same error as @dlc-letelier

Could you please help check this?

@alenaklysa
Copy link

Hi @meetp-zluck
Try to clone original Wireguard project and insert the path to that project/Sources/WireGuardKitGo instead of the ${BUILD_DIR%Build/*}SourcePackages/checkouts/wireguard-apple/Sources/WireGuardKitGo path.
To find work go PATH you need to set command in terminal
go env GOROOT
and put it to path
${PATH}:/usr/local/Cellar/your_go_version/libexec/bin
It's worked for me

@dlc-letelier
Copy link

Hi @alenaklysa, thank you very much. It worked.
Now, the last one:

image

image

It said that the module was 'previously defined here', so it seems to be a path problem.

@Shahzainali
Copy link
Author

Hey everyone, I built this a year ago, so I couldn't share any details until now. However, I've just successfully integrated it and am writing a short tutorial so everyone can build it too, sharing in some minutes.

@Shahzainali
Copy link
Author

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