Hello everyone,
I have an application that I need to build in a way that at the end 2 .pkgs are coming out.
One for M1 processors and one for Intel.
Now I am thinking about distribution.
Is there a way where one can create a universal installer that has the possibility to choose for itself between those versions (.pkgs) based on the host processor?
Or any other way of distribution where the user does not take care which version they will download, but where one universal installer is provided that should decide for itself which of the 2 .pkgs will be installed?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hello everyone,
i would like to support the NSURLAuthenticationMethodClientCertificate method on a macOS app. I have a certificate, that is saved in keychain.
What i would like to achieve is, when I become the NSURLAuthenticationMethodClientCertificate method, to get information from URLAuthenticationChallenge and based on that search for the right certificate in the keychain service.
So far, I have the following idea:
From URLAuthenticationChallenge, I can get the acceptable certificate issuing authorities:
let acceptableCertificateAuthorities = challenge.protectionSpace.distinguishedName
At the end, i have a keychain service that should query based on kSecMatchIssuers.
How do I become the information from acceptableCertificateAuthorities(which is [Data]?) to CFArray of ASN.1 DER Encoding based on which I can query the certificate in the keychain?
Thanks in advance.
Hello everywhere,
I have an app from which I am trying to find out if a certain other running application is translated with Rosetta.
What I am basically trying is
var mib: [Int32] = [CTL_KERN, KERN_PROC, KERN_PROC_PID, id]
let length = 4
var size = MemoryLayoutkinfo_proc.stride
let result = sysctl(&mib, u_int(length), &info, &size, nil, 0)
Where ID is the PID from this other application. I get this ID from the current running application.
Unfortunately every time when I try to check if that application is translated I get a false even when it is.
For example this here is always false
P_TRANSLATED == (P_TRANSLATED & info.kp_proc.p_flag)
My application is native, and I want to check if another running process(application) is translated.
Any suggestions?