Build Information
Failed to build Causalontology, reference main (292dfc), with Swift 6.1 for macOS (SPM) on 28 Jul 2026 01:45:39 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ai-university-aiu/causalontology.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ai-university-aiu/causalontology
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 292dfca QA: close the four blockers the sweep's own critic raised (#46)
Cloned https://github.com/ai-university-aiu/causalontology.git
Revision (git rev-parse @):
292dfcad2d3bae4c359dfed93db1b2dfdb7f71be
SUCCESS checkout https://github.com/ai-university-aiu/causalontology.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/ai-university-aiu/causalontology.git
https://github.com/ai-university-aiu/causalontology.git
{
"dependencies" : [
{
"identity" : "swift-crypto",
"requirement" : {
"range" : [
{
"lower_bound" : "3.0.0",
"upper_bound" : "4.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-crypto.git"
}
],
"manifest_display_name" : "Causalontology",
"name" : "Causalontology",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Causalontology",
"targets" : [
"Causalontology"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "Causalontology",
"module_type" : "SwiftTarget",
"name" : "Causalontology",
"path" : "bindings/swift/Sources/Causalontology",
"product_dependencies" : [
"Crypto"
],
"product_memberships" : [
"Causalontology"
],
"sources" : [
"Canonical.swift",
"Jcs.swift",
"JsonValue.swift",
"SchemaValidator.swift",
"Semantics.swift",
"Signing.swift",
"Store.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/4] Copying PrivacyInfo.xcprivacy
[0/4] Write sources
[3/4] Write swift-version-2F0A5646E1D333AE.txt
[5/78] Emitting module Crypto
[6/86] Compiling Crypto DH.swift
[7/86] Compiling Crypto ECDH.swift
[8/86] Compiling Crypto HKDF.swift
[9/86] Compiling Crypto AESWrap.swift
[10/86] Compiling Crypto AESWrap_boring.swift
[11/86] Compiling Crypto Ed25519_boring.swift
[12/86] Compiling Crypto NISTCurvesKeys_boring.swift
[13/86] Compiling Crypto X25519Keys_boring.swift
[14/86] Compiling Crypto RNG_boring.swift
[15/86] Compiling Crypto SafeCompare_boring.swift
[16/86] Compiling Crypto Zeroization_boring.swift
[17/86] Compiling Crypto PrettyBytes.swift
[18/86] Compiling Crypto SafeCompare.swift
[19/86] Compiling Crypto SecureBytes.swift
[20/86] Compiling Crypto Zeroization.swift
[21/86] Compiling Crypto resource_bundle_accessor.swift
[22/86] Compiling Crypto Curve25519.swift
[23/86] Compiling Crypto Ed25519Keys.swift
[24/86] Compiling Crypto NISTCurvesKeys.swift
[25/86] Compiling Crypto X25519Keys.swift
[26/86] Compiling Crypto SymmetricKeys.swift
[27/86] Compiling Crypto HMAC.swift
[28/86] Compiling Crypto MACFunctions.swift
[29/86] Compiling Crypto MessageAuthenticationCode.swift
[30/86] Compiling Crypto AES.swift
[31/86] Compiling Crypto ECDSASignature_boring.swift
[32/86] Compiling Crypto ECDSA_boring.swift
[33/86] Compiling Crypto EdDSA_boring.swift
[34/86] Compiling Crypto ECDSA.swift
[35/86] Compiling Crypto Ed25519.swift
[36/86] Compiling Crypto Signature.swift
[37/86] Compiling Crypto CryptoKitErrors_boring.swift
[38/86] Compiling Crypto ObjectIdentifier.swift
[39/86] Compiling Crypto ECDSASignature.swift
[40/86] Compiling Crypto PEMDocument.swift
[41/86] Compiling Crypto PKCS8PrivateKey.swift
[42/86] Compiling Crypto SEC1PrivateKey.swift
[43/86] Compiling Crypto SubjectPublicKeyInfo.swift
[44/86] Compiling Crypto CryptoError_boring.swift
[45/86] Compiling Crypto CryptoKitErrors.swift
[46/86] Compiling Crypto HPKE-KexKeyDerivation.swift
[47/86] Compiling Crypto HPKE-LabeledExtract.swift
[48/86] Compiling Crypto HPKE-Utils.swift
[49/86] Compiling Crypto DHKEM.swift
[50/86] Compiling Crypto HPKE-KEM-Curve25519.swift
[51/86] Compiling Crypto HPKE-NIST-EC-KEMs.swift
[52/86] Compiling Crypto HPKE-KEM.swift
[53/86] Compiling Crypto HPKE-Errors.swift
[54/86] Compiling Crypto Digest_boring.swift
[55/86] Compiling Crypto Digest.swift
[56/86] Compiling Crypto Digests.swift
[57/86] Compiling Crypto HashFunctions.swift
[58/86] Compiling Crypto HashFunctions_SHA2.swift
[59/86] Compiling Crypto HPKE-AEAD.swift
[60/86] Compiling Crypto HPKE-Ciphersuite.swift
[61/86] Compiling Crypto HPKE-KDF.swift
[62/86] Compiling Crypto HPKE.swift
[63/86] Compiling Crypto HPKE-Context.swift
[64/86] Compiling Crypto HPKE-KeySchedule.swift
[65/86] Compiling Crypto HPKE-Modes.swift
[66/86] Compiling Crypto Insecure.swift
[67/86] Compiling Crypto Insecure_HashFunctions.swift
[68/86] Compiling Crypto KEM.swift
[69/86] Compiling Crypto ECDH_boring.swift
[70/86] Compiling Crypto ASN1Boolean.swift
[71/86] Compiling Crypto ASN1Identifier.swift
[72/86] Compiling Crypto ASN1Integer.swift
[73/86] Compiling Crypto ASN1Null.swift
[74/86] Compiling Crypto ASN1OctetString.swift
[75/86] Compiling Crypto ASN1Strings.swift
[76/86] Compiling Crypto ArraySliceBigint.swift
[77/86] Compiling Crypto GeneralizedTime.swift
[78/86] Compiling Crypto AES-GCM.swift
[79/86] Compiling Crypto AES-GCM_boring.swift
[80/86] Compiling Crypto ChaChaPoly_boring.swift
[81/86] Compiling Crypto ChaChaPoly.swift
[82/86] Compiling Crypto Cipher.swift
[83/86] Compiling Crypto Nonces.swift
[84/86] Compiling Crypto ASN1.swift
[85/86] Compiling Crypto ASN1Any.swift
[86/86] Compiling Crypto ASN1BitString.swift
[87/94] Compiling Causalontology Jcs.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[88/94] Compiling Causalontology JsonValue.swift
[89/94] Emitting module Causalontology
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/Causalontology/SchemaValidator.swift:81:23: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'SchemaValidator' may have shared mutable state; this is an error in the Swift 6 language mode
14 | /// objects against them. Not thread-safe (the schema cache is unlocked);
15 | /// the conformance harness is single-threaded.
16 | public final class SchemaValidator {
| `- note: class 'SchemaValidator' does not conform to the 'Sendable' protocol
17 | /// The schema file name per kind. Three token kinds keep their original
18 | /// 1.0.0-reserved file names (individual/token/state); the id scheme is
:
79 |
80 | /// A shared validator over the default schema directory.
81 | public static let standard = SchemaValidator(schemaDirectory: defaultSchemaDirectory())
| |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'SchemaValidator' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
82 |
83 | /// Load (and cache) the root schema for a kind.
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/Causalontology/Signing.swift:19:22: error: 'Curve25519' is only available in macOS 10.15 or newer
15 | /// private key IS the 32-byte seed (RFC 8032), and the raw public key is
16 | /// the 32-byte compressed point.
17 | public func keypairFromSeed(
| `- note: add @available attribute to enclosing global function
18 | _ seed: Data
19 | ) throws -> (secret: Curve25519.Signing.PrivateKey, publicId: String) {
| `- error: 'Curve25519' is only available in macOS 10.15 or newer
20 | let secret = try Curve25519.Signing.PrivateKey(rawRepresentation: seed)
21 | let publicHex = hexEncode(secret.publicKey.rawRepresentation)
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/Causalontology/Signing.swift:28:13: error: 'Curve25519' is only available in macOS 10.15 or newer
24 |
25 | /// Return the record completed with its id and Ed25519 signature.
26 | public func signRecord(
| `- note: add @available attribute to enclosing global function
27 | _ record: [String: JsonValue],
28 | secret: Curve25519.Signing.PrivateKey,
| `- error: 'Curve25519' is only available in macOS 10.15 or newer
29 | kind: String? = nil
30 | ) throws -> [String: JsonValue] {
[90/94] Compiling Causalontology SchemaValidator.swift
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/Causalontology/SchemaValidator.swift:81:23: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'SchemaValidator' may have shared mutable state; this is an error in the Swift 6 language mode
14 | /// objects against them. Not thread-safe (the schema cache is unlocked);
15 | /// the conformance harness is single-threaded.
16 | public final class SchemaValidator {
| `- note: class 'SchemaValidator' does not conform to the 'Sendable' protocol
17 | /// The schema file name per kind. Three token kinds keep their original
18 | /// 1.0.0-reserved file names (individual/token/state); the id scheme is
:
79 |
80 | /// A shared validator over the default schema directory.
81 | public static let standard = SchemaValidator(schemaDirectory: defaultSchemaDirectory())
| |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'SchemaValidator' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
82 |
83 | /// Load (and cache) the root schema for a kind.
[91/94] Compiling Causalontology Store.swift
[92/94] Compiling Causalontology Semantics.swift
[93/94] Compiling Causalontology Canonical.swift
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/Causalontology/Canonical.swift:100:18: error: 'SHA256' is only available in macOS 10.15 or newer
97 |
98 | /// The lowercase SHA-256 hex digest of any bytes.
99 | public func sha256Hex<D: DataProtocol>(_ data: D) -> String {
| `- note: add @available attribute to enclosing global function
100 | let digest = SHA256.hash(data: data)
| |- error: 'SHA256' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
101 | var out = ""
102 | for byte in digest {
<unknown>:0: error: 'makeIterator()' is only available in macOS 10.15 or newer
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/Causalontology/Canonical.swift:100:25: error: 'hash(data:)' is only available in macOS 10.15 or newer
97 |
98 | /// The lowercase SHA-256 hex digest of any bytes.
99 | public func sha256Hex<D: DataProtocol>(_ data: D) -> String {
| `- note: add @available attribute to enclosing global function
100 | let digest = SHA256.hash(data: data)
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
101 | var out = ""
102 | for byte in digest {
[94/94] Compiling Causalontology Signing.swift
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/Causalontology/Signing.swift:19:22: error: 'Curve25519' is only available in macOS 10.15 or newer
15 | /// private key IS the 32-byte seed (RFC 8032), and the raw public key is
16 | /// the 32-byte compressed point.
17 | public func keypairFromSeed(
| `- note: add @available attribute to enclosing global function
18 | _ seed: Data
19 | ) throws -> (secret: Curve25519.Signing.PrivateKey, publicId: String) {
| `- error: 'Curve25519' is only available in macOS 10.15 or newer
20 | let secret = try Curve25519.Signing.PrivateKey(rawRepresentation: seed)
21 | let publicHex = hexEncode(secret.publicKey.rawRepresentation)
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/Causalontology/Signing.swift:28:13: error: 'Curve25519' is only available in macOS 10.15 or newer
24 |
25 | /// Return the record completed with its id and Ed25519 signature.
26 | public func signRecord(
| `- note: add @available attribute to enclosing global function
27 | _ record: [String: JsonValue],
28 | secret: Curve25519.Signing.PrivateKey,
| `- error: 'Curve25519' is only available in macOS 10.15 or newer
29 | kind: String? = nil
30 | ) throws -> [String: JsonValue] {
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/Causalontology/Signing.swift:20:22: error: 'Curve25519' is only available in macOS 10.15 or newer
15 | /// private key IS the 32-byte seed (RFC 8032), and the raw public key is
16 | /// the 32-byte compressed point.
17 | public func keypairFromSeed(
| `- note: add @available attribute to enclosing global function
18 | _ seed: Data
19 | ) throws -> (secret: Curve25519.Signing.PrivateKey, publicId: String) {
20 | let secret = try Curve25519.Signing.PrivateKey(rawRepresentation: seed)
| |- error: 'Curve25519' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | let publicHex = hexEncode(secret.publicKey.rawRepresentation)
22 | return (secret, "ed25519:" + publicHex)
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/Causalontology/Signing.swift:40:32: error: 'signature(for:)' is only available in macOS 10.15 or newer
24 |
25 | /// Return the record completed with its id and Ed25519 signature.
26 | public func signRecord(
| `- note: add @available attribute to enclosing global function
27 | _ record: [String: JsonValue],
28 | secret: Curve25519.Signing.PrivateKey,
:
38 | body.removeValue(forKey: "signature")
39 | let message = try canonicalize(body, kind: resolvedKind)
40 | let signature = try secret.signature(for: message)
| |- error: 'signature(for:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | var out = body
42 | out["id"] = .string(try identify(body, kind: resolvedKind))
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/Causalontology/Signing.swift:79:32: error: 'Curve25519' is only available in macOS 10.15 or newer
56 |
57 | /// True iff the record's signature verifies against its own key field.
58 | public func verifyRecord(_ record: [String: JsonValue], kind: String? = nil) -> Bool {
| `- note: add @available attribute to enclosing global function
59 | let resolvedKind: String
60 | if let kind = kind {
:
77 | return false
78 | }
79 | guard let publicKey = try? Curve25519.Signing.PublicKey(rawRepresentation: publicBytes) else {
| |- error: 'Curve25519' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | return false
81 | }
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/Causalontology/Signing.swift:87:22: error: 'isValidSignature(_:for:)' is only available in macOS 10.15 or newer
56 |
57 | /// True iff the record's signature verifies against its own key field.
58 | public func verifyRecord(_ record: [String: JsonValue], kind: String? = nil) -> Bool {
| `- note: add @available attribute to enclosing global function
59 | let resolvedKind: String
60 | if let kind = kind {
:
85 | return false
86 | }
87 | return publicKey.isValidSignature(signatureBytes, for: message)
| |- error: 'isValidSignature(_:for:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | }
89 |
Fetching https://github.com/apple/swift-crypto.git from cache
Fetched https://github.com/apple/swift-crypto.git from cache (1.71s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.15.1 (5.32s)
Fetching https://github.com/apple/swift-asn1.git from cache
Fetched https://github.com/apple/swift-asn1.git from cache (0.75s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.1 (3.26s)
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.15.1
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.1
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/75] Compiling Crypto ASN1Boolean.swift
[3/75] Compiling Crypto ASN1Identifier.swift
[4/75] Compiling Crypto ASN1Integer.swift
[5/75] Compiling Crypto ASN1Null.swift
[6/75] Compiling Crypto ASN1OctetString.swift
[7/75] Compiling Crypto ASN1Strings.swift
[8/75] Compiling Crypto ArraySliceBigint.swift
[9/75] Compiling Crypto GeneralizedTime.swift
[10/83] Emitting module Crypto
[11/83] Compiling Crypto ObjectIdentifier.swift
[12/83] Compiling Crypto ECDSASignature.swift
[13/83] Compiling Crypto PEMDocument.swift
[14/83] Compiling Crypto PKCS8PrivateKey.swift
[15/83] Compiling Crypto SEC1PrivateKey.swift
[16/83] Compiling Crypto SubjectPublicKeyInfo.swift
[17/83] Compiling Crypto CryptoError_boring.swift
[18/83] Compiling Crypto CryptoKitErrors.swift
[19/83] Compiling Crypto HPKE-KexKeyDerivation.swift
[20/83] Compiling Crypto HPKE-LabeledExtract.swift
[21/83] Compiling Crypto HPKE-Utils.swift
[22/83] Compiling Crypto DHKEM.swift
[23/83] Compiling Crypto HPKE-KEM-Curve25519.swift
[24/83] Compiling Crypto HPKE-NIST-EC-KEMs.swift
[25/83] Compiling Crypto HPKE-KEM.swift
[26/83] Compiling Crypto HPKE-Errors.swift
[27/83] Compiling Crypto HPKE.swift
[28/83] Compiling Crypto HPKE-Context.swift
[29/83] Compiling Crypto HPKE-KeySchedule.swift
[30/83] Compiling Crypto HPKE-Modes.swift
[31/83] Compiling Crypto Insecure.swift
[32/83] Compiling Crypto Insecure_HashFunctions.swift
[33/83] Compiling Crypto KEM.swift
[34/83] Compiling Crypto ECDH_boring.swift
[35/83] Compiling Crypto Digest_boring.swift
[36/83] Compiling Crypto Digest.swift
[37/83] Compiling Crypto Digests.swift
[38/83] Compiling Crypto HashFunctions.swift
[39/83] Compiling Crypto HashFunctions_SHA2.swift
[40/83] Compiling Crypto HPKE-AEAD.swift
[41/83] Compiling Crypto HPKE-Ciphersuite.swift
[42/83] Compiling Crypto HPKE-KDF.swift
[43/83] Compiling Crypto AES.swift
[44/83] Compiling Crypto ECDSASignature_boring.swift
[45/83] Compiling Crypto ECDSA_boring.swift
[46/83] Compiling Crypto EdDSA_boring.swift
[47/83] Compiling Crypto ECDSA.swift
[48/83] Compiling Crypto Ed25519.swift
[49/83] Compiling Crypto Signature.swift
[50/83] Compiling Crypto CryptoKitErrors_boring.swift
[51/83] Compiling Crypto DH.swift
[52/83] Compiling Crypto ECDH.swift
[53/83] Compiling Crypto HKDF.swift
[54/83] Compiling Crypto AESWrap.swift
[55/83] Compiling Crypto AESWrap_boring.swift
[56/83] Compiling Crypto Ed25519_boring.swift
[57/83] Compiling Crypto NISTCurvesKeys_boring.swift
[58/83] Compiling Crypto X25519Keys_boring.swift
[59/83] Compiling Crypto AES-GCM.swift
[60/83] Compiling Crypto AES-GCM_boring.swift
[61/83] Compiling Crypto ChaChaPoly_boring.swift
[62/83] Compiling Crypto ChaChaPoly.swift
[63/83] Compiling Crypto Cipher.swift
[64/83] Compiling Crypto Nonces.swift
[65/83] Compiling Crypto ASN1.swift
[66/83] Compiling Crypto ASN1Any.swift
[67/83] Compiling Crypto ASN1BitString.swift
[68/83] Compiling Crypto Curve25519.swift
[69/83] Compiling Crypto Ed25519Keys.swift
[70/83] Compiling Crypto NISTCurvesKeys.swift
[71/83] Compiling Crypto X25519Keys.swift
[72/83] Compiling Crypto SymmetricKeys.swift
[73/83] Compiling Crypto HMAC.swift
[74/83] Compiling Crypto MACFunctions.swift
[75/83] Compiling Crypto MessageAuthenticationCode.swift
[76/83] Compiling Crypto RNG_boring.swift
[77/83] Compiling Crypto SafeCompare_boring.swift
[78/83] Compiling Crypto Zeroization_boring.swift
[79/83] Compiling Crypto PrettyBytes.swift
[80/83] Compiling Crypto SafeCompare.swift
[81/83] Compiling Crypto SecureBytes.swift
[82/83] Compiling Crypto Zeroization.swift
[83/83] Compiling Crypto resource_bundle_accessor.swift
[84/91] Compiling Causalontology SchemaValidator.swift
[85/91] Compiling Causalontology Store.swift
[86/91] Compiling Causalontology Signing.swift
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/Causalontology/Signing.swift:19:22: error: 'Curve25519' is only available in macOS 10.15 or newer
15 | /// private key IS the 32-byte seed (RFC 8032), and the raw public key is
16 | /// the 32-byte compressed point.
17 | public func keypairFromSeed(
| `- note: add @available attribute to enclosing global function
18 | _ seed: Data
19 | ) throws -> (secret: Curve25519.Signing.PrivateKey, publicId: String) {
| `- error: 'Curve25519' is only available in macOS 10.15 or newer
20 | let secret = try Curve25519.Signing.PrivateKey(rawRepresentation: seed)
21 | let publicHex = hexEncode(secret.publicKey.rawRepresentation)
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/Causalontology/Signing.swift:28:13: error: 'Curve25519' is only available in macOS 10.15 or newer
24 |
25 | /// Return the record completed with its id and Ed25519 signature.
26 | public func signRecord(
| `- note: add @available attribute to enclosing global function
27 | _ record: [String: JsonValue],
28 | secret: Curve25519.Signing.PrivateKey,
| `- error: 'Curve25519' is only available in macOS 10.15 or newer
29 | kind: String? = nil
30 | ) throws -> [String: JsonValue] {
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/Causalontology/Signing.swift:20:22: error: 'Curve25519' is only available in macOS 10.15 or newer
15 | /// private key IS the 32-byte seed (RFC 8032), and the raw public key is
16 | /// the 32-byte compressed point.
17 | public func keypairFromSeed(
| `- note: add @available attribute to enclosing global function
18 | _ seed: Data
19 | ) throws -> (secret: Curve25519.Signing.PrivateKey, publicId: String) {
20 | let secret = try Curve25519.Signing.PrivateKey(rawRepresentation: seed)
| |- error: 'Curve25519' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | let publicHex = hexEncode(secret.publicKey.rawRepresentation)
22 | return (secret, "ed25519:" + publicHex)
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/Causalontology/Signing.swift:40:32: error: 'signature(for:)' is only available in macOS 10.15 or newer
24 |
25 | /// Return the record completed with its id and Ed25519 signature.
26 | public func signRecord(
| `- note: add @available attribute to enclosing global function
27 | _ record: [String: JsonValue],
28 | secret: Curve25519.Signing.PrivateKey,
:
38 | body.removeValue(forKey: "signature")
39 | let message = try canonicalize(body, kind: resolvedKind)
40 | let signature = try secret.signature(for: message)
| |- error: 'signature(for:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | var out = body
42 | out["id"] = .string(try identify(body, kind: resolvedKind))
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/Causalontology/Signing.swift:79:32: error: 'Curve25519' is only available in macOS 10.15 or newer
56 |
57 | /// True iff the record's signature verifies against its own key field.
58 | public func verifyRecord(_ record: [String: JsonValue], kind: String? = nil) -> Bool {
| `- note: add @available attribute to enclosing global function
59 | let resolvedKind: String
60 | if let kind = kind {
:
77 | return false
78 | }
79 | guard let publicKey = try? Curve25519.Signing.PublicKey(rawRepresentation: publicBytes) else {
| |- error: 'Curve25519' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | return false
81 | }
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/Causalontology/Signing.swift:87:22: error: 'isValidSignature(_:for:)' is only available in macOS 10.15 or newer
56 |
57 | /// True iff the record's signature verifies against its own key field.
58 | public func verifyRecord(_ record: [String: JsonValue], kind: String? = nil) -> Bool {
| `- note: add @available attribute to enclosing global function
59 | let resolvedKind: String
60 | if let kind = kind {
:
85 | return false
86 | }
87 | return publicKey.isValidSignature(signatureBytes, for: message)
| |- error: 'isValidSignature(_:for:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | }
89 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[87/91] Compiling Causalontology Jcs.swift
[88/91] Compiling Causalontology JsonValue.swift
[89/91] Compiling Causalontology Semantics.swift
[90/91] Emitting module Causalontology
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/Causalontology/Signing.swift:19:22: error: 'Curve25519' is only available in macOS 10.15 or newer
15 | /// private key IS the 32-byte seed (RFC 8032), and the raw public key is
16 | /// the 32-byte compressed point.
17 | public func keypairFromSeed(
| `- note: add @available attribute to enclosing global function
18 | _ seed: Data
19 | ) throws -> (secret: Curve25519.Signing.PrivateKey, publicId: String) {
| `- error: 'Curve25519' is only available in macOS 10.15 or newer
20 | let secret = try Curve25519.Signing.PrivateKey(rawRepresentation: seed)
21 | let publicHex = hexEncode(secret.publicKey.rawRepresentation)
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/Causalontology/Signing.swift:28:13: error: 'Curve25519' is only available in macOS 10.15 or newer
24 |
25 | /// Return the record completed with its id and Ed25519 signature.
26 | public func signRecord(
| `- note: add @available attribute to enclosing global function
27 | _ record: [String: JsonValue],
28 | secret: Curve25519.Signing.PrivateKey,
| `- error: 'Curve25519' is only available in macOS 10.15 or newer
29 | kind: String? = nil
30 | ) throws -> [String: JsonValue] {
[91/91] Compiling Causalontology Canonical.swift
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/Causalontology/Canonical.swift:100:18: error: 'SHA256' is only available in macOS 10.15 or newer
97 |
98 | /// The lowercase SHA-256 hex digest of any bytes.
99 | public func sha256Hex<D: DataProtocol>(_ data: D) -> String {
| `- note: add @available attribute to enclosing global function
100 | let digest = SHA256.hash(data: data)
| |- error: 'SHA256' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
101 | var out = ""
102 | for byte in digest {
<unknown>:0: error: 'makeIterator()' is only available in macOS 10.15 or newer
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/Causalontology/Canonical.swift:100:25: error: 'hash(data:)' is only available in macOS 10.15 or newer
97 |
98 | /// The lowercase SHA-256 hex digest of any bytes.
99 | public func sha256Hex<D: DataProtocol>(_ data: D) -> String {
| `- note: add @available attribute to enclosing global function
100 | let digest = SHA256.hash(data: data)
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
101 | var out = ""
102 | for byte in digest {
BUILD FAILURE 6.1 macosSpm