Build Information
Failed to build DigiMeSDK, reference 5.1.2 (8f84c6), with Swift 6.2 for macOS (SPM) on 23 Jun 2025 20:44:17 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/worlddataexchange/digime-sdk-ios.git
Reference: 5.1.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/worlddataexchange/digime-sdk-ios
* tag 5.1.2 -> FETCH_HEAD
HEAD is now at 8f84c6b SDK-192 Migrate Cocoapods repo from DigiMe to WDX credentials (#229)
Cloned https://github.com/worlddataexchange/digime-sdk-ios.git
Revision (git rev-parse @):
8f84c6bfb35443f171baa831fd45bb155eea05a5
SUCCESS checkout https://github.com/worlddataexchange/digime-sdk-ios.git at 5.1.2
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/worlddataexchange/digime-sdk-ios.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/6] Write sources
[5/6] Write swift-version-1EA4D86E10B52AF.txt
[7/84] Emitting module DigiMeCore
[8/92] Compiling DigiMeCore SyncStatus.swift
[9/92] Compiling DigiMeCore HealthKitAccountDataProviderProtocol.swift
[10/92] Compiling DigiMeCore HealthKitFilesDataServiceProtocol.swift
[11/92] Compiling DigiMeCore HealthKitServiceProtocol.swift
[12/92] Compiling DigiMeCore CustomLogger.swift
[13/92] Compiling DigiMeCore DefaultLogger.swift
[14/92] Compiling DigiMeCore LogLevel.swift
[15/92] Compiling DigiMeCore Logger.swift
[16/92] Compiling DigiMeCore StorageDeleteFileStatus.swift
[17/92] Compiling DigiMeCore StorageFileInfo.swift
[18/92] Compiling DigiMeCore StorageFileList.swift
[19/92] Compiling DigiMeCore StorageUploadFileInfo.swift
[20/92] Compiling DigiMeCore AES256.swift
[21/92] Compiling DigiMeCore Array+Helper.swift
[22/92] Compiling DigiMeCore Calendar+Helper.swift
[23/92] Compiling DigiMeCore Codable+Logging.swift
[24/92] Compiling DigiMeCore CodableUserDefault.swift
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:41:9: warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
38 | }
39 |
40 | public static func sha256Hash(from dataString: String) -> Data {
| `- note: add @available attribute to enclosing static method
41 | Data(SHA256.hash(data: dataString.data(using: .utf8)!))
| |- warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:41:14: error: 'SHA256' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
38 | }
39 |
40 | public static func sha256Hash(from dataString: String) -> Data {
| `- note: add @available attribute to enclosing static method
41 | Data(SHA256.hash(data: dataString.data(using: .utf8)!))
| |- error: 'SHA256' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:41:21: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
38 | }
39 |
40 | public static func sha256Hash(from dataString: String) -> Data {
| `- note: add @available attribute to enclosing static method
41 | Data(SHA256.hash(data: dataString.data(using: .utf8)!))
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:45:10: error: 'Insecure' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
42 | }
43 |
44 | public static func md5Hash(from dataString: String) -> String {
| `- note: add @available attribute to enclosing static method
45 | return Insecure.MD5.hash(data: dataString.data(using: .utf8)!).map { String(format: "%02hhx", $0) }.joined()
| |- error: 'Insecure' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:45:23: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
42 | }
43 |
44 | public static func md5Hash(from dataString: String) -> String {
| `- note: add @available attribute to enclosing static method
45 | return Insecure.MD5.hash(data: dataString.data(using: .utf8)!).map { String(format: "%02hhx", $0) }.joined()
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:45:66: warning: conformance of 'Insecure.MD5Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
42 | }
43 |
44 | public static func md5Hash(from dataString: String) -> String {
| `- note: add @available attribute to enclosing static method
45 | return Insecure.MD5.hash(data: dataString.data(using: .utf8)!).map { String(format: "%02hhx", $0) }.joined()
| |- warning: conformance of 'Insecure.MD5Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:118:24: warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
99 | }
100 |
101 | public static func encryptAndAppendHash(inputData data: Data, privateKeyData: Data) throws -> Data {
| `- note: add @available attribute to enclosing static method
102 | let typeDescriptor = Data([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])
103 | let mskIndex: UInt32 = 1
:
116 |
117 | // Hash the data using SHA512
118 | let dataHash = Data(SHA512.hash(data: data))
| |- warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 |
120 | // Prepend the hash to the data
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:118:29: error: 'SHA512' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
99 | }
100 |
101 | public static func encryptAndAppendHash(inputData data: Data, privateKeyData: Data) throws -> Data {
| `- note: add @available attribute to enclosing static method
102 | let typeDescriptor = Data([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])
103 | let mskIndex: UInt32 = 1
:
116 |
117 | // Hash the data using SHA512
118 | let dataHash = Data(SHA512.hash(data: data))
| |- error: 'SHA512' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 |
120 | // Prepend the hash to the data
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:118:36: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
99 | }
100 |
101 | public static func encryptAndAppendHash(inputData data: Data, privateKeyData: Data) throws -> Data {
| `- note: add @available attribute to enclosing static method
102 | let typeDescriptor = Data([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])
103 | let mskIndex: UInt32 = 1
:
116 |
117 | // Hash the data using SHA512
118 | let dataHash = Data(SHA512.hash(data: data))
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 |
120 | // Prepend the hash to the data
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:188:26: error: 'SHA512' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
186 |
187 | // Split decrypted file data into hash and actual data
188 | let hashLength = SHA512.byteCount
| |- error: 'SHA512' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
189 | let hashRange = decryptedData.startIndex..<decryptedData.startIndex + hashLength
190 | let fileDataRange = hashRange.endIndex..<decryptedData.endIndex
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:196:30: warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
194 |
195 | // Check hash
196 | let calculatedHash = Data(SHA512.hash(data: fileData))
| |- warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
197 | guard calculatedHash == hash else {
198 | throw CryptoError.corruptData
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:196:35: error: 'SHA512' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
194 |
195 | // Check hash
196 | let calculatedHash = Data(SHA512.hash(data: fileData))
| |- error: 'SHA512' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | guard calculatedHash == hash else {
198 | throw CryptoError.corruptData
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:196:42: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
194 |
195 | // Check hash
196 | let calculatedHash = Data(SHA512.hash(data: fileData))
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | guard calculatedHash == hash else {
198 | throw CryptoError.corruptData
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:259:26: error: cannot find 'SecKeyEncrypt' in scope
257 | var encryptedDataLength = blockSize
258 |
259 | let status = SecKeyEncrypt(secKey, .OAEP, chunkData, chunkData.count, &encryptedDataBuffer, &encryptedDataLength)
| `- error: cannot find 'SecKeyEncrypt' in scope
260 |
261 | guard status == noErr else {
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:259:49: error: cannot infer contextual base in reference to member 'OAEP'
257 | var encryptedDataLength = blockSize
258 |
259 | let status = SecKeyEncrypt(secKey, .OAEP, chunkData, chunkData.count, &encryptedDataBuffer, &encryptedDataLength)
| `- error: cannot infer contextual base in reference to member 'OAEP'
260 |
261 | guard status == noErr else {
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:288:26: error: cannot find 'SecKeyDecrypt' in scope
286 | var decryptedDataLength = blockSize
287 |
288 | let status = SecKeyDecrypt(secKey, .OAEP, chunkData, indexEnd - index, &decryptedDataBuffer, &decryptedDataLength)
| `- error: cannot find 'SecKeyDecrypt' in scope
289 | guard status == noErr else {
290 | throw CryptoError.chunkDecryptFailed(index: index)
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:288:49: error: cannot infer contextual base in reference to member 'OAEP'
286 | var decryptedDataLength = blockSize
287 |
288 | let status = SecKeyDecrypt(secKey, .OAEP, chunkData, indexEnd - index, &decryptedDataBuffer, &decryptedDataLength)
| `- error: cannot infer contextual base in reference to member 'OAEP'
289 | guard status == noErr else {
290 | throw CryptoError.chunkDecryptFailed(index: index)
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/FilePersistentStorage.swift:165:37: error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | public class FilePersistentStorage {
| `- note: add @available attribute to enclosing class
12 |
13 | private var location: FileManager.SearchPathDirectory = .documentDirectory
:
145 | }
146 |
147 | public func store<T: Encodable>(object: T, fileName: String) {
| `- note: add @available attribute to enclosing instance method
148 | guard Thread.isMainThread else {
149 | DispatchQueue.main.async {
:
163 |
164 | let encoder = JSONEncoder()
165 | encoder.outputFormatting = .withoutEscapingSlashes
| |- error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
166 |
167 | if let data = try? encoder.encode(object) {
[25/92] Compiling DigiMeCore Crypto.swift
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:41:9: warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
38 | }
39 |
40 | public static func sha256Hash(from dataString: String) -> Data {
| `- note: add @available attribute to enclosing static method
41 | Data(SHA256.hash(data: dataString.data(using: .utf8)!))
| |- warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:41:14: error: 'SHA256' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
38 | }
39 |
40 | public static func sha256Hash(from dataString: String) -> Data {
| `- note: add @available attribute to enclosing static method
41 | Data(SHA256.hash(data: dataString.data(using: .utf8)!))
| |- error: 'SHA256' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:41:21: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
38 | }
39 |
40 | public static func sha256Hash(from dataString: String) -> Data {
| `- note: add @available attribute to enclosing static method
41 | Data(SHA256.hash(data: dataString.data(using: .utf8)!))
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:45:10: error: 'Insecure' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
42 | }
43 |
44 | public static func md5Hash(from dataString: String) -> String {
| `- note: add @available attribute to enclosing static method
45 | return Insecure.MD5.hash(data: dataString.data(using: .utf8)!).map { String(format: "%02hhx", $0) }.joined()
| |- error: 'Insecure' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:45:23: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
42 | }
43 |
44 | public static func md5Hash(from dataString: String) -> String {
| `- note: add @available attribute to enclosing static method
45 | return Insecure.MD5.hash(data: dataString.data(using: .utf8)!).map { String(format: "%02hhx", $0) }.joined()
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:45:66: warning: conformance of 'Insecure.MD5Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
42 | }
43 |
44 | public static func md5Hash(from dataString: String) -> String {
| `- note: add @available attribute to enclosing static method
45 | return Insecure.MD5.hash(data: dataString.data(using: .utf8)!).map { String(format: "%02hhx", $0) }.joined()
| |- warning: conformance of 'Insecure.MD5Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:118:24: warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
99 | }
100 |
101 | public static func encryptAndAppendHash(inputData data: Data, privateKeyData: Data) throws -> Data {
| `- note: add @available attribute to enclosing static method
102 | let typeDescriptor = Data([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])
103 | let mskIndex: UInt32 = 1
:
116 |
117 | // Hash the data using SHA512
118 | let dataHash = Data(SHA512.hash(data: data))
| |- warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 |
120 | // Prepend the hash to the data
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:118:29: error: 'SHA512' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
99 | }
100 |
101 | public static func encryptAndAppendHash(inputData data: Data, privateKeyData: Data) throws -> Data {
| `- note: add @available attribute to enclosing static method
102 | let typeDescriptor = Data([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])
103 | let mskIndex: UInt32 = 1
:
116 |
117 | // Hash the data using SHA512
118 | let dataHash = Data(SHA512.hash(data: data))
| |- error: 'SHA512' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 |
120 | // Prepend the hash to the data
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:118:36: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
99 | }
100 |
101 | public static func encryptAndAppendHash(inputData data: Data, privateKeyData: Data) throws -> Data {
| `- note: add @available attribute to enclosing static method
102 | let typeDescriptor = Data([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])
103 | let mskIndex: UInt32 = 1
:
116 |
117 | // Hash the data using SHA512
118 | let dataHash = Data(SHA512.hash(data: data))
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 |
120 | // Prepend the hash to the data
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:188:26: error: 'SHA512' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
186 |
187 | // Split decrypted file data into hash and actual data
188 | let hashLength = SHA512.byteCount
| |- error: 'SHA512' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
189 | let hashRange = decryptedData.startIndex..<decryptedData.startIndex + hashLength
190 | let fileDataRange = hashRange.endIndex..<decryptedData.endIndex
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:196:30: warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
194 |
195 | // Check hash
196 | let calculatedHash = Data(SHA512.hash(data: fileData))
| |- warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
197 | guard calculatedHash == hash else {
198 | throw CryptoError.corruptData
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:196:35: error: 'SHA512' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
194 |
195 | // Check hash
196 | let calculatedHash = Data(SHA512.hash(data: fileData))
| |- error: 'SHA512' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | guard calculatedHash == hash else {
198 | throw CryptoError.corruptData
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:196:42: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
194 |
195 | // Check hash
196 | let calculatedHash = Data(SHA512.hash(data: fileData))
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | guard calculatedHash == hash else {
198 | throw CryptoError.corruptData
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:259:26: error: cannot find 'SecKeyEncrypt' in scope
257 | var encryptedDataLength = blockSize
258 |
259 | let status = SecKeyEncrypt(secKey, .OAEP, chunkData, chunkData.count, &encryptedDataBuffer, &encryptedDataLength)
| `- error: cannot find 'SecKeyEncrypt' in scope
260 |
261 | guard status == noErr else {
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:259:49: error: cannot infer contextual base in reference to member 'OAEP'
257 | var encryptedDataLength = blockSize
258 |
259 | let status = SecKeyEncrypt(secKey, .OAEP, chunkData, chunkData.count, &encryptedDataBuffer, &encryptedDataLength)
| `- error: cannot infer contextual base in reference to member 'OAEP'
260 |
261 | guard status == noErr else {
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:288:26: error: cannot find 'SecKeyDecrypt' in scope
286 | var decryptedDataLength = blockSize
287 |
288 | let status = SecKeyDecrypt(secKey, .OAEP, chunkData, indexEnd - index, &decryptedDataBuffer, &decryptedDataLength)
| `- error: cannot find 'SecKeyDecrypt' in scope
289 | guard status == noErr else {
290 | throw CryptoError.chunkDecryptFailed(index: index)
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:288:49: error: cannot infer contextual base in reference to member 'OAEP'
286 | var decryptedDataLength = blockSize
287 |
288 | let status = SecKeyDecrypt(secKey, .OAEP, chunkData, indexEnd - index, &decryptedDataBuffer, &decryptedDataLength)
| `- error: cannot infer contextual base in reference to member 'OAEP'
289 | guard status == noErr else {
290 | throw CryptoError.chunkDecryptFailed(index: index)
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/FilePersistentStorage.swift:165:37: error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | public class FilePersistentStorage {
| `- note: add @available attribute to enclosing class
12 |
13 | private var location: FileManager.SearchPathDirectory = .documentDirectory
:
145 | }
146 |
147 | public func store<T: Encodable>(object: T, fileName: String) {
| `- note: add @available attribute to enclosing instance method
148 | guard Thread.isMainThread else {
149 | DispatchQueue.main.async {
:
163 |
164 | let encoder = JSONEncoder()
165 | encoder.outputFormatting = .withoutEscapingSlashes
| |- error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
166 |
167 | if let data = try? encoder.encode(object) {
[26/92] Compiling DigiMeCore Date+Helper.swift
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:41:9: warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
38 | }
39 |
40 | public static func sha256Hash(from dataString: String) -> Data {
| `- note: add @available attribute to enclosing static method
41 | Data(SHA256.hash(data: dataString.data(using: .utf8)!))
| |- warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:41:14: error: 'SHA256' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
38 | }
39 |
40 | public static func sha256Hash(from dataString: String) -> Data {
| `- note: add @available attribute to enclosing static method
41 | Data(SHA256.hash(data: dataString.data(using: .utf8)!))
| |- error: 'SHA256' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:41:21: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
38 | }
39 |
40 | public static func sha256Hash(from dataString: String) -> Data {
| `- note: add @available attribute to enclosing static method
41 | Data(SHA256.hash(data: dataString.data(using: .utf8)!))
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:45:10: error: 'Insecure' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
42 | }
43 |
44 | public static func md5Hash(from dataString: String) -> String {
| `- note: add @available attribute to enclosing static method
45 | return Insecure.MD5.hash(data: dataString.data(using: .utf8)!).map { String(format: "%02hhx", $0) }.joined()
| |- error: 'Insecure' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:45:23: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
42 | }
43 |
44 | public static func md5Hash(from dataString: String) -> String {
| `- note: add @available attribute to enclosing static method
45 | return Insecure.MD5.hash(data: dataString.data(using: .utf8)!).map { String(format: "%02hhx", $0) }.joined()
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:45:66: warning: conformance of 'Insecure.MD5Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
42 | }
43 |
44 | public static func md5Hash(from dataString: String) -> String {
| `- note: add @available attribute to enclosing static method
45 | return Insecure.MD5.hash(data: dataString.data(using: .utf8)!).map { String(format: "%02hhx", $0) }.joined()
| |- warning: conformance of 'Insecure.MD5Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:118:24: warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
99 | }
100 |
101 | public static func encryptAndAppendHash(inputData data: Data, privateKeyData: Data) throws -> Data {
| `- note: add @available attribute to enclosing static method
102 | let typeDescriptor = Data([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])
103 | let mskIndex: UInt32 = 1
:
116 |
117 | // Hash the data using SHA512
118 | let dataHash = Data(SHA512.hash(data: data))
| |- warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 |
120 | // Prepend the hash to the data
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:118:29: error: 'SHA512' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
99 | }
100 |
101 | public static func encryptAndAppendHash(inputData data: Data, privateKeyData: Data) throws -> Data {
| `- note: add @available attribute to enclosing static method
102 | let typeDescriptor = Data([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])
103 | let mskIndex: UInt32 = 1
:
116 |
117 | // Hash the data using SHA512
118 | let dataHash = Data(SHA512.hash(data: data))
| |- error: 'SHA512' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 |
120 | // Prepend the hash to the data
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:118:36: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
99 | }
100 |
101 | public static func encryptAndAppendHash(inputData data: Data, privateKeyData: Data) throws -> Data {
| `- note: add @available attribute to enclosing static method
102 | let typeDescriptor = Data([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])
103 | let mskIndex: UInt32 = 1
:
116 |
117 | // Hash the data using SHA512
118 | let dataHash = Data(SHA512.hash(data: data))
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 |
120 | // Prepend the hash to the data
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:188:26: error: 'SHA512' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
186 |
187 | // Split decrypted file data into hash and actual data
188 | let hashLength = SHA512.byteCount
| |- error: 'SHA512' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
189 | let hashRange = decryptedData.startIndex..<decryptedData.startIndex + hashLength
190 | let fileDataRange = hashRange.endIndex..<decryptedData.endIndex
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:196:30: warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
194 |
195 | // Check hash
196 | let calculatedHash = Data(SHA512.hash(data: fileData))
| |- warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
197 | guard calculatedHash == hash else {
198 | throw CryptoError.corruptData
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:196:35: error: 'SHA512' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
194 |
195 | // Check hash
196 | let calculatedHash = Data(SHA512.hash(data: fileData))
| |- error: 'SHA512' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | guard calculatedHash == hash else {
198 | throw CryptoError.corruptData
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:196:42: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
194 |
195 | // Check hash
196 | let calculatedHash = Data(SHA512.hash(data: fileData))
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | guard calculatedHash == hash else {
198 | throw CryptoError.corruptData
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:259:26: error: cannot find 'SecKeyEncrypt' in scope
257 | var encryptedDataLength = blockSize
258 |
259 | let status = SecKeyEncrypt(secKey, .OAEP, chunkData, chunkData.count, &encryptedDataBuffer, &encryptedDataLength)
| `- error: cannot find 'SecKeyEncrypt' in scope
260 |
261 | guard status == noErr else {
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:259:49: error: cannot infer contextual base in reference to member 'OAEP'
257 | var encryptedDataLength = blockSize
258 |
259 | let status = SecKeyEncrypt(secKey, .OAEP, chunkData, chunkData.count, &encryptedDataBuffer, &encryptedDataLength)
| `- error: cannot infer contextual base in reference to member 'OAEP'
260 |
261 | guard status == noErr else {
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:288:26: error: cannot find 'SecKeyDecrypt' in scope
286 | var decryptedDataLength = blockSize
287 |
288 | let status = SecKeyDecrypt(secKey, .OAEP, chunkData, indexEnd - index, &decryptedDataBuffer, &decryptedDataLength)
| `- error: cannot find 'SecKeyDecrypt' in scope
289 | guard status == noErr else {
290 | throw CryptoError.chunkDecryptFailed(index: index)
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:288:49: error: cannot infer contextual base in reference to member 'OAEP'
286 | var decryptedDataLength = blockSize
287 |
288 | let status = SecKeyDecrypt(secKey, .OAEP, chunkData, indexEnd - index, &decryptedDataBuffer, &decryptedDataLength)
| `- error: cannot infer contextual base in reference to member 'OAEP'
289 | guard status == noErr else {
290 | throw CryptoError.chunkDecryptFailed(index: index)
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/FilePersistentStorage.swift:165:37: error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | public class FilePersistentStorage {
| `- note: add @available attribute to enclosing class
12 |
13 | private var location: FileManager.SearchPathDirectory = .documentDirectory
:
145 | }
146 |
147 | public func store<T: Encodable>(object: T, fileName: String) {
| `- note: add @available attribute to enclosing instance method
148 | guard Thread.isMainThread else {
149 | DispatchQueue.main.async {
:
163 |
164 | let encoder = JSONEncoder()
165 | encoder.outputFormatting = .withoutEscapingSlashes
| |- error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
166 |
167 | if let data = try? encoder.encode(object) {
[27/92] Compiling DigiMeCore DynamicallyKeyedArray.swift
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:41:9: warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
38 | }
39 |
40 | public static func sha256Hash(from dataString: String) -> Data {
| `- note: add @available attribute to enclosing static method
41 | Data(SHA256.hash(data: dataString.data(using: .utf8)!))
| |- warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:41:14: error: 'SHA256' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
38 | }
39 |
40 | public static func sha256Hash(from dataString: String) -> Data {
| `- note: add @available attribute to enclosing static method
41 | Data(SHA256.hash(data: dataString.data(using: .utf8)!))
| |- error: 'SHA256' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:41:21: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
38 | }
39 |
40 | public static func sha256Hash(from dataString: String) -> Data {
| `- note: add @available attribute to enclosing static method
41 | Data(SHA256.hash(data: dataString.data(using: .utf8)!))
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:45:10: error: 'Insecure' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
42 | }
43 |
44 | public static func md5Hash(from dataString: String) -> String {
| `- note: add @available attribute to enclosing static method
45 | return Insecure.MD5.hash(data: dataString.data(using: .utf8)!).map { String(format: "%02hhx", $0) }.joined()
| |- error: 'Insecure' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:45:23: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
42 | }
43 |
44 | public static func md5Hash(from dataString: String) -> String {
| `- note: add @available attribute to enclosing static method
45 | return Insecure.MD5.hash(data: dataString.data(using: .utf8)!).map { String(format: "%02hhx", $0) }.joined()
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:45:66: warning: conformance of 'Insecure.MD5Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
42 | }
43 |
44 | public static func md5Hash(from dataString: String) -> String {
| `- note: add @available attribute to enclosing static method
45 | return Insecure.MD5.hash(data: dataString.data(using: .utf8)!).map { String(format: "%02hhx", $0) }.joined()
| |- warning: conformance of 'Insecure.MD5Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:118:24: warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
99 | }
100 |
101 | public static func encryptAndAppendHash(inputData data: Data, privateKeyData: Data) throws -> Data {
| `- note: add @available attribute to enclosing static method
102 | let typeDescriptor = Data([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])
103 | let mskIndex: UInt32 = 1
:
116 |
117 | // Hash the data using SHA512
118 | let dataHash = Data(SHA512.hash(data: data))
| |- warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 |
120 | // Prepend the hash to the data
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:118:29: error: 'SHA512' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
99 | }
100 |
101 | public static func encryptAndAppendHash(inputData data: Data, privateKeyData: Data) throws -> Data {
| `- note: add @available attribute to enclosing static method
102 | let typeDescriptor = Data([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])
103 | let mskIndex: UInt32 = 1
:
116 |
117 | // Hash the data using SHA512
118 | let dataHash = Data(SHA512.hash(data: data))
| |- error: 'SHA512' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 |
120 | // Prepend the hash to the data
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:118:36: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
99 | }
100 |
101 | public static func encryptAndAppendHash(inputData data: Data, privateKeyData: Data) throws -> Data {
| `- note: add @available attribute to enclosing static method
102 | let typeDescriptor = Data([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])
103 | let mskIndex: UInt32 = 1
:
116 |
117 | // Hash the data using SHA512
118 | let dataHash = Data(SHA512.hash(data: data))
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 |
120 | // Prepend the hash to the data
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:188:26: error: 'SHA512' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
186 |
187 | // Split decrypted file data into hash and actual data
188 | let hashLength = SHA512.byteCount
| |- error: 'SHA512' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
189 | let hashRange = decryptedData.startIndex..<decryptedData.startIndex + hashLength
190 | let fileDataRange = hashRange.endIndex..<decryptedData.endIndex
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:196:30: warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
194 |
195 | // Check hash
196 | let calculatedHash = Data(SHA512.hash(data: fileData))
| |- warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
197 | guard calculatedHash == hash else {
198 | throw CryptoError.corruptData
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:196:35: error: 'SHA512' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
194 |
195 | // Check hash
196 | let calculatedHash = Data(SHA512.hash(data: fileData))
| |- error: 'SHA512' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | guard calculatedHash == hash else {
198 | throw CryptoError.corruptData
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:196:42: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
194 |
195 | // Check hash
196 | let calculatedHash = Data(SHA512.hash(data: fileData))
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | guard calculatedHash == hash else {
198 | throw CryptoError.corruptData
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:259:26: error: cannot find 'SecKeyEncrypt' in scope
257 | var encryptedDataLength = blockSize
258 |
259 | let status = SecKeyEncrypt(secKey, .OAEP, chunkData, chunkData.count, &encryptedDataBuffer, &encryptedDataLength)
| `- error: cannot find 'SecKeyEncrypt' in scope
260 |
261 | guard status == noErr else {
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:259:49: error: cannot infer contextual base in reference to member 'OAEP'
257 | var encryptedDataLength = blockSize
258 |
259 | let status = SecKeyEncrypt(secKey, .OAEP, chunkData, chunkData.count, &encryptedDataBuffer, &encryptedDataLength)
| `- error: cannot infer contextual base in reference to member 'OAEP'
260 |
261 | guard status == noErr else {
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:288:26: error: cannot find 'SecKeyDecrypt' in scope
286 | var decryptedDataLength = blockSize
287 |
288 | let status = SecKeyDecrypt(secKey, .OAEP, chunkData, indexEnd - index, &decryptedDataBuffer, &decryptedDataLength)
| `- error: cannot find 'SecKeyDecrypt' in scope
289 | guard status == noErr else {
290 | throw CryptoError.chunkDecryptFailed(index: index)
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:288:49: error: cannot infer contextual base in reference to member 'OAEP'
286 | var decryptedDataLength = blockSize
287 |
288 | let status = SecKeyDecrypt(secKey, .OAEP, chunkData, indexEnd - index, &decryptedDataBuffer, &decryptedDataLength)
| `- error: cannot infer contextual base in reference to member 'OAEP'
289 | guard status == noErr else {
290 | throw CryptoError.chunkDecryptFailed(index: index)
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/FilePersistentStorage.swift:165:37: error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | public class FilePersistentStorage {
| `- note: add @available attribute to enclosing class
12 |
13 | private var location: FileManager.SearchPathDirectory = .documentDirectory
:
145 | }
146 |
147 | public func store<T: Encodable>(object: T, fileName: String) {
| `- note: add @available attribute to enclosing instance method
148 | guard Thread.isMainThread else {
149 | DispatchQueue.main.async {
:
163 |
164 | let encoder = JSONEncoder()
165 | encoder.outputFormatting = .withoutEscapingSlashes
| |- error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
166 |
167 | if let data = try? encoder.encode(object) {
[28/92] Compiling DigiMeCore Extensions+Encodable.swift
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:41:9: warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
38 | }
39 |
40 | public static func sha256Hash(from dataString: String) -> Data {
| `- note: add @available attribute to enclosing static method
41 | Data(SHA256.hash(data: dataString.data(using: .utf8)!))
| |- warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:41:14: error: 'SHA256' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
38 | }
39 |
40 | public static func sha256Hash(from dataString: String) -> Data {
| `- note: add @available attribute to enclosing static method
41 | Data(SHA256.hash(data: dataString.data(using: .utf8)!))
| |- error: 'SHA256' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:41:21: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
38 | }
39 |
40 | public static func sha256Hash(from dataString: String) -> Data {
| `- note: add @available attribute to enclosing static method
41 | Data(SHA256.hash(data: dataString.data(using: .utf8)!))
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:45:10: error: 'Insecure' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
42 | }
43 |
44 | public static func md5Hash(from dataString: String) -> String {
| `- note: add @available attribute to enclosing static method
45 | return Insecure.MD5.hash(data: dataString.data(using: .utf8)!).map { String(format: "%02hhx", $0) }.joined()
| |- error: 'Insecure' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:45:23: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
42 | }
43 |
44 | public static func md5Hash(from dataString: String) -> String {
| `- note: add @available attribute to enclosing static method
45 | return Insecure.MD5.hash(data: dataString.data(using: .utf8)!).map { String(format: "%02hhx", $0) }.joined()
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:45:66: warning: conformance of 'Insecure.MD5Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
42 | }
43 |
44 | public static func md5Hash(from dataString: String) -> String {
| `- note: add @available attribute to enclosing static method
45 | return Insecure.MD5.hash(data: dataString.data(using: .utf8)!).map { String(format: "%02hhx", $0) }.joined()
| |- warning: conformance of 'Insecure.MD5Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:118:24: warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
99 | }
100 |
101 | public static func encryptAndAppendHash(inputData data: Data, privateKeyData: Data) throws -> Data {
| `- note: add @available attribute to enclosing static method
102 | let typeDescriptor = Data([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])
103 | let mskIndex: UInt32 = 1
:
116 |
117 | // Hash the data using SHA512
118 | let dataHash = Data(SHA512.hash(data: data))
| |- warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 |
120 | // Prepend the hash to the data
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:118:29: error: 'SHA512' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
99 | }
100 |
101 | public static func encryptAndAppendHash(inputData data: Data, privateKeyData: Data) throws -> Data {
| `- note: add @available attribute to enclosing static method
102 | let typeDescriptor = Data([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])
103 | let mskIndex: UInt32 = 1
:
116 |
117 | // Hash the data using SHA512
118 | let dataHash = Data(SHA512.hash(data: data))
| |- error: 'SHA512' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 |
120 | // Prepend the hash to the data
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:118:36: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
99 | }
100 |
101 | public static func encryptAndAppendHash(inputData data: Data, privateKeyData: Data) throws -> Data {
| `- note: add @available attribute to enclosing static method
102 | let typeDescriptor = Data([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])
103 | let mskIndex: UInt32 = 1
:
116 |
117 | // Hash the data using SHA512
118 | let dataHash = Data(SHA512.hash(data: data))
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 |
120 | // Prepend the hash to the data
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:188:26: error: 'SHA512' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
186 |
187 | // Split decrypted file data into hash and actual data
188 | let hashLength = SHA512.byteCount
| |- error: 'SHA512' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
189 | let hashRange = decryptedData.startIndex..<decryptedData.startIndex + hashLength
190 | let fileDataRange = hashRange.endIndex..<decryptedData.endIndex
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:196:30: warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
194 |
195 | // Check hash
196 | let calculatedHash = Data(SHA512.hash(data: fileData))
| |- warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
197 | guard calculatedHash == hash else {
198 | throw CryptoError.corruptData
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:196:35: error: 'SHA512' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
194 |
195 | // Check hash
196 | let calculatedHash = Data(SHA512.hash(data: fileData))
| |- error: 'SHA512' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | guard calculatedHash == hash else {
198 | throw CryptoError.corruptData
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:196:42: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
194 |
195 | // Check hash
196 | let calculatedHash = Data(SHA512.hash(data: fileData))
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | guard calculatedHash == hash else {
198 | throw CryptoError.corruptData
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:259:26: error: cannot find 'SecKeyEncrypt' in scope
257 | var encryptedDataLength = blockSize
258 |
259 | let status = SecKeyEncrypt(secKey, .OAEP, chunkData, chunkData.count, &encryptedDataBuffer, &encryptedDataLength)
| `- error: cannot find 'SecKeyEncrypt' in scope
260 |
261 | guard status == noErr else {
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:259:49: error: cannot infer contextual base in reference to member 'OAEP'
257 | var encryptedDataLength = blockSize
258 |
259 | let status = SecKeyEncrypt(secKey, .OAEP, chunkData, chunkData.count, &encryptedDataBuffer, &encryptedDataLength)
| `- error: cannot infer contextual base in reference to member 'OAEP'
260 |
261 | guard status == noErr else {
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:288:26: error: cannot find 'SecKeyDecrypt' in scope
286 | var decryptedDataLength = blockSize
287 |
288 | let status = SecKeyDecrypt(secKey, .OAEP, chunkData, indexEnd - index, &decryptedDataBuffer, &decryptedDataLength)
| `- error: cannot find 'SecKeyDecrypt' in scope
289 | guard status == noErr else {
290 | throw CryptoError.chunkDecryptFailed(index: index)
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:288:49: error: cannot infer contextual base in reference to member 'OAEP'
286 | var decryptedDataLength = blockSize
287 |
288 | let status = SecKeyDecrypt(secKey, .OAEP, chunkData, indexEnd - index, &decryptedDataBuffer, &decryptedDataLength)
| `- error: cannot infer contextual base in reference to member 'OAEP'
289 | guard status == noErr else {
290 | throw CryptoError.chunkDecryptFailed(index: index)
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/FilePersistentStorage.swift:165:37: error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | public class FilePersistentStorage {
| `- note: add @available attribute to enclosing class
12 |
13 | private var location: FileManager.SearchPathDirectory = .documentDirectory
:
145 | }
146 |
147 | public func store<T: Encodable>(object: T, fileName: String) {
| `- note: add @available attribute to enclosing instance method
148 | guard Thread.isMainThread else {
149 | DispatchQueue.main.async {
:
163 |
164 | let encoder = JSONEncoder()
165 | encoder.outputFormatting = .withoutEscapingSlashes
| |- error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
166 |
167 | if let data = try? encoder.encode(object) {
[29/92] Compiling DigiMeCore FilePersistentStorage.swift
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:41:9: warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
38 | }
39 |
40 | public static func sha256Hash(from dataString: String) -> Data {
| `- note: add @available attribute to enclosing static method
41 | Data(SHA256.hash(data: dataString.data(using: .utf8)!))
| |- warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:41:14: error: 'SHA256' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
38 | }
39 |
40 | public static func sha256Hash(from dataString: String) -> Data {
| `- note: add @available attribute to enclosing static method
41 | Data(SHA256.hash(data: dataString.data(using: .utf8)!))
| |- error: 'SHA256' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:41:21: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
38 | }
39 |
40 | public static func sha256Hash(from dataString: String) -> Data {
| `- note: add @available attribute to enclosing static method
41 | Data(SHA256.hash(data: dataString.data(using: .utf8)!))
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:45:10: error: 'Insecure' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
42 | }
43 |
44 | public static func md5Hash(from dataString: String) -> String {
| `- note: add @available attribute to enclosing static method
45 | return Insecure.MD5.hash(data: dataString.data(using: .utf8)!).map { String(format: "%02hhx", $0) }.joined()
| |- error: 'Insecure' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:45:23: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
42 | }
43 |
44 | public static func md5Hash(from dataString: String) -> String {
| `- note: add @available attribute to enclosing static method
45 | return Insecure.MD5.hash(data: dataString.data(using: .utf8)!).map { String(format: "%02hhx", $0) }.joined()
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:45:66: warning: conformance of 'Insecure.MD5Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
42 | }
43 |
44 | public static func md5Hash(from dataString: String) -> String {
| `- note: add @available attribute to enclosing static method
45 | return Insecure.MD5.hash(data: dataString.data(using: .utf8)!).map { String(format: "%02hhx", $0) }.joined()
| |- warning: conformance of 'Insecure.MD5Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:118:24: warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
99 | }
100 |
101 | public static func encryptAndAppendHash(inputData data: Data, privateKeyData: Data) throws -> Data {
| `- note: add @available attribute to enclosing static method
102 | let typeDescriptor = Data([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])
103 | let mskIndex: UInt32 = 1
:
116 |
117 | // Hash the data using SHA512
118 | let dataHash = Data(SHA512.hash(data: data))
| |- warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 |
120 | // Prepend the hash to the data
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:118:29: error: 'SHA512' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
99 | }
100 |
101 | public static func encryptAndAppendHash(inputData data: Data, privateKeyData: Data) throws -> Data {
| `- note: add @available attribute to enclosing static method
102 | let typeDescriptor = Data([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])
103 | let mskIndex: UInt32 = 1
:
116 |
117 | // Hash the data using SHA512
118 | let dataHash = Data(SHA512.hash(data: data))
| |- error: 'SHA512' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 |
120 | // Prepend the hash to the data
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:118:36: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
99 | }
100 |
101 | public static func encryptAndAppendHash(inputData data: Data, privateKeyData: Data) throws -> Data {
| `- note: add @available attribute to enclosing static method
102 | let typeDescriptor = Data([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])
103 | let mskIndex: UInt32 = 1
:
116 |
117 | // Hash the data using SHA512
118 | let dataHash = Data(SHA512.hash(data: data))
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 |
120 | // Prepend the hash to the data
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:188:26: error: 'SHA512' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
186 |
187 | // Split decrypted file data into hash and actual data
188 | let hashLength = SHA512.byteCount
| |- error: 'SHA512' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
189 | let hashRange = decryptedData.startIndex..<decryptedData.startIndex + hashLength
190 | let fileDataRange = hashRange.endIndex..<decryptedData.endIndex
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:196:30: warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
194 |
195 | // Check hash
196 | let calculatedHash = Data(SHA512.hash(data: fileData))
| |- warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
197 | guard calculatedHash == hash else {
198 | throw CryptoError.corruptData
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:196:35: error: 'SHA512' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
194 |
195 | // Check hash
196 | let calculatedHash = Data(SHA512.hash(data: fileData))
| |- error: 'SHA512' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | guard calculatedHash == hash else {
198 | throw CryptoError.corruptData
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:196:42: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
194 |
195 | // Check hash
196 | let calculatedHash = Data(SHA512.hash(data: fileData))
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | guard calculatedHash == hash else {
198 | throw CryptoError.corruptData
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:259:26: error: cannot find 'SecKeyEncrypt' in scope
257 | var encryptedDataLength = blockSize
258 |
259 | let status = SecKeyEncrypt(secKey, .OAEP, chunkData, chunkData.count, &encryptedDataBuffer, &encryptedDataLength)
| `- error: cannot find 'SecKeyEncrypt' in scope
260 |
261 | guard status == noErr else {
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:259:49: error: cannot infer contextual base in reference to member 'OAEP'
257 | var encryptedDataLength = blockSize
258 |
259 | let status = SecKeyEncrypt(secKey, .OAEP, chunkData, chunkData.count, &encryptedDataBuffer, &encryptedDataLength)
| `- error: cannot infer contextual base in reference to member 'OAEP'
260 |
261 | guard status == noErr else {
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:288:26: error: cannot find 'SecKeyDecrypt' in scope
286 | var decryptedDataLength = blockSize
287 |
288 | let status = SecKeyDecrypt(secKey, .OAEP, chunkData, indexEnd - index, &decryptedDataBuffer, &decryptedDataLength)
| `- error: cannot find 'SecKeyDecrypt' in scope
289 | guard status == noErr else {
290 | throw CryptoError.chunkDecryptFailed(index: index)
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:288:49: error: cannot infer contextual base in reference to member 'OAEP'
286 | var decryptedDataLength = blockSize
287 |
288 | let status = SecKeyDecrypt(secKey, .OAEP, chunkData, indexEnd - index, &decryptedDataBuffer, &decryptedDataLength)
| `- error: cannot infer contextual base in reference to member 'OAEP'
289 | guard status == noErr else {
290 | throw CryptoError.chunkDecryptFailed(index: index)
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/FilePersistentStorage.swift:165:37: error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | public class FilePersistentStorage {
| `- note: add @available attribute to enclosing class
12 |
13 | private var location: FileManager.SearchPathDirectory = .documentDirectory
:
145 | }
146 |
147 | public func store<T: Encodable>(object: T, fileName: String) {
| `- note: add @available attribute to enclosing instance method
148 | guard Thread.isMainThread else {
149 | DispatchQueue.main.async {
:
163 |
164 | let encoder = JSONEncoder()
165 | encoder.outputFormatting = .withoutEscapingSlashes
| |- error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
166 |
167 | if let data = try? encoder.encode(object) {
[30/92] Compiling DigiMeCore String+Helper.swift
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:41:9: warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
38 | }
39 |
40 | public static func sha256Hash(from dataString: String) -> Data {
| `- note: add @available attribute to enclosing static method
41 | Data(SHA256.hash(data: dataString.data(using: .utf8)!))
| |- warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:41:14: error: 'SHA256' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
38 | }
39 |
40 | public static func sha256Hash(from dataString: String) -> Data {
| `- note: add @available attribute to enclosing static method
41 | Data(SHA256.hash(data: dataString.data(using: .utf8)!))
| |- error: 'SHA256' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:41:21: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
38 | }
39 |
40 | public static func sha256Hash(from dataString: String) -> Data {
| `- note: add @available attribute to enclosing static method
41 | Data(SHA256.hash(data: dataString.data(using: .utf8)!))
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:45:10: error: 'Insecure' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
42 | }
43 |
44 | public static func md5Hash(from dataString: String) -> String {
| `- note: add @available attribute to enclosing static method
45 | return Insecure.MD5.hash(data: dataString.data(using: .utf8)!).map { String(format: "%02hhx", $0) }.joined()
| |- error: 'Insecure' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:45:23: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
42 | }
43 |
44 | public static func md5Hash(from dataString: String) -> String {
| `- note: add @available attribute to enclosing static method
45 | return Insecure.MD5.hash(data: dataString.data(using: .utf8)!).map { String(format: "%02hhx", $0) }.joined()
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:45:66: warning: conformance of 'Insecure.MD5Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
42 | }
43 |
44 | public static func md5Hash(from dataString: String) -> String {
| `- note: add @available attribute to enclosing static method
45 | return Insecure.MD5.hash(data: dataString.data(using: .utf8)!).map { String(format: "%02hhx", $0) }.joined()
| |- warning: conformance of 'Insecure.MD5Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:118:24: warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
99 | }
100 |
101 | public static func encryptAndAppendHash(inputData data: Data, privateKeyData: Data) throws -> Data {
| `- note: add @available attribute to enclosing static method
102 | let typeDescriptor = Data([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])
103 | let mskIndex: UInt32 = 1
:
116 |
117 | // Hash the data using SHA512
118 | let dataHash = Data(SHA512.hash(data: data))
| |- warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 |
120 | // Prepend the hash to the data
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:118:29: error: 'SHA512' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
99 | }
100 |
101 | public static func encryptAndAppendHash(inputData data: Data, privateKeyData: Data) throws -> Data {
| `- note: add @available attribute to enclosing static method
102 | let typeDescriptor = Data([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])
103 | let mskIndex: UInt32 = 1
:
116 |
117 | // Hash the data using SHA512
118 | let dataHash = Data(SHA512.hash(data: data))
| |- error: 'SHA512' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 |
120 | // Prepend the hash to the data
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:118:36: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
99 | }
100 |
101 | public static func encryptAndAppendHash(inputData data: Data, privateKeyData: Data) throws -> Data {
| `- note: add @available attribute to enclosing static method
102 | let typeDescriptor = Data([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])
103 | let mskIndex: UInt32 = 1
:
116 |
117 | // Hash the data using SHA512
118 | let dataHash = Data(SHA512.hash(data: data))
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 |
120 | // Prepend the hash to the data
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:188:26: error: 'SHA512' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
186 |
187 | // Split decrypted file data into hash and actual data
188 | let hashLength = SHA512.byteCount
| |- error: 'SHA512' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
189 | let hashRange = decryptedData.startIndex..<decryptedData.startIndex + hashLength
190 | let fileDataRange = hashRange.endIndex..<decryptedData.endIndex
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:196:30: warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
194 |
195 | // Check hash
196 | let calculatedHash = Data(SHA512.hash(data: fileData))
| |- warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
197 | guard calculatedHash == hash else {
198 | throw CryptoError.corruptData
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:196:35: error: 'SHA512' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
194 |
195 | // Check hash
196 | let calculatedHash = Data(SHA512.hash(data: fileData))
| |- error: 'SHA512' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | guard calculatedHash == hash else {
198 | throw CryptoError.corruptData
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:196:42: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
194 |
195 | // Check hash
196 | let calculatedHash = Data(SHA512.hash(data: fileData))
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | guard calculatedHash == hash else {
198 | throw CryptoError.corruptData
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:259:26: error: cannot find 'SecKeyEncrypt' in scope
257 | var encryptedDataLength = blockSize
258 |
259 | let status = SecKeyEncrypt(secKey, .OAEP, chunkData, chunkData.count, &encryptedDataBuffer, &encryptedDataLength)
| `- error: cannot find 'SecKeyEncrypt' in scope
260 |
261 | guard status == noErr else {
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:259:49: error: cannot infer contextual base in reference to member 'OAEP'
257 | var encryptedDataLength = blockSize
258 |
259 | let status = SecKeyEncrypt(secKey, .OAEP, chunkData, chunkData.count, &encryptedDataBuffer, &encryptedDataLength)
| `- error: cannot infer contextual base in reference to member 'OAEP'
260 |
261 | guard status == noErr else {
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:288:26: error: cannot find 'SecKeyDecrypt' in scope
286 | var decryptedDataLength = blockSize
287 |
288 | let status = SecKeyDecrypt(secKey, .OAEP, chunkData, indexEnd - index, &decryptedDataBuffer, &decryptedDataLength)
| `- error: cannot find 'SecKeyDecrypt' in scope
289 | guard status == noErr else {
290 | throw CryptoError.chunkDecryptFailed(index: index)
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:288:49: error: cannot infer contextual base in reference to member 'OAEP'
286 | var decryptedDataLength = blockSize
287 |
288 | let status = SecKeyDecrypt(secKey, .OAEP, chunkData, indexEnd - index, &decryptedDataBuffer, &decryptedDataLength)
| `- error: cannot infer contextual base in reference to member 'OAEP'
289 | guard status == noErr else {
290 | throw CryptoError.chunkDecryptFailed(index: index)
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/FilePersistentStorage.swift:165:37: error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | public class FilePersistentStorage {
| `- note: add @available attribute to enclosing class
12 |
13 | private var location: FileManager.SearchPathDirectory = .documentDirectory
:
145 | }
146 |
147 | public func store<T: Encodable>(object: T, fileName: String) {
| `- note: add @available attribute to enclosing instance method
148 | guard Thread.isMainThread else {
149 | DispatchQueue.main.async {
:
163 |
164 | let encoder = JSONEncoder()
165 | encoder.outputFormatting = .withoutEscapingSlashes
| |- error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
166 |
167 | if let data = try? encoder.encode(object) {
[31/92] Compiling DigiMeCore UserDefault.swift
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:41:9: warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
38 | }
39 |
40 | public static func sha256Hash(from dataString: String) -> Data {
| `- note: add @available attribute to enclosing static method
41 | Data(SHA256.hash(data: dataString.data(using: .utf8)!))
| |- warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:41:14: error: 'SHA256' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
38 | }
39 |
40 | public static func sha256Hash(from dataString: String) -> Data {
| `- note: add @available attribute to enclosing static method
41 | Data(SHA256.hash(data: dataString.data(using: .utf8)!))
| |- error: 'SHA256' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:41:21: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
38 | }
39 |
40 | public static func sha256Hash(from dataString: String) -> Data {
| `- note: add @available attribute to enclosing static method
41 | Data(SHA256.hash(data: dataString.data(using: .utf8)!))
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:45:10: error: 'Insecure' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
42 | }
43 |
44 | public static func md5Hash(from dataString: String) -> String {
| `- note: add @available attribute to enclosing static method
45 | return Insecure.MD5.hash(data: dataString.data(using: .utf8)!).map { String(format: "%02hhx", $0) }.joined()
| |- error: 'Insecure' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:45:23: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
42 | }
43 |
44 | public static func md5Hash(from dataString: String) -> String {
| `- note: add @available attribute to enclosing static method
45 | return Insecure.MD5.hash(data: dataString.data(using: .utf8)!).map { String(format: "%02hhx", $0) }.joined()
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:45:66: warning: conformance of 'Insecure.MD5Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
42 | }
43 |
44 | public static func md5Hash(from dataString: String) -> String {
| `- note: add @available attribute to enclosing static method
45 | return Insecure.MD5.hash(data: dataString.data(using: .utf8)!).map { String(format: "%02hhx", $0) }.joined()
| |- warning: conformance of 'Insecure.MD5Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:118:24: warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
99 | }
100 |
101 | public static func encryptAndAppendHash(inputData data: Data, privateKeyData: Data) throws -> Data {
| `- note: add @available attribute to enclosing static method
102 | let typeDescriptor = Data([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])
103 | let mskIndex: UInt32 = 1
:
116 |
117 | // Hash the data using SHA512
118 | let dataHash = Data(SHA512.hash(data: data))
| |- warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 |
120 | // Prepend the hash to the data
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:118:29: error: 'SHA512' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
99 | }
100 |
101 | public static func encryptAndAppendHash(inputData data: Data, privateKeyData: Data) throws -> Data {
| `- note: add @available attribute to enclosing static method
102 | let typeDescriptor = Data([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])
103 | let mskIndex: UInt32 = 1
:
116 |
117 | // Hash the data using SHA512
118 | let dataHash = Data(SHA512.hash(data: data))
| |- error: 'SHA512' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 |
120 | // Prepend the hash to the data
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:118:36: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
99 | }
100 |
101 | public static func encryptAndAppendHash(inputData data: Data, privateKeyData: Data) throws -> Data {
| `- note: add @available attribute to enclosing static method
102 | let typeDescriptor = Data([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])
103 | let mskIndex: UInt32 = 1
:
116 |
117 | // Hash the data using SHA512
118 | let dataHash = Data(SHA512.hash(data: data))
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 |
120 | // Prepend the hash to the data
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:188:26: error: 'SHA512' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
186 |
187 | // Split decrypted file data into hash and actual data
188 | let hashLength = SHA512.byteCount
| |- error: 'SHA512' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
189 | let hashRange = decryptedData.startIndex..<decryptedData.startIndex + hashLength
190 | let fileDataRange = hashRange.endIndex..<decryptedData.endIndex
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:196:30: warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
194 |
195 | // Check hash
196 | let calculatedHash = Data(SHA512.hash(data: fileData))
| |- warning: conformance of 'SHA512Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
197 | guard calculatedHash == hash else {
198 | throw CryptoError.corruptData
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:196:35: error: 'SHA512' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
194 |
195 | // Check hash
196 | let calculatedHash = Data(SHA512.hash(data: fileData))
| |- error: 'SHA512' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | guard calculatedHash == hash else {
198 | throw CryptoError.corruptData
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:196:42: error: 'hash(data:)' is only available in macOS 10.15 or newer
12 | import Security
13 |
14 | public enum Crypto {
| `- note: add @available attribute to enclosing enum
15 | public enum CryptoError: Error {
16 | case stringToDataConversionFailed
:
164 | }
165 |
166 | public static func decrypt(encryptedBase64EncodedData data: Data, privateKeyData: Data, dataIsHashed: Bool) throws -> Data {
| `- note: add @available attribute to enclosing static method
167 | // Split data into components
168 | let encryptedDskLength = 256
:
194 |
195 | // Check hash
196 | let calculatedHash = Data(SHA512.hash(data: fileData))
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | guard calculatedHash == hash else {
198 | throw CryptoError.corruptData
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:259:26: error: cannot find 'SecKeyEncrypt' in scope
257 | var encryptedDataLength = blockSize
258 |
259 | let status = SecKeyEncrypt(secKey, .OAEP, chunkData, chunkData.count, &encryptedDataBuffer, &encryptedDataLength)
| `- error: cannot find 'SecKeyEncrypt' in scope
260 |
261 | guard status == noErr else {
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:259:49: error: cannot infer contextual base in reference to member 'OAEP'
257 | var encryptedDataLength = blockSize
258 |
259 | let status = SecKeyEncrypt(secKey, .OAEP, chunkData, chunkData.count, &encryptedDataBuffer, &encryptedDataLength)
| `- error: cannot infer contextual base in reference to member 'OAEP'
260 |
261 | guard status == noErr else {
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:288:26: error: cannot find 'SecKeyDecrypt' in scope
286 | var decryptedDataLength = blockSize
287 |
288 | let status = SecKeyDecrypt(secKey, .OAEP, chunkData, indexEnd - index, &decryptedDataBuffer, &decryptedDataLength)
| `- error: cannot find 'SecKeyDecrypt' in scope
289 | guard status == noErr else {
290 | throw CryptoError.chunkDecryptFailed(index: index)
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/Crypto.swift:288:49: error: cannot infer contextual base in reference to member 'OAEP'
286 | var decryptedDataLength = blockSize
287 |
288 | let status = SecKeyDecrypt(secKey, .OAEP, chunkData, indexEnd - index, &decryptedDataBuffer, &decryptedDataLength)
| `- error: cannot infer contextual base in reference to member 'OAEP'
289 | guard status == noErr else {
290 | throw CryptoError.chunkDecryptFailed(index: index)
/Users/admin/builder/spi-builder-workspace/DigiMeCore/Sources/DigiMeCore/Utilities/FilePersistentStorage.swift:165:37: error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | public class FilePersistentStorage {
| `- note: add @available attribute to enclosing class
12 |
13 | private var location: FileManager.SearchPathDirectory = .documentDirectory
:
145 | }
146 |
147 | public func store<T: Encodable>(object: T, fileName: String) {
| `- note: add @available attribute to enclosing instance method
148 | guard Thread.isMainThread else {
149 | DispatchQueue.main.async {
:
163 |
164 | let encoder = JSONEncoder()
165 | encoder.outputFormatting = .withoutEscapingSlashes
| |- error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
166 |
167 | if let data = try? encoder.encode(object) {
[32/92] Compiling DigiMeCore OAuthToken.swift
[33/92] Compiling DigiMeCore WriteAccessInfo.swift
[34/92] Compiling DigiMeCore ContractVersion4.swift
[35/92] Compiling DigiMeCore ContractVersion5.swift
[36/92] Compiling DigiMeCore ConnectionSecurity.swift
[37/92] Compiling DigiMeCore FileInfo.swift
[38/92] Compiling DigiMeCore SourceCategoriesRequestCriteria.swift
[39/92] Compiling DigiMeCore SourceCountriesRequestCriteria.swift
[40/92] Compiling DigiMeCore SourcePlatformsRequestCriteria.swift
[41/92] Compiling DigiMeCore SourceRequestCriteria.swift
[42/92] Compiling DigiMeCore SourceRequestFilter.swift
[43/92] Compiling DigiMeCore SourceTypesRequestCriteria.swift
[44/92] Compiling DigiMeCore SampleDataset.swift
[45/92] Compiling DigiMeCore Service.swift
[46/92] Compiling DigiMeCore ServicesInfo.swift
[47/92] Compiling DigiMeCore Source.swift
[48/92] Compiling DigiMeCore SourceCountry.swift
[49/92] Compiling DigiMeCore SourcePlatform.swift
[50/92] Compiling DigiMeCore SourceResource.swift
[51/92] Compiling DigiMeCore SourceType.swift
[52/92] Compiling DigiMeCore SourcesInfo.swift
[53/92] Compiling DigiMeCore APIError.swift
[54/92] Compiling DigiMeCore SDKError.swift
[55/92] Compiling DigiMeCore File.swift
[56/92] Compiling DigiMeCore FileList.swift
[57/92] Compiling DigiMeCore FileListItem.swift
[58/92] Compiling DigiMeCore FileMetadata.swift
[59/92] Compiling DigiMeCore Logging.swift
[60/92] Compiling DigiMeCore ApplicationResponse.swift
[61/92] Compiling DigiMeCore ContractResponse.swift
[62/92] Compiling DigiMeCore ConsentAccessTimeRange.swift
[63/92] Compiling DigiMeCore ContractTimeRangeType.swift
[64/92] Compiling DigiMeCore DeviceOnlyServices.swift
[65/92] Compiling DigiMeCore Duration.swift
[66/92] Compiling DigiMeCore Limits.swift
[67/92] Compiling DigiMeCore ReadOptions.swift
[68/92] Compiling DigiMeCore Scope.swift
[69/92] Compiling DigiMeCore ServiceGroupType.swift
[70/92] Compiling DigiMeCore ServiceObjectType.swift
[71/92] Compiling DigiMeCore ServiceType.swift
[72/92] Compiling DigiMeCore SourceFetchFilter.swift
[73/92] Compiling DigiMeCore TimeRange.swift
[74/92] Compiling DigiMeCore StorageConfig.swift
[75/92] Compiling DigiMeCore AccountDataProvider.swift
[76/92] Compiling DigiMeCore AccountServiceDescriptor.swift
[77/92] Compiling DigiMeCore AccountsInfo.swift
[78/92] Compiling DigiMeCore SourceAccount.swift
[79/92] Compiling DigiMeCore SourceAccountData.swift
[80/92] Compiling DigiMeCore CallbackError.swift
[81/92] Compiling DigiMeCore Configuration.swift
[82/92] Compiling DigiMeCore ConsentError.swift
[83/92] Compiling DigiMeCore Credentials.swift
[84/92] Compiling DigiMeCore FitnessActivitySummary.swift
[85/92] Compiling DigiMeCore LogEventPayload.swift
[86/92] Compiling DigiMeCore MappedFileMetadata.swift
[87/92] Compiling DigiMeCore MimeType.swift
[88/92] Compiling DigiMeCore RawFileMetadata.swift
[89/92] Compiling DigiMeCore RawFileMetadataBuilder.swift
[90/92] Compiling DigiMeCore SyncAccount.swift
[91/92] Compiling DigiMeCore SyncError.swift
[92/92] Compiling DigiMeCore SyncState.swift
Fetching https://github.com/apple/swift-docc-plugin
[1/2082] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (1.19s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.4 (1.72s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3416] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.20s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.74s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.4
warning: 'spi-builder-workspace': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/DigiMeSDK/Sources/DigiMeSDK/libs/GZip-6.0.1/README.md
/Users/admin/builder/spi-builder-workspace/DigiMeSDK/Sources/DigiMeSDK/libs/ASN1Decoder-1.9.0/README.md
BUILD FAILURE 6.2 macosSpm