I’m trying to make an install build of Unreal Engine 4.19.2 that supports iOS but I’m getting a System.Security.Cryptography.CryptographicException: when it gets to the IPhonePackager tool. It seems to find the provisioning profiles correctly but when it goes to exporting it, this is where the exception occurs.
The error is generated by the code in CompileTime.cs:
// copy the signing certificate over
// export the signing certificate to a file
MobileProvision Provision = MobileProvisionParser.ParseFile(ProvisionWithPrefix);
var Certificate = CodeSignatureBuilder.FindCertificate(Provision);
byte] Data = Certificate.Export(System.Security.Cryptography.X509Certificates.X509ContentType.Pkcs12, **"A"**); **<---- Exception thrown here**
I’m assuming the exception thrown is because the password “A” is incorrect here when trying to decrypt the certificate. What should be the password here?
I’ve attached a partial log that shows the error with any personal details omitted.
They’re both pretty good articles to get you going. You will need to be a paid Apple developer to be able to generate the provisioning profiles mentioned in the documentation.
It’s been a while since I posted this. Are there any Epic staff that can help me with the problem? I think I’m very close to being able to create an install build using the Unreal Engine source, do I need to change anything in the C# script file so the decryption will work?
Try deleted all provision and certs from windows. and reimport them (export from keychain). Just remember not to have password for your .p12 file . cheers!
Why no password for the p12 file? Is there something that messes up in the remote build process when you do that? I am having issues getting remote build working on 4.20 and I am wondering if it is related because I did put a password on my p12 file.