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 <[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?

@suki-neithnet
Copy link

suki-neithnet commented Aug 22, 2024

found that there's no libwg-go-arm64.a under /Users/user/Library/Developer/Xcode/DerivedData/WireGuard-XXXX/Build/Intermediates.noindex/WireGuard.build/Debug-iphoneos/wireguard-go-bridge/.
I don't know is that build failed causes this error or it is the reason that causes build failed ?
and sometime the Build folder created but sometimes not, that confused me either.

Snipaste_2024-08-22_13-55-53

@houmie
Copy link

houmie commented Aug 22, 2024

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

after set the absolute path, Still got this error “unable to spawn process '/usr/bin/make' (No such file or directory)”

Open Build Settings, add a User-defined variable named PATH and insert this ${PATH}:/opt/homebrew/Cellar/go/1.22.5/bin

Obviously you need to install "brew install go" first.

Good luck

@Shahzainali
Copy link
Author

yes exactly, refer this
https://stackoverflow.com/a/64212121/5154783

@dkawadePromobi
Copy link

Hi @ALL
Any update how to use ${BUILD_DIR%Build/*}SourcePackages/checkouts/wireguard-apple/Sources/WireGuardKitGo

@dlc-letelier
Copy link

Hi @ALL Any update how to use ${BUILD_DIR%Build/*}SourcePackages/checkouts/wireguard-apple/Sources/WireGuardKitGo

Did you check this answer?

#24 (comment)

You have to use absolute path.

@Darwin-cpu
Copy link

Hi everyone,

I am interested in software and a new apprentice for Apple Development. I am wondering about how wireguard-ios is working on Xcode. However, I got some errors. The first of these errors was /usr/bin/make. I solved this error but now I'm getting another error. Does anyone know about this issue or can help?

Now, I'm getting this error;

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

My go version is ;

go version go1.23.1 darwin/arm64

And also for go env GOROOT check;

% go env GOROOT
/opt/homebrew/opt/go/libexec

Why is it so hard to build wireguard-ios?

@Shahzainali
Copy link
Author

Shahzainali commented Sep 14, 2024

@Darwin-cpu have you tried following this article? https://github.com/Shahzainali/Wireguardkit

@Darwin-cpu
Copy link

Hello @Shahzainali ,

First of all, thank you for your answer and interest with my problem.

I tried that but I have an error like this;

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

And also, when I was trying to fix this error, I have another problem about permission. Like permission denied. I dont understand why. Why is wireguard-ios build and run situation so complicated ? :(

@Shahzainali
Copy link
Author

Have you modified the go path in the script?

@dkawadePromobi
Copy link

dkawadePromobi commented Sep 17, 2024

Hi All

I am trying to build a project on Xcode 16 but getting below errors.

  1. Internal inconsistency error: never received target ended message for target ID '5' (in target 'WireGuardGoBridgeiOS' from project 'WireGuardVPN').

  2. Could not build Objective-C module 'WireGuardKitC'

  3. Declaration of 'u_int32_t' must be imported from module 'DarwinFoundation.unsigned_types.u_int32_t' before it is required

  4. Declaration of 'u_char' must be imported from module 'DarwinFoundation.unsigned_types.u_char' before it is required

  5. Declaration of 'u_int16_t' must be imported from module 'DarwinFoundation.unsigned_types.u_int16_t' before it is required

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

Screenshot 2024-09-17 at 7 04 39 PM

@dlc-letelier
Copy link

Hi @dkawadePromobi, same here. Just installed XCode 16 and have the same errors, except the first one. And my app was OK in XCode 15. I will check it and if I can make it works, I will post the solution here.

@dlc-letelier
Copy link

Hi @dkawadePromobi , just compiled.

Reading here:

4fc08d6

I changed as suggested in the file:

/Users/xxxxxxx/Library/Developer/Xcode/DerivedData/WireGuard-elmexgjutbjkaecawqudbnnyjpds/SourcePackages/checkouts/wireguard-apple/Sources/WireGuardKitC/WireGuardKitC.h

And worked

@dkawadePromobi
Copy link

Hi @dlc-letelier , I did the same and worked, Waiting for the code to get merged.

@Harisghanchi
Copy link

Harisghanchi commented Oct 10, 2024

HELLO @Shahzainali i have download your project but still getting Command ExternalBuildToolExecution failed with a nonzero exit code
xcode 15.4 i have tried user defined path solution but not working

@Shahzainali
Copy link
Author

@Harisghanchi Have you verified the go path in script.sh?

@Shahzainali
Copy link
Author

Shahzainali commented Oct 11, 2024

@Harisghanchi
Copy link

i could not find this script/build_wireguard_go_bridge.sh

@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

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.