Description

Loading Windows installed iOs mobile provisioning profiles fails at start of iOS build from windows machine. This due to a recent change that attempts to load PKCS12 from mobileprovision files. These however contain DER certificates and as such, causes a failure due to invalid file format.

Steps to Reproduce

Package any template for iOS from Windows editor

Callstack

UATHelper: Packaging (IOS): Unhandled exception: AsnContentException: The provided data is tagged with 'Universal' class value '16', but it should have been 'Universal' class value '2'.
UATHelper: Packaging (IOS): at System.Formats.Asn1.AsnDecoder.CheckExpectedTag(Asn1Tag tag, Asn1Tag expectedTag, UniversalTagNumber tagNumber)
UATHelper: Packaging (IOS): at System.Formats.Asn1.AsnDecoder.GetPrimitiveContentSpan(ReadOnlySpan`1 source, AsnEncodingRules ruleSet, Asn1Tag expectedTag, UniversalTagNumber tagNumber, Int32& bytesConsumed)
UATHelper: Packaging (IOS): at System.Formats.Asn1.AsnDecoder.GetIntegerContents(ReadOnlySpan`1 source, AsnEncodingRules ruleSet, Asn1Tag expectedTag, UniversalTagNumber tagNumber, Int32& bytesConsumed)
UATHelper: Packaging (IOS): at System.Formats.Asn1.AsnDecoder.TryReadSignedInteger(ReadOnlySpan`1 source, AsnEncodingRules ruleSet, Int32 sizeLimit, Asn1Tag expectedTag, UniversalTagNumber tagNumber, Int64& value, Int32& bytesConsumed)
UATHelper: Packaging (IOS): at System.Formats.Asn1.AsnDecoder.TryReadInt32(ReadOnlySpan`1 source, AsnEncodingRules ruleSet, Int32& value, Int32& bytesConsumed, Nullable`1 expectedTag)
UATHelper: Packaging (IOS): at System.Security.Cryptography.Asn1.Pkcs12.PfxAsn.DecodeCore(AsnValueReader& reader, Asn1Tag expectedTag, ReadOnlyMemory`1 rebind, PfxAsn& decoded)
UATHelper: Packaging (IOS): at System.Security.Cryptography.Asn1.Pkcs12.PfxAsn.Decode(Asn1Tag expectedTag, ReadOnlyMemory`1 encoded, AsnEncodingRules ruleSet)Wrapped by CryptographicException: ASN1 corrupted data.
UATHelper: Packaging (IOS): at System.Security.Cryptography.Asn1.Pkcs12.PfxAsn.Decode(Asn1Tag expectedTag, ReadOnlyMemory`1 encoded, AsnEncodingRules ruleSet)
UATHelper: Packaging (IOS): at System.Security.Cryptography.X509Certificates.X509CertificateLoader.ReadCertsAndKeys(BagState& bagState, ReadOnlyMemory`1 data, ReadOnlySpan`1& password, Pkcs12LoaderLimits loaderLimits)
UATHelper: Packaging (IOS): at System.Security.Cryptography.X509Certificates.X509CertificateLoader.LoadPkcs12(ReadOnlyMemory`1 data, ReadOnlySpan`1 password, X509KeyStorageFlags keyStorageFlags, Pkcs12LoaderLimits loaderLimits)
UATHelper: Packaging (IOS): at UnrealBuildTool.MobileProvision..ctor(String EmbeddedPListText) in C:\Perforce\UE5Main\Engine\Source\Programs\UnrealBuildTool\Platform\IOS\IOSCodeSigning.cs:line 1215
UATHelper: Packaging (IOS): at UnrealBuildTool.MobileProvisionParser.ParseFile(Byte[] RawData) in C:\Perforce\UE5Main\Engine\Source\Programs\UnrealBuildTool\Platform\IOS\IOSCodeSigning.cs:line 1345
UATHelper: Packaging (IOS): at UnrealBuildTool.MobileProvisionParser.ParseFile(Stream InputStream) in C:\Perforce\UE5Main\Engine\Source\Programs\UnrealBuildTool\Platform\IOS\IOSCodeSigning.cs:line 1367
UATHelper: Packaging (IOS): at UnrealBuildTool.MobileProvisionParser.ParseFile(String Filename) in C:\Perforce\UE5Main\Engine\Source\Programs\UnrealBuildTool\Platform\IOS\IOSCodeSigning.cs:line 1375
UATHelper: Packaging (IOS): at UnrealBuildTool.AppleCodeSign.FindProvisions(String CFBundleIdentifier, Boolean bForDistribution, FileReference& MatchedProvision) in C:\Perforce\UE5Main\Engine\Source\Programs\UnrealBuildTool\Platform\IOS\IOSCodeSigning.cs:line 228
UATHelper: Packaging (IOS): at UnrealBuildTool.IOSProvisioningData..ctor(IOSProjectSettings ProjectSettings, Boolean bIsTVOS, Boolean bForDistribution, ILogger Logger) in C:\Perforce\UE5Main\Engine\Source\Programs\UnrealBuildTool\Platform\IOS\UEBuildIOS.cs:line 481
UATHelper: Packaging (IOS): at UnrealBuildTool.IOSPlatform.CreateProvisioningData(IOSProjectSettings ProjectSettings, Boolean bForDistribution) in C:\Perforce\UE5Main\Engine\Source\Programs\UnrealBuildTool\Platform\IOS\UEBuildIOS.cs:line 896
UATHelper: Packaging (IOS): at UnrealBuildTool.IOSPlatform.ReadProvisioningData(IOSProjectSettings ProjectSettings, Boolean bForDistribution) in C:\Perforce\UE5Main\Engine\Source\Programs\UnrealBuildTool\Platform\IOS\UEBuildIOS.cs:line 887
UATHelper: Packaging (IOS): at UnrealBuildTool.RemoteMac.Build(TargetDescriptor TargetDesc, FileReference RemoteLogFile, Boolean bSkipPreBuildTargets, ILogger Logger) in C:\Perforce\UE5Main\Engine\Source\Programs\UnrealBuildTool\Platform\Apple\RemoteMac.cs:line 468
UATHelper: Packaging (IOS): at UnrealBuildTool.BuildMode.ExecuteAsync(CommandLineArguments Arguments, ILogger Logger) in C:\Perforce\UE5Main\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 203
UATHelper: Packaging (IOS): at UnrealBuildTool.BuildMode.ExecuteAsync(CommandLineArguments Arguments, ILogger Logger) in C:\Perforce\UE5Main\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 285
UATHelper: Packaging (IOS): at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in C:\Perforce\UE5Main\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 478

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-380143 in the post.

0
Login to Vote

Fixed
ComponentUE - Platform - Mobile
Affects Versions5.8
Target Fix5.8
Fix Commit54014225
CreatedMay 15, 2026
ResolvedMay 15, 2026
UpdatedJun 22, 2026
View Jira Issue