Shahzainali / Wireguardkit

8 stars 1 forks source link

Question - Does this project support macOS? #1

Open yuerem opened 5 months ago

yuerem commented 5 months ago

Thank you for this wonderful project. It seems to support iOS, but does it also support macOS? I tried building and running the project on a macOS system and, while there were no error messages, nothing happened when I attempted to run it. Any advice or guidance would be greatly appreciated.

Shahzainali commented 5 months ago

Hi, it will but you need to repeat some steps: 1: Add one more external target. WireguardGoBridgeMacOS 2: Switch to "Build Settings" and find SDKROOT. Type in macosx fos macos. 3: In NetworkExtenstion "Dependencies" section and hit "+" to add WireGuardGoBridgeMacOS

I have got these steps from the official repo, I haven't tried. but I am sure it will work as explained above.

yuerem commented 5 months ago

@Shahzainali I tried again today following the guide from the beginning, but I encountered an error and could not build the project. Could you provide any advice?

Chip: Apple M2 OS: 14.4 Xcode: 15.3

ERROR:

Undefined symbols for architecture arm64:
  "_darwin_arm_init_mach_exception_handler", referenced from:
      _x_cgo_init in libwg-go.a[arm64][9](000006.o)
  "_darwin_arm_init_thread_exception_port", referenced from:
      _threadentry in libwg-go.a[arm64][9](000006.o)
      _x_cgo_init in libwg-go.a[arm64][9](000006.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
evan802399 commented 2 months ago

@Shahzainali HI, i modify app identifier to mine, then run the demo, get some errors image

can you give me any advice ?

evan802399 commented 2 months ago

@Shahzainali HI, i modify app identifier to mine, then run the demo, get some errors image

can you give me any advice ?

Chip: Apple M1 OS: 14.4 Xcode: 15.4