Post marked as unsolved
101
Views
Hi.
I've been trying to make an ed25519 key pair from already existing keys, which has been giving me significant issues.
I made an ed25519 key pair through OpenSSH (the keygen command), and attempted to input the private and public keys into the Curve25519 object. They keep giving me back CryptoKit Error 1, which has no further description.
So I also tried to generate keys with Curve25519, but I cannot make a string representation of them. I always get 'nil' back trying to utf8 encode them into Strings from Data, but I can base64 encode them successfully. I need the original String representation.
So how do I add already existing ed25519 keys, and how do I get String representations of ones I generate with Curve25519?
Post marked as unsolved
17
Views
Hi.
I'm attempting to add the YOLOv3 MLModel from the main apple.com domain to my project. I downloaded the .mlmodel file and added it to my project, but whenever I go to make an MLModel object of it, it keeps coming back with the following error
Error Domain=com.apple.CoreML Code=3 "Error reading protobuf spec. validator error: Model specification version field missing or corrupt." UserInfo={NSLocalizedDescription=Error reading protobuf spec. validator error: Model specification version field missing or corrupt.}
This is just by calling try MLModel.compileModel(at: url), where url is determined by Bundle.main.url(forResource: "YOLOv3", withExtension: "mlmodelc")
I don't understand why this is happening.
Post marked as unsolved
239
Views
Hi.I've made an application that utilizes Apple health records, and the permissions screen to enable accessing records has a link to view a privacy policy. I've got a link to the policy in itunes connect, and I can access outside the app, but whenever I download a build from testflight and try to view it from the permissions screen, I keep getting "Network connection could not be established. Try again later." Since the privacy policy link is established through itunes connect, it would explain why I get this error in local development builds, but why is this happening in Testflight builds too?
Post marked as unsolved
824
Views
Hi,I've been attempting to create a app that can read in user traffic and then route it normally.Essentially, I've been using NEPacketTunnelProvider with a test linux server as a VPN, and have been routing traffic through that. I can successfully perform traffic routing with this client/server setup.Now what I want is to perform this without the server.I've been successful with performing DNS requests and getting back responses, and I've confirmed this using Wireshark. What I don't understand is why there are no subsequent requests leading to an HTTP/s request being generated and getting passed into the TunnelProvider. Instead, more DNS requests are being fired as if the client never got the response. I'm passing back the response data into the packetFlow object, with IP and UDP headers that I construct manually since the UDPSession object strips those headers off, and I'm matching the data as much as I can with how it would be had I still had the linux server. The only aspects I can't replicate would be the TTL and packet ID, but they shouldn't have any significant effect so I generate them randomly.Despite the IP and port information being correct, the client phone never seems to process the response packets. This never happens when using the client/server structure for the VPN. I don't understand what difference is preventing the phone from reading those response packets.