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

Support Simulator and Catalyst targets #14

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

keeshux
Copy link

@keeshux keeshux commented Sep 30, 2022

Make Go library build correctly on iPhone Simulator and Mac Catalyst.

Script adjustments might appear inelegant, but the generated library has worked 100% on these targets. Tested in my production app for 6+ months.

@houmie
Copy link

houmie commented Jan 27, 2023

@keeshux I have tried this on Mac M1 without success.

I get the error:

Error Domain=NSCocoaErrorDomain Code=4 "The file “SourcePackages” doesn’t exist." UserInfo={NSFilePath=/Users/houmie/Library/Developer/Xcode/DerivedData/project-ewigkyiwmukfdibbvzefbzcdfqhi/SourcePackages, NSUnderlyingError=0x600099ee17a0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

Does this fix only affect the app under Sources/WireGuardApp or also the library Sources/WireGuardKit?

@zx2c4-bot zx2c4-bot force-pushed the master branch 2 times, most recently from c37881b to 2fec12a Compare February 15, 2023 13:21
keeshux added 2 commits March 18, 2023 13:39
Signed-off-by: Davide De Rosa <[email protected]>
Signed-off-by: Davide De Rosa <[email protected]>
@keeshux keeshux force-pushed the keeshux/fix-additional-targets branch from f745d0c to 4a671c4 Compare March 18, 2023 12:40
Signed-off-by: Davide De Rosa <[email protected]>
@keeshux
Copy link
Author

keeshux commented Sep 13, 2023

@keeshux I have tried this on Mac M1 without success.

I get the error:

Error Domain=NSCocoaErrorDomain Code=4 "The file “SourcePackages” doesn’t exist." UserInfo={NSFilePath=/Users/houmie/Library/Developer/Xcode/DerivedData/project-ewigkyiwmukfdibbvzefbzcdfqhi/SourcePackages, NSUnderlyingError=0x600099ee17a0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

Does this fix only affect the app under Sources/WireGuardApp or also the library Sources/WireGuardKit?

Affects the library. I’ve used this patch successfully in my app for more than a year, and I do use a M1. 🤔

@houmie
Copy link

houmie commented Jan 26, 2025

Sorry for the late reply. It works! :)

I just needed this one line: GOOS_iphonesimulator := iOS.

It’s a shame WireGuard is no longer properly maintained. None of these pull requests will ever be merged.

@luckman212
Copy link

It’s a shame WireGuard is no longer properly maintained. None of these pull requests will ever be merged.

I didn't know the project had been abandoned. Anyone know why or what happened?

@houmie
Copy link

houmie commented Jan 26, 2025

Yeah, look at the last commit from two years ago. The most recent actual fix in the library was on 2023-02-08. Check the dates on the pull requests—some are several years old. Not a single one has been reviewed or merged.

@luckman212
Copy link

Hopefully someone will fork and continue to keep it alive. I consider Wireguard a very important piece of network infrastructure; it would be a real shame if it stopped working on macOS.

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.

3 participants