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

updating packagedescription to 5.5

Open Shahzainali opened this issue 2 years ago • 90 comments

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

Shahzainali avatar Apr 14 '23 18:04 Shahzainali

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

coderDeviCheng avatar Apr 16 '23 08:04 coderDeviCheng

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.

Shahzainali avatar Apr 18 '23 01:04 Shahzainali

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

coderDeviCheng avatar Jun 25 '23 04:06 coderDeviCheng

Please select exact version instead of range.

Shahzainali avatar Jun 25 '23 06:06 Shahzainali

Thanks for your reply, but have the same problem 1687679863864

coderDeviCheng avatar Jun 25 '23 07:06 coderDeviCheng

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

Shahzainali avatar Jun 25 '23 08:06 Shahzainali

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

coderDeviCheng avatar Jun 25 '23 08:06 coderDeviCheng

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?

coderDeviCheng avatar Jun 25 '23 08:06 coderDeviCheng

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

Shahzainali avatar Jun 25 '23 09:06 Shahzainali

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

coderDeviCheng avatar Jun 25 '23 09:06 coderDeviCheng

Or better yet, post it here

luckman212 avatar Jun 25 '23 12:06 luckman212

I will post it here soon.

Shahzainali avatar Jun 25 '23 18:06 Shahzainali

But I got a new error image

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

houmie avatar Jun 26 '23 09:06 houmie

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

coderDeviCheng avatar Jun 26 '23 14:06 coderDeviCheng

Screenshot 2023-06-26 at 15 26 54

There you go.. adjust the path.

houmie avatar Jun 26 '23 14:06 houmie

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

coderDeviCheng avatar Jun 28 '23 04:06 coderDeviCheng

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

houmie avatar Jun 28 '23 14:06 houmie

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

houmie avatar Sep 30 '23 17:09 houmie

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

Shahzainali avatar Oct 04 '23 07:10 Shahzainali

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.

kkoless avatar Oct 16 '23 12:10 kkoless

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.

Sneha1231 avatar Nov 15 '23 13:11 Sneha1231

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 avatar Nov 15 '23 13:11 houmie

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?

Sneha1231 avatar Nov 15 '23 15:11 Sneha1231

Same issue, someone found how to resolve it?

dlc-letelier avatar Feb 22 '24 14:02 dlc-letelier

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 avatar Feb 23 '24 05:02 Sneha1231

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

dlc-letelier avatar Feb 23 '24 12:02 dlc-letelier

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!

Shahzainali avatar Feb 27 '24 18:02 Shahzainali

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.

dlc-letelier avatar Feb 27 '24 18:02 dlc-letelier

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

alenaklysa avatar Mar 15 '24 05:03 alenaklysa

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?

meetp-zluck avatar Mar 22 '24 12:03 meetp-zluck