The Swift Package Index logo.Swift Package Index

Build Information

Failed to build DigiMeSDK, reference master (8f84c6), with Swift 6.3 for macOS (SPM) on 16 Apr 2026 03:27:03 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/worlddataexchange/digime-sdk-ios.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/worlddataexchange/digime-sdk-ios
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
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 master
Fetching https://github.com/apple/swift-docc-plugin
[1/2277] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (1.08s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.6 (1.75s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3672] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.21s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.96s)
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.6
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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "digime-sdk-ios",
      "name": "DigiMeSDK",
      "url": "https://github.com/worlddataexchange/digime-sdk-ios.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/digime-sdk-ios",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/worlddataexchange/digime-sdk-ios.git
[1/21399] Fetching digime-sdk-ios
Fetched https://github.com/worlddataexchange/digime-sdk-ios.git from cache (3.73s)
Creating working copy for https://github.com/worlddataexchange/digime-sdk-ios.git
Working copy of https://github.com/worlddataexchange/digime-sdk-ios.git resolved at master (8f84c6b)
warning: '.resolve-product-dependencies': dependency 'digime-sdk-ios' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/worlddataexchange/digime-sdk-ios.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.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--6988338F2F200930.txt
[7/84] Compiling DigiMeCore SourceRequestCriteria.swift
[8/84] Compiling DigiMeCore SourceRequestFilter.swift
[9/84] Compiling DigiMeCore SourceTypesRequestCriteria.swift
[10/84] Compiling DigiMeCore SampleDataset.swift
[11/84] Compiling DigiMeCore Service.swift
[12/84] Compiling DigiMeCore ServicesInfo.swift
[13/84] Compiling DigiMeCore Source.swift
[14/84] Compiling DigiMeCore SourceCountry.swift
[15/84] Compiling DigiMeCore SourcePlatform.swift
[16/92] Compiling DigiMeCore Logging.swift
[17/92] Compiling DigiMeCore ApplicationResponse.swift
[18/92] Compiling DigiMeCore ContractResponse.swift
[19/92] Compiling DigiMeCore ConsentAccessTimeRange.swift
[20/92] Compiling DigiMeCore ContractTimeRangeType.swift
[21/92] Compiling DigiMeCore DeviceOnlyServices.swift
[22/92] Compiling DigiMeCore Duration.swift
[23/92] Compiling DigiMeCore Limits.swift
[24/92] Compiling DigiMeCore StorageDeleteFileStatus.swift
[25/92] Compiling DigiMeCore StorageFileInfo.swift
[26/92] Compiling DigiMeCore StorageFileList.swift
[27/92] Compiling DigiMeCore StorageUploadFileInfo.swift
[28/92] Compiling DigiMeCore AES256.swift
[29/92] Compiling DigiMeCore Array+Helper.swift
[30/92] Compiling DigiMeCore Calendar+Helper.swift
[31/92] Compiling DigiMeCore Codable+Logging.swift
[32/92] Compiling DigiMeCore SyncStatus.swift
[33/92] Compiling DigiMeCore HealthKitAccountDataProviderProtocol.swift
[34/92] Compiling DigiMeCore HealthKitFilesDataServiceProtocol.swift
[35/92] Compiling DigiMeCore HealthKitServiceProtocol.swift
[36/92] Compiling DigiMeCore CustomLogger.swift
[37/92] Compiling DigiMeCore DefaultLogger.swift
[38/92] Compiling DigiMeCore LogLevel.swift
[39/92] Compiling DigiMeCore Logger.swift
[40/92] Emitting module DigiMeCore
[41/92] Compiling DigiMeCore AccountDataProvider.swift
[42/92] Compiling DigiMeCore AccountServiceDescriptor.swift
[43/92] Compiling DigiMeCore AccountsInfo.swift
[44/92] Compiling DigiMeCore SourceAccount.swift
[45/92] Compiling DigiMeCore SourceAccountData.swift
[46/92] Compiling DigiMeCore CallbackError.swift
[47/92] Compiling DigiMeCore Configuration.swift
[48/92] Compiling DigiMeCore ConsentError.swift
[49/92] Compiling DigiMeCore Credentials.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 OAuthToken.swift
[60/92] Compiling DigiMeCore WriteAccessInfo.swift
[61/92] Compiling DigiMeCore ContractVersion4.swift
[62/92] Compiling DigiMeCore ContractVersion5.swift
[63/92] Compiling DigiMeCore ConnectionSecurity.swift
[64/92] Compiling DigiMeCore FileInfo.swift
[65/92] Compiling DigiMeCore SourceCategoriesRequestCriteria.swift
[66/92] Compiling DigiMeCore SourceCountriesRequestCriteria.swift
[67/92] Compiling DigiMeCore SourcePlatformsRequestCriteria.swift
[68/92] Compiling DigiMeCore ReadOptions.swift
[69/92] Compiling DigiMeCore Scope.swift
[70/92] Compiling DigiMeCore ServiceGroupType.swift
[71/92] Compiling DigiMeCore ServiceObjectType.swift
[72/92] Compiling DigiMeCore ServiceType.swift
[73/92] Compiling DigiMeCore SourceFetchFilter.swift
[74/92] Compiling DigiMeCore TimeRange.swift
[75/92] Compiling DigiMeCore StorageConfig.swift
[76/92] Compiling DigiMeCore FitnessActivitySummary.swift
[77/92] Compiling DigiMeCore LogEventPayload.swift
[78/92] Compiling DigiMeCore MappedFileMetadata.swift
[79/92] Compiling DigiMeCore MimeType.swift
[80/92] Compiling DigiMeCore RawFileMetadata.swift
[81/92] Compiling DigiMeCore RawFileMetadataBuilder.swift
[82/92] Compiling DigiMeCore SyncAccount.swift
[83/92] Compiling DigiMeCore SyncError.swift
[84/92] Compiling DigiMeCore SyncState.swift
[85/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) {
[86/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) {
[87/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) {
[88/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) {
[89/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) {
[90/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) {
[91/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) {
[92/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) {
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.3 macosSpm