mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-20 04:03:26 +01:00
fix: removing _CodeSignature folder before resigning
This commit is contained in:
@@ -151,7 +151,7 @@ private extension ResignAppOperation
|
|||||||
|
|
||||||
// Remove _CodeSignature folder (if it exists) because it will be added when resigning and it may have files that aren't overwritten when resigning
|
// Remove _CodeSignature folder (if it exists) because it will be added when resigning and it may have files that aren't overwritten when resigning
|
||||||
// These files might be the cause of some ApplicationVerificationFailed errors
|
// These files might be the cause of some ApplicationVerificationFailed errors
|
||||||
let codeSignaturePath = bundle.bundleURL.appendingPathComponent("_CodeSignature").absoluteString
|
let codeSignaturePath = bundle.bundleURL.appendingPathComponent("_CodeSignature").absoluteString.replacingOccurrences(of: "file://", with: "")
|
||||||
if FileManager.default.fileExists(atPath: codeSignaturePath) {
|
if FileManager.default.fileExists(atPath: codeSignaturePath) {
|
||||||
try FileManager.default.removeItem(atPath: codeSignaturePath)
|
try FileManager.default.removeItem(atPath: codeSignaturePath)
|
||||||
print("Removed _CodeSignature folder at \(codeSignaturePath)")
|
print("Removed _CodeSignature folder at \(codeSignaturePath)")
|
||||||
|
|||||||
Reference in New Issue
Block a user