iOS Install build failing

Hi all,

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.

Are you a paid member of the apple developer program?

I build install version of UE4 4.19.2 with IOS success on Mac. But i want build this on PC, how do you config remote mac and other things?

Hi Alan
Do you solve this problem?

@Jamesdaley121](https://forums.unrealengine.com/member/1789556-jamesdaley121) - Yes, the provisioning profile I am using is from a user that is using the paid developer program.

[USER=“200705”]Alan Liu[/USER]

I got remote building on Mac using a Windows machine by following the steps in these articles:

https://docs.unrealengine.com/en-us/Platforms/Mobile/iOS/iOSProvisioning

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!

@GRADgr Ok, I was thinking I might try that anyway. I’ve seen some other suggestions in other threads I might try as well.

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.