Skip to content

armgit / xtool

Public Imported from GitHub
0

Cross-platform Xcode replacement. Build and deploy iOS apps with SwiftPM on Linux, Windows, macOS.

build: fix compiler crash in release due to `unimplemented()` (#432)

Brosseau Valentina2875dd9ac31
diff --git a/Sources/XKit/Signer/Signer.swift b/Sources/XKit/Signer/Signer.swift
index 4408d67..3e0f832 100644
--- a/Sources/XKit/Signer/Signer.swift
+++ b/Sources/XKit/Signer/Signer.swift
@@ -39,12 +39,12 @@ private struct UnimplementedSigner: Signer {
deep: Bool,
progress: @escaping @Sendable (Double?) -> Void
) async throws {
- let operation: () throws -> Void = unimplemented()
- try operation()
+ reportIssue("Unimplemented: Signer.sign")
+ throw UnimplementedFailure(description: "Signer.sign")
}
func analyze(executable: URL) async throws -> Data? {
- let operation: () throws -> Data? = unimplemented()
- return try operation()
+ reportIssue("Unimplemented: Signer.analyze")
+ throw UnimplementedFailure(description: "Signer.analyze")
}
}