Development discussion of WireGuard
 help / color / mirror / Atom feed
* Support for M1 MacBook Simulators
@ 2021-10-29 13:59 Igor Bozin
  2021-10-29 15:24 ` Neutron
  0 siblings, 1 reply; 3+ messages in thread
From: Igor Bozin @ 2021-10-29 13:59 UTC (permalink / raw)
  To: wireguard

Hello,

I am trying to build a project which contains a dependency on WireGuard through a Swift package.
The laptop I am running on (M1 MacBook) can't build the project, because libwg-go can't be compiled for the arm64 architecture for iPhone simulators. 
I am aware that Network Extensions functionality doesn't work on simulators, but not making the binaries available for simulators makes it impossible to test other features of the App in any project that WireGuard is part of.
Are there any plans to support simulator architectures as well, or any other workarounds for this?

Best regards,

Igor

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Support for M1 MacBook Simulators
  2021-10-29 13:59 Support for M1 MacBook Simulators Igor Bozin
@ 2021-10-29 15:24 ` Neutron
  2021-11-04 11:14   ` Igor Bozin
  0 siblings, 1 reply; 3+ messages in thread
From: Neutron @ 2021-10-29 15:24 UTC (permalink / raw)
  To: Igor Bozin; +Cc: wireguard

Hey Igor,

I believe I encountered this in the past.
https://lists.zx2c4.com/pipermail/wireguard/2021-September/007001.html

I'm not sure what your exact setup is since you mentioned it's a separate project presumably depending on WireGuardKit, but I can build libwg-go for arm64 just fine using the trick I mentioned in the linked thread. Just add this flag to Sources/WireGuardKitGo/Makefile.
GOOS_iphonesimulator := ios

Hope it helps.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Support for M1 MacBook Simulators
  2021-10-29 15:24 ` Neutron
@ 2021-11-04 11:14   ` Igor Bozin
  0 siblings, 0 replies; 3+ messages in thread
From: Igor Bozin @ 2021-11-04 11:14 UTC (permalink / raw)
  To: Neutron; +Cc: wireguard

Hello David and Neutron,

my setup is following: I have added the WG library as a SPM dependency to my project and followed all steps as described in the Github readme from wireguard:

https://github.com/WireGuard/wireguard-apple

What I am trying to do is to build a framework which has some other functionality on top and wrap WG within that framework. I can build just fine for iOS arm64 and iPhone simulator x86_64 architectures.

When I try to do the steps you described in the linked message, to build a framework for arm64 iPhone simulator, I still get the following error when I try to build the project with an arm64 simulator target:

/Users/igorbozin/Projects/cyan-internetprotectionsdk-ios/InternetProtectionApp.xcodeproj Building for iOS Simulator, but the linked library 'libwg-go.a' was built for iOS.


Is there a way to modify the makefile, so I can build a version of libwg-go.a for arm64 iPhone simulators?

Best regards,

Igor

> On 29.10.2021, at 17:24, Neutron <dotneutron@protonmail.ch> wrote:
> 
> Hey Igor,
> 
> I believe I encountered this in the past.
> https://lists.zx2c4.com/pipermail/wireguard/2021-September/007001.html
> 
> I'm not sure what your exact setup is since you mentioned it's a separate project presumably depending on WireGuardKit, but I can build libwg-go for arm64 just fine using the trick I mentioned in the linked thread. Just add this flag to Sources/WireGuardKitGo/Makefile.
> GOOS_iphonesimulator := ios
> 
> Hope it helps.
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-04 11:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-29 13:59 Support for M1 MacBook Simulators Igor Bozin
2021-10-29 15:24 ` Neutron
2021-11-04 11:14   ` Igor Bozin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).