ivpn / ios-app

Official IVPN iOS app
https://www.ivpn.net/apps-ios
GNU General Public License v3.0
413 stars 86 forks source link

Project setup issue : Undefine symbol for openvpn_tunnel #427

Closed AnitaGVMTechnologies closed 5 months ago

AnitaGVMTechnologies commented 5 months ago

Hello There I am new to VPN projects

I need to connect V2ray server using VPN in IOS application and i am refering your code which seems most useful for my developement

but even though i followed all steps of shared in READ.ME file i am unable to go further towords successful builds

Please see attached screenshot and help me out

Screenshot 2024-02-06 at 4 00 38 PM
jurajhilje commented 5 months ago

Hi

If you are trying to implement V2Ray in your own iOS project, I suggest few things:

Good luck!

AnitaGVMTechnologies commented 5 months ago

Hi @jurajhilje Here the Kemhelper file gave issues on generateKeys functions

private func generateKeys(algorithm: KemAlgorithm) -> (String, String) { let kem = OQS_KEM_new(algorithm.rawValue) let publicKeyLength = OQS_KEM_kyber_1024_length_public_key let secretKeyLength = OQS_KEM_kyber_1024_length_secret_key let publicKey = UnsafeMutablePointer.allocate(capacity: Int(publicKeyLength)) let secretKey = UnsafeMutablePointer.allocate(capacity: Int(secretKeyLength))

    OQS_KEM_keypair(kem, publicKey, secretKey)

    let publicKeyData = Data(bytes: publicKey, count: Int(publicKeyLength))
    let secretKeyData = Data(bytes: secretKey, count: Int(secretKeyLength))

    OQS_KEM_free(kem)
    publicKey.deallocate()
    secretKey.deallocate()

    return  ("","")//(publicKeyData.base64EncodedString(), secretKeyData.base64EncodedString())
}

compiler gives error at first line :         let kem = OQS_KEM_new(algorithm.rawValue)

If i comment i can able to buil liboq.a

gauravkeshre commented 5 months ago

@jurajhilje is V2Ray essential for the basic functioning of the app? I have a VPN server setup and I want to try that in an iOS client app. Can I bypass this step somehow?