-
Notifications
You must be signed in to change notification settings - Fork 426
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
Allows build to run on iOS Simulator for Apple Silicon #12
base: master
Are you sure you want to change the base?
Conversation
This would be super useful for those working on Apple Silicon (M1/M2). |
@vetrek I merged this today into my fork, but I doesn't fix it.
Does this fix only affect the app under |
@houmie I've only tested this for WireGuardKit integration through SPM, but this should work for WireGuardApp. I'm just changing the MAKEFILE which is used to compile the WireGuardKitGo lib. have you started having this problem after the merge? |
@vetrek Ah that's great. I only need it for WireGuardKit integration through SPM. Have you run it successfully on Mac M1 (Silicon)? (I got the latest after merging your PR) First I merged your PR into my own fork and then tried to build and run it on a simulator. And that's above is the error I got. When I run it on the device, it's working fine though. How strange that it works for you. |
Yes, I'm running it on my M1 iPhone Simulator. To be honest that does not seem to be a problem related to my commit - it seems to be a simple Xcode configuration problem. That SourcePackages folder is automatically created when Xcode fetches all your external libs through SPM, that's why as a first step I would make sure it completes successfully. One more thing I would like to mention is the fact that the provided Directory path for the "External Build Tool Configuration" within the documentation is incorrect for me. Not sure if this is due to the M1. That's why I simply created a new User-Defined property for WireGuardGoBridgeiOS Target. Like this: |
Sorry, @vetrek I did some clean up and removed everything from the Now I get this error, does it maybe sound familiar?
I even added the simulator architecture, without any luck. How have you set up this section in your project, please? |
c37881b
to
2fec12a
Compare
Why it is still not in production? |
@vetrek is it allows to work and test VPN on simulator? |
Allows wireguard-go to be built for iOS simulator which runs on Apple Silicon.