GithubHelp home page GithubHelp logo

pia-foss / mobile-ios Goto Github PK

View Code? Open in Web Editor NEW
265.0 17.0 76.0 42.79 MB

Private Internet Access - PIA VPN for iOS

License: MIT License

Ruby 0.43% Swift 99.27% Objective-C 0.20% Shell 0.10%
swift ios vpn vpn-client pia pia-vpn

mobile-ios's People

Contributors

ammmir avatar kape-jonathon-h avatar keeshux avatar kp-geneva-parayno avatar kp-juan-docal avatar kp-laura-sempere avatar kp-said-rehouni avatar mijail avatar ueshiba avatar xv-miguel-berrocal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mobile-ios's Issues

The connection could not be established, you can try selecting a different region.

Summary

After I built the app without HotspotHelper entitlement, and tried to connect to any server with either of protocol, app displays message, " The connectoin could not be established, you can try selecting a different region ... "

Steps to reproduce

(Please provide detail steps).
Remove com.apple.developer.networking.hotspothelper from entitlements, and try to connect without it.
I could not arrange for that specific entitlment, requested to apple but got rejected.

What is the current bug behaviour?

Connection is not establishing.

Relevant logs and/or screenshots

16:43:36.679 ❤️ ERROR ConnectivityDaemon.checkConnectivityOrRetry():134 - Failed to check network connectivity (error: The operation couldn’t be completed. (PIALibrary.ClientError error 1.)
16:43:38.622 ❤️ ERROR VPNDaemon.tryUpdateStatus():187 - The VPN did fail Error Domain=TunnelKitOpenVPNManager.OpenVPNProviderConfigurationError Code=0 "(null)"
16:43:38.630 ❤️ ERROR VPNDaemon.tryUpdateStatus():187 - The VPN did fail Error Domain=TunnelKitOpenVPNManager.OpenVPNProviderConfigurationError Code=0 "(null)"
16:43:38.630 ❤️ ERROR VPNDaemon.tryUpdateStatus():187 - The VPN did fail Error Domain=TunnelKitOpenVPNManager.OpenVPNProviderConfigurationError Code=0 "(null)"
16:43:38.630 ❤️ ERROR VPNDaemon.tryUpdateStatus():187 - The VPN did fail Error Domain=TunnelKitOpenVPNManager.OpenVPNProviderConfigurationError Code=0 "(null)"
16:43:38.634 ❤️ ERROR VPNDaemon.tryUpdateStatus():187 - The VPN did fail Error Domain=TunnelKitOpenVPNManager.OpenVPNProviderConfigurationError Code=0 "(null)"
16:43:38.635 ❤️ ERROR VPNDaemon.tryUpdateStatus():187 - The VPN did fail Error Domain=TunnelKitOpenVPNManager.OpenVPNProviderConfigurationError Code=0 "(null)"
16:43:38.635 ❤️ ERROR VPNDaemon.tryUpdateStatus():187 - The VPN did fail Error Domain=TunnelKitOpenVPNManager.OpenVPNProviderConfigurationError Code=0 "(null)"
16:43:38.635 ❤️ ERROR VPNDaemon.tryUpdateStatus():187 - The VPN did fail Error Domain=TunnelKitOpenVPNManager.OpenVPNProviderConfigurationError Code=0 "(null)"
16:43:38.640 ❤️ ERROR VPNDaemon.tryUpdateStatus():187 - The VPN did fail Error Domain=TunnelKitOpenVPNManager.OpenVPNProviderConfigurationError Code=0 "(null)"
16:43:38.640 ❤️ ERROR VPNDaemon.tryUpdateStatus():187 - The VPN did fail Error Domain=TunnelKitOpenVPNManager.OpenVPNProviderConfigurationError Code=0 "(null)"
16:43:38.640 ❤️ ERROR VPNDaemon.tryUpdateStatus():187 - The VPN did fail Error Domain=TunnelKitOpenVPNManager.OpenVPNProviderConfigurationError Code=0 "(null)"
16:43:38.640 ❤️ ERROR VPNDaemon.tryUpdateStatus():187 - The VPN did fail Error Domain=TunnelKitOpenVPNManager.OpenVPNProviderConfigurationError Code=0 "(null)"
Failed to save configuration Private Internet Access: Error Domain=NEConfigurationErrorDomain Code=5 "configuration is stale" UserInfo={NSLocalizedDescription=configuration is stale}
Failed to save configuration: Error Domain=NEVPNErrorDomain Code=4 "configuration is stale" UserInfo={NSLocalizedDescription=configuration is stale}
16:43:38.682 ❤️ ERROR VPNDaemon.tryUpdateStatus():187 - The VPN did fail Error Domain=TunnelKitOpenVPNManager.OpenVPNProviderConfigurationError Code=0 "(null)"
16:43:38.686 ❤️ ERROR VPNDaemon.tryUpdateStatus():187 - The VPN did fail Error Domain=TunnelKitOpenVPNManager.OpenVPNProviderConfigurationError Code=0 "(null)"
16:43:38.687 ❤️ ERROR VPNDaemon.tryUpdateStatus():187 - The VPN did fail Error Domain=TunnelKitOpenVPNManager.OpenVPNProviderConfigurationError Code=0 "(null)"
16:43:38.687 ❤️ ERROR VPNDaemon.tryUpdateStatus():187 - The VPN did fail Error Domain=TunnelKitOpenVPNManager.OpenVPNProviderConfigurationError Code=0 "(null)"
16:43:38.695 ❤️ ERROR VPNDaemon.tryUpdateStatus():187 - The VPN did fail Error Domain=TunnelKitOpenVPNManager.OpenVPNProviderConfigurationError Code=0 "(null)"
16:43:38.695 ❤️ ERROR VPNDaemon.tryUpdateStatus():187 - The VPN did fail Error Domain=TunnelKitOpenVPNManager.OpenVPNProviderConfigurationError Code=0 "(null)"
16:43:38.696 ❤️ ERROR VPNDaemon.tryUpdateStatus():187 - The VPN did fail Error Domain=TunnelKitOpenVPNManager.OpenVPNProviderConfigurationError Code=0 "(null)"
16:43:38.696 ❤️ ERROR VPNDaemon.tryUpdateStatus():187 - The VPN did fail Error Domain=TunnelKitOpenVPNManager.OpenVPNProviderConfigurationError Code=0 "(null)"
16:43:38.802 ❤️ ERROR VPNDaemon.tryUpdateStatus():187 - The VPN did fail Error Domain=TunnelKitOpenVPNManager.OpenVPNProviderConfigurationError Code=0 "(null)"
16:43:38.830 ❤️ ERROR VPNDaemon.tryUpdateStatus():187 - The VPN did fail Error Domain=TunnelKitOpenVPNManager.OpenVPNProviderConfigurationError Code=0 "(null)"

Allow Hotspot Helper notice to be hidden

Summary

Allow Hotspot Helper notice to be hidden

Steps to reproduce

  1. open Settings.app
  2. go to wifi settings
  3. look for any open wifi network

What is the current bug behaviour?

311F92D9-66E7-44FA-B528-E8D2FABE429C
This happens regardless of whether "network management" is on or off.

What is the expected correct behaviour?

Allow the notice to be hidden.

Pod installing error

veer@Veers-iMac vpn-ios % pod install
Analyzing dependencies
[!] No podspec found for PIAAccountModule in /Users/jose/Projects/PIA/account

How can fix this one?

Error installing PIAKPIModule

pod install error :

[!] Error installing PIAKPIModule
[!] Failed to download 'PIAKPIModule': [!] /usr/bin/git clone [email protected]:pia-mobile/shared/kpi.git /var/folders/pf/jwjt8jq5349dd24d6f0mb_sc0000gp/T/d20221113-10943-6526ya --template=

Cloning into '/var/folders/pf/jwjt8jq5349dd24d6f0mb_sc0000gp/T/d20221113-10943-6526ya'...
ssh: connect to host gitlab.kape.com port 22: Operation timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


how can I solve this ?

Xcode resports errors and fails to build "PIA VPN" scheme

Summary

Steps to reproduce

Building from scratch as described in the README file.

What is the current bug behaviour?

Xcode reports errors and fails to build "PIA VPN" scheme.

What is the expected correct behaviour?

Xcode should successfully build the app when build directions are followed.

Relevant logs and/or screenshots

Showing Recent Messages
:-1: /Users/tom/Projects/vpn-ios/Pods/Target Support Files/Pods-PIA VPN Tunnel/Pods-PIA VPN Tunnel.debug.xcconfig: unable to open file (in target "PIA VPN Tunnel" in project "PIA VPN") (in target 'PIA VPN Tunnel')

screen shot 2018-12-14 at 6 09 38 pm

Possible fixes suggested re-mediation

The error is complaining about a missing file: Pods-PIA VPN Tunnel.debug.xcconfig
That file is indeed missing on the filesystem.

If this is a private file with secrets, can you update the build instructions explaining what should go in that file and provide a dummy file with example values that result in a successful build?

Or is the error possibly caused by the spaces in the PATH?

Assignees and labels

( please add labels as applicable )

  • Patched
  • Verified patch

Pod install shows "Failed to download 'PIAWireguard'

Summary

Steps to reproduce

pod install

What is the current bug behaviour?

After running pod install command it shows Failed to download 'PIAWireguard' and after some time it shows no space left on device. I had 24 gb space on my device. Do i really need more space to run this coammnd?
Screenshot 2020-10-25 at 2 21 16 PM
Screenshot 2020-10-25 at 2 22 28 PM

`pod install` fails after cloning from github

Summary

pod install fails after cloning from github

Steps to reproduce

  • clone repository
  • run pod install

What is the current bug behaviour?

pod install fails to install PIAAccountModule

What is the expected correct behaviour?

pod install succeeds after a fresh clone from github

Relevant logs and/or screenshots

Error message I receive when running pod install:

toms-MBP:t0mmar tom$ pod install
Analyzing dependencies
[!] No podspec found for `PIAAccountModule` in `/Users/jose/Projects/PIA/account`

Possible fixes suggested re-mediation

Update paths in Podfile:

def shared_main_pods
    pod 'AlamofireImage'
    pod "PIAAccountModule", :path => "/Users/jose/Projects/PIA/account"
    pod "PIARegions", :git => "#{$git_root}/#{$regions_repo}"
    library_by_path('/Users/jose/Projects/PIA')
    #library_by_git('ba3cd1f')
    #library_by_version('~> 1.1.3')
end

Assignees and labels

( please add labels as applicable )

  • Patched
  • Verified patch

Build fails: No such module 'Regions'

Summary

Steps to reproduce

  • clone this repo
  • pod install
  • update plists, entitlements, etc. with custom Apple identifiers
  • build

What is the current bug behaviour?

I get one error building the PIARegions pod. It claims that 'Regions' module is not defined.

What is the expected correct behaviour?

I'm expecting the build to succeed.

Relevant logs and/or screenshots

Screen Shot 2020-12-11 at 4 20 12 PM

Possible fixes suggested re-mediation

??? (don't have any)

Assignees and labels

( please add labels as applicable )

  • Patched
  • Verified patch

Build errors: "Server has no member 'dipToken'"

Summary

Steps to reproduce

  • clone the vpn-ios repo
  • update Podfile to stop pointing to local paths (here is the Podfile I used)
  • pod install
  • open 'PIA VPN.xcworkspace' -> Product -> Build
  • it fails initially because of some outstanding pod integration issues; the following is a workaround
  • pod install
  • open 'PIA VPN.xcworkspace' -> Product -> Build

What is the current bug behaviour?

Results in build errors, mostly about Server not having dipToken member.

What is the expected correct behaviour?

Build succeeds.

Relevant logs and/or screenshots

Screen Shot 2020-12-12 at 3 17 26 PM

Build PIA VPN_2020-12-12T15-07-17.txt

Possible fixes suggested re-mediation

Don't know, but I suspect something about those local Pod paths is not picked up in the git references.

Assignees and labels

( please add labels as applicable )

  • Patched
  • Verified patch

Pod Install Issue

Hello, i keep getting this error.

[!] Error installing PIAAccountModule
[!] Failed to download 'PIAAccountModule': [!] /usr/local/bin/git clone [email protected]:pia-mobile/shared/account.git /var/folders/0d/wfnhw6qd1573tf3zy5c1tws80000gn/T/d20210722-30783-nfpspg --template=

Cloning into '/var/folders/0d/wfnhw6qd1573tf3zy5c1tws80000gn/T/d20210722-30783-nfpspg'...
ssh: connect to host gitlab.kape.com port 22: Operation timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Pod install error OpenSSL-Apple

Summary

Steps to reproduce

(Please provide detail steps).
cd repo
pod install

What is the current bug behaviour?

(What actually happens).
[!] Error installing OpenSSL-Apple
[!] /usr/bin/git clone https://github.com/keeshux/OpenSSL-Apple /var/folders/sr/_bc9hcvx6211v60tyvtjcg_80000gp/T/d20190721-57906-1m78xko --template= --single-branch --depth 1 --branch 1.0

Cloning into '/var/folders/sr/_bc9hcvx6211v60tyvtjcg_80000gp/T/d20190721-57906-1m78xko'...
warning: Could not find remote branch 1.0 to clone.
fatal: Remote branch 1.0 not found in upstream origin

pod repo update not solve the problem

What is the expected correct behaviour?

(What you should see instead).
pod install success

Relevant logs and/or screenshots

Possible fixes suggested re-mediation

change branch?

Assignees and labels

( please add labels as applicable )

  • Patched
  • Verified patch

Fails to log in with valid PIA credentials

Summary

App build from these sources fails to authenticate a valid PIA user whose credentials do work on the official PIA app from the App Store.

Steps to reproduce

  • build the app from these sources
  • start running it on a device
  • type in username and password, one that works on the official PIA app
  • press Login button

What is the current bug behaviour?

The call to log in fails with error "unauthorized"

What is the expected correct behaviour?

Login succeeds because the credentials are good

Relevant logs and/or screenshots

image

Network calls:

POST /api/client/v2/token HTTP/1.1
Host: www.privateinternetaccess.com
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Cookie: _pia_lm=en_en; u=6lch1c4z0562usuevnnp7wz1l
Connection: keep-alive
Accept: */*
User-Agent: PIA VPN/0.1.0 (*****; build:1; iOS 12.1.0) Alamofire/4.8.0
Accept-Language: en;q=1.0
Content-Length: 37
Accept-Encoding: gzip;q=1.0, compress;q=0.5

password=******&username=******

---

HTTP/1.1 200 OK
Server: Apache
Cache-Control: max-age=0, private, must-revalidate
X-XSS-Protection: 1; mode=block
X-Request-Id: 56eff9c2-a218-4b1f-8b2a-67a0f1f8eec4
X-Frame-Options: SAMEORIGIN
X-Runtime: 0.024810
X-Content-Type-Options: nosniff
ETag: W/"fdf66f0fb9f39970417c701cbbf81dbc"
Status: 200 OK
Cache-Control: max-age=3600
Expires: Sat, 09 Mar 2019 23:15:00 GMT
X-Content-Type-Options: nosniff
X-Frame-Options: sameorigin
Strict-Transport-Security: max-age=15768000; includeSubdomains; preload
Content-Type: application/json; charset=utf-8
Date: Sat, 09 Mar 2019 22:15:00 GMT
Content-Length: 140
Connection: keep-alive

{"token":"66cb2b*****dca4194"}

---

GET /api/client/v2/account HTTP/1.1
Host: www.privateinternetaccess.com
Accept: */*
Cookie: _pia_lm=en_en; u=6lch1c4z0562usuevnnp7wz1l
User-Agent: PIA VPN/0.1.0 (*****; build:1; iOS 12.1.0) Alamofire/4.8.0
Accept-Language: en;q=1.0
Accept-Encoding: gzip;q=1.0, compress;q=0.5
Connection: keep-alive

---

HTTP/1.1 401 Unauthorized
Server: Apache
Cache-Control: no-cache
X-XSS-Protection: 1; mode=block
WWW-Authenticate: Token realm="Application"
X-Request-Id: 5275ed0a-863a-4e3d-9700-b498046d1423
X-Runtime: 0.005148
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
Status: 401 Unauthorized
Cache-Control: max-age=3600
Expires: Sat, 09 Mar 2019 23:15:00 GMT
X-Content-Type-Options: nosniff
X-Frame-Options: sameorigin
Strict-Transport-Security: max-age=15768000; includeSubdomains; preload
Content-Type: text/html; charset=utf-8
Date: Sat, 09 Mar 2019 22:15:00 GMT
Connection: close

HTTP Token: Access denied.


Possible fixes suggested re-mediation

Assignees and labels

( please add labels as applicable )

  • Patched
  • Verified patch

Hotspot Helper causes Wi-Fi network to not connect for 45 seconds

Summary

When connecting to a captive portal hotspot, the Wi-Fi will try to connect for 45 seconds before showing the captive portal, regardless of settings in the app.

Steps to reproduce

  • Install the app
  • connect to an insecure captive portal wi-fi network ( eg. starbucks )

What is the current bug behaviour?

connection to the network takes ~45 seconds

What is the expected correct behaviour?

captive portal interface should be shown

No longer open source?

Version 3 of this app was released on the iOS App Store on May 22, but this repository hasn't been updated past version 2.8.1. Is this app no longer open source?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.