This repository was archived by the owner on Mar 7, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,12 +89,13 @@ class CertificateFileManager {
8989 finalName = " \( baseName) - \( counter) "
9090 folderURL = certificatesDirectory. appendingPathComponent ( finalName)
9191 }
92+
93+ let displayToWrite = uniqueDisplayName ( displayName, excludingFolder: finalName)
9294 try fileManager. createDirectory ( at: folderURL, withIntermediateDirectories: true )
9395
9496 try p12Data. write ( to: folderURL. appendingPathComponent ( " certificate.p12 " ) )
9597 try provData. write ( to: folderURL. appendingPathComponent ( " profile.mobileprovision " ) )
9698 try password. data ( using: . utf8) ? . write ( to: folderURL. appendingPathComponent ( " password.txt " ) )
97- let displayToWrite = uniqueDisplayName ( displayName, excludingFolder: nil )
9899 try displayToWrite. data ( using: . utf8) ? . write ( to: folderURL. appendingPathComponent ( " name.txt " ) )
99100
100101 return finalName
You can’t perform that action at this time.
0 commit comments