Development discussion of WireGuard
 help / color / mirror / Atom feed
From: Igor Bozin <igorbzin@gmail.com>
To: Neutron <dotneutron@protonmail.ch>
Cc: wireguard@lists.zx2c4.com
Subject: Re: Support for M1 MacBook Simulators
Date: Thu, 4 Nov 2021 12:14:15 +0100	[thread overview]
Message-ID: <5F19BC44-58DD-4391-AB17-239B4F980816@gmail.com> (raw)
In-Reply-To: <re37dSyY_rXzrSL5DCMtppy1I37FlAT-pqCZjPdPpw8CHDxX3Nn3xeVECxTBMRFJBk-XEINrSbXY4KvWEtfii8GbwxZPNg7CZgCW-3asMus=@protonmail.ch>

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


      reply	other threads:[~2021-11-04 11:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-29 13:59 Igor Bozin
2021-10-29 15:24 ` Neutron
2021-11-04 11:14   ` Igor Bozin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5F19BC44-58DD-4391-AB17-239B4F980816@gmail.com \
    --to=igorbzin@gmail.com \
    --cc=dotneutron@protonmail.ch \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).