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

Support Simulator and Catalyst targets

Open keeshux opened this issue 2 years ago • 2 comments

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.

keeshux avatar Sep 30 '22 20:09 keeshux

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

houmie avatar Jan 27 '23 12:01 houmie

@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. 🤔

keeshux avatar Sep 13 '23 17:09 keeshux