Caqil / wireguard_flutter

wireguard_flutter
https://pub.dev/packages/wireguard_flutter
MIT License
20 stars 20 forks source link

Cant connect VPN in IOS #12

Closed rifatul-is closed 3 months ago

rifatul-is commented 6 months ago

I am using the example code you provided but still can't run it on IOS, I get an error on the profile saying "Update Required". I have a developer account and I created new bundle IDs for the app. The original WireGuardKit IOS package runs fine with the same bundle ID but this one doesnt. IMG_9785

Caqil commented 6 months ago

I am using the example code you provided but still can't run it on IOS, I get an error on the profile saying "Update Required". I have a developer account and I created new bundle IDs for the app. The original WireGuardKit IOS package runs find with the same bundle ID but this one doesnt. IMG_9785

hello, what iOS do you use? minimum iOS is 15

rifatul-is commented 6 months ago

I am using IOS 17.0.1

aakashch0179 commented 5 months ago

The same problem I am using IOS 17, I get an error on the profile saying "Update Required".

mahevstark commented 5 months ago

I am using IOS 15.8, getting same error. @Caqil @rifatul-is found any solution?

Caqil commented 5 months ago

The same problem I am using IOS 17, I get an error on the profile saying "Update Required".

I am using IOS 15.8, getting same error. @Caqil @rifatul-is found any solution?

hello, can you send your conf wg?

mahevstark commented 5 months ago

@Caqil
it is working on android but not on ios


[Interface]
PrivateKey = ${response?.privateKey}
Address = ${response?.address}
DNS = ${response?.dns}

[Peer]
PublicKey = ${response?.publicKey}
AllowedIPs = ${response?.allowedIps}
PersistentKeepalive = 0
Endpoint = ${response?.endPoint}
bdlukaa commented 5 months ago

Does deleting the tunnels (profiles) and creating them again work?

If not, can you try this solution and tell if it works?

If none of these work, please share a reproducible snippet of code for us to test. Thanks

rifatul-is commented 5 months ago

This is wg cofig @Caqil

[Interface] PrivateKey = ${response?.privateKey} Address = ${response?.address} DNS = ${response?.dns}

[Peer] PublicKey = ${response?.publicKey} AllowedIPs = ${response?.allowedIps} Endpoint = ${response?.endPoint}

Deleting the tunnels and recreating it doesn't work.

Also this solution doesnt work. To reproduce the problem u can just copy the example code on a new flutter project and run on ios and it wont connect. I was able to run the example provided in the package though.

bdlukaa commented 5 months ago

You need to set the providerBundleIdentifier according to the app bundle identifier.

Forever921 commented 4 months ago

You need to set the providerBundleIdentifier according to the app bundle identifier.

Modified macos will work, ios will not。

Forever921 commented 4 months ago

You need to set the providerBundleIdentifier according to the app bundle identifier.

Modified macos will work, ios will not。

I modified General->Minimun Deployments ->ios 15 can work normally 。

bdlukaa commented 4 months ago

Believe we need to add iOS installation instructions to the README.

rifatul-is commented 4 months ago

@bdlukaa @mahevstark @aakashch0179 It does need a better IOS installation documentation. If you still coundn't get it to work, can you try this?

  1. Add Network Extension and WireguardGoBridge to the Targets.
  2. Select Runner go to Build Phase and expand Embed Foundation Extension and unckeck Copy only when installing
  3. If this creates a cycle error in xcode put Embed Foundation Extension above Embed Frameworks

Hope This Helps.