The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-nostr-client, reference 0.2.0 (72df0b), with Swift 6.3 for Wasm on 14 Apr 2026 07:49:38 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/yysskk/swift-nostr-client.git
Reference: 0.2.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/yysskk/swift-nostr-client
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at 72df0b4 Merge pull request #10 from yysskk/fix/add-SubscriptionEvent
Cloned https://github.com/yysskk/swift-nostr-client.git
Revision (git rev-parse @):
72df0b4ec4978a5a87a384318e6b3224f8268e92
SUCCESS checkout https://github.com/yysskk/swift-nostr-client.git at 0.2.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/yysskk/swift-nostr-client.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/GigaBitcoin/secp256k1.swift
Fetching https://github.com/apple/swift-crypto.git
[1/17340] Fetching swift-crypto
[1562/27658] Fetching swift-crypto, secp256k1.swift
Fetched https://github.com/GigaBitcoin/secp256k1.swift from cache (2.89s)
Fetched https://github.com/apple/swift-crypto.git from cache (3.19s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.3.1 (6.29s)
Fetching https://github.com/apple/swift-asn1.git
[1/1796] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.34s)
Computing version for https://github.com/GigaBitcoin/secp256k1.swift
Computed https://github.com/GigaBitcoin/secp256k1.swift at 0.23.0 (0.87s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.6.0 (0.48s)
Creating working copy for https://github.com/GigaBitcoin/secp256k1.swift
Working copy of https://github.com/GigaBitcoin/secp256k1.swift resolved at 0.23.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.3.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.6.0
[1/1] Compiling plugin SharedSourcesPlugin
Building for debugging...
[1/382] Write sources
[5/382] Compiling CXKCPShims shims.c
[6/382] Compiling SimpleFIPS202.c
[7/382] Compiling KeccakSponge.c
[8/382] Compiling precomputed_ecmult_gen.c
[9/382] Compiling KeccakHash.c
[9/382] Compiling Utility.c
[11/382] Compiling fiat_p256_adx_sqr.S
[12/382] Compiling fiat_curve25519_adx_square.S
[13/382] Compiling fiat_p256_adx_mul.S
[14/382] Compiling md5-x86_64-linux.S
[15/382] Compiling fiat_curve25519_adx_mul.S
[16/382] Compiling md5-x86_64-apple.S
[17/382] Compiling md5-586-linux.S
[18/382] Compiling md5-586-apple.S
[19/382] Compiling chacha20_poly1305_x86_64-linux.S
[20/382] Compiling chacha20_poly1305_x86_64-apple.S
[21/382] Compiling chacha20_poly1305_armv8-linux.S
[22/382] Compiling chacha20_poly1305_armv8-win.S
[23/382] Compiling chacha20_poly1305_armv8-apple.S
[24/382] Compiling chacha-x86_64-linux.S
[25/382] Compiling chacha-x86_64-apple.S
[26/382] Compiling CCryptoBoringSSLShims shims.c
[27/382] Compiling chacha-x86-linux.S
[28/382] Compiling chacha-x86-apple.S
[29/382] Compiling chacha-armv8-win.S
[30/382] Compiling chacha-armv8-linux.S
[31/382] Compiling chacha-armv4-linux.S
[32/382] Compiling chacha-armv8-apple.S
[33/382] Compiling aes128gcmsiv-x86_64-linux.S
[34/382] Compiling aes128gcmsiv-x86_64-apple.S
[35/382] Compiling x86_64-mont5-linux.S
[36/382] Compiling x86_64-mont5-apple.S
[37/382] Compiling x86_64-mont-linux.S
[38/382] Compiling x86_64-mont-apple.S
[39/382] Compiling x86-mont-linux.S
[40/382] Compiling vpaes-x86_64-linux.S
[41/382] Compiling x86-mont-apple.S
[42/382] Compiling vpaes-x86_64-apple.S
[43/382] Compiling secp256k1.c
[44/382] Compiling vpaes-x86-linux.S
[45/382] Compiling vpaes-armv8-win.S
[46/382] Compiling vpaes-x86-apple.S
[47/382] Compiling vpaes-armv8-apple.S
[48/382] Compiling vpaes-armv8-linux.S
[49/382] Compiling sha512-x86_64-linux.S
[50/382] Compiling vpaes-armv7-linux.S
[51/382] Compiling sha512-armv8-win.S
[52/382] Compiling sha512-x86_64-apple.S
[53/382] Compiling sha512-armv8-linux.S
[54/382] Compiling sha512-armv8-apple.S
[55/382] Compiling sha512-armv4-linux.S
[56/382] Compiling err_data.cc
[57/382] Compiling sha512-586-linux.S
[58/382] Compiling sha512-586-apple.S
[59/382] Compiling sha256-x86_64-linux.S
[60/382] Compiling sha256-armv8-win.S
[61/382] Compiling sha256-x86_64-apple.S
[62/382] Compiling sha256-armv8-linux.S
[63/382] Compiling sha256-armv8-apple.S
[64/382] Compiling sha256-armv4-linux.S
[65/382] Compiling sha256-586-linux.S
[66/382] Compiling sha1-armv8-win.S
[67/382] Compiling sha256-586-apple.S
[68/382] Compiling sha1-x86_64-linux.S
[69/382] Compiling sha1-x86_64-apple.S
[70/382] Compiling sha1-armv4-large-linux.S
[71/382] Compiling sha1-armv8-apple.S
[72/382] Compiling sha1-armv8-linux.S
[73/382] Compiling sha1-586-linux.S
[74/382] Compiling sha1-586-apple.S
[75/382] Compiling rsaz-avx2-linux.S
[76/382] Compiling rdrand-x86_64-linux.S
[77/382] Compiling rsaz-avx2-apple.S
[78/382] Compiling rdrand-x86_64-apple.S
[79/382] Compiling p256_beeu-x86_64-asm-linux.S
[80/382] Compiling p256_beeu-armv8-asm-win.S
[81/382] Compiling p256_beeu-x86_64-asm-apple.S
[82/382] Compiling p256_beeu-armv8-asm-linux.S
[83/382] Compiling p256_beeu-armv8-asm-apple.S
[84/382] Compiling p256-x86_64-asm-linux.S
[85/382] Compiling p256-x86_64-asm-apple.S
[86/382] Compiling p256-armv8-asm-linux.S
[87/382] Compiling p256-armv8-asm-win.S
[88/382] Compiling p256-armv8-asm-apple.S
[89/382] Compiling ghashv8-armv8-apple.S
[90/382] Compiling ghashv8-armv8-win.S
[91/382] Compiling ghashv8-armv8-linux.S
[92/382] Compiling ghash-x86_64-linux.S
[93/382] Compiling ghashv8-armv7-linux.S
[94/382] Compiling ghash-x86_64-apple.S
[95/382] Compiling ghash-x86-linux.S
[96/382] Compiling ghash-ssse3-x86_64-apple.S
[97/382] Compiling ghash-x86-apple.S
[98/382] Compiling ghash-ssse3-x86_64-linux.S
[99/382] Compiling ghash-ssse3-x86-apple.S
[100/382] Compiling ghash-ssse3-x86-linux.S
[101/382] Compiling ghash-neon-armv8-linux.S
[102/382] Compiling ghash-neon-armv8-win.S
[103/382] Compiling ghash-neon-armv8-apple.S
[104/382] Compiling co-586-apple.S
[104/382] Compiling co-586-linux.S
[106/382] Compiling ghash-armv4-linux.S
[107/382] Compiling bsaes-armv7-linux.S
[108/382] Compiling bn-armv8-win.S
[109/382] Compiling bn-armv8-linux.S
[110/382] Compiling bn-armv8-apple.S
[111/382] Compiling armv8-mont-win.S
[112/382] Compiling bn-586-apple.S
[113/382] Compiling bn-586-linux.S
[114/382] Compiling armv8-mont-linux.S
[115/382] Compiling armv4-mont-linux.S
[116/382] Compiling armv8-mont-apple.S
[117/382] Compiling aesv8-gcm-armv8-linux.S
[118/382] Compiling aesv8-armv8-win.S
[119/382] Compiling aesv8-gcm-armv8-win.S
[120/382] Compiling aesv8-gcm-armv8-apple.S
[121/382] Compiling aesv8-armv8-apple.S
[122/382] Compiling aesv8-armv8-linux.S
[123/382] Compiling aesni-x86_64-apple.S
[124/382] Compiling aesv8-armv7-linux.S
[125/382] Compiling aesni-x86_64-linux.S
[126/382] Compiling aesni-x86-apple.S
[127/382] Compiling aesni-x86-linux.S
[128/382] Compiling aesni-gcm-x86_64-linux.S
[129/382] Compiling aesni-gcm-x86_64-apple.S
[130/382] Compiling aes-gcm-avx512-x86_64-linux.S
[131/382] Compiling aes-gcm-avx512-x86_64-apple.S
[132/382] Compiling aes-gcm-avx2-x86_64-linux.S
[133/382] Compiling aes-gcm-avx2-x86_64-apple.S
[134/382] Compiling xwing.cc
[135/382] Compiling x_x509a.cc
[136/382] Compiling x_sig.cc
[137/382] Compiling x_x509.cc
[138/382] Compiling x_spki.cc
[139/382] Compiling precomputed_ecmult.c
[140/382] Write swift-version-24593BA9C3E375BF.txt
[141/382] Compiling x_req.cc
[142/383] Compiling x_name.cc
[143/439] Compiling x_pubkey.cc
[144/439] Compiling x_exten.cc
[145/439] Compiling x_crl.cc
[146/439] Compiling x_algor.cc
[147/439] Compiling x_attrib.cc
[148/439] Compiling x_all.cc
[149/439] Compiling KeccakP-1600-opt64.c
[150/439] Compiling x509spki.cc
[151/439] Compiling x509_v3.cc
[152/439] Compiling x509name.cc
[153/439] Compiling x509rset.cc
[154/439] Compiling x509cset.cc
[155/439] Compiling x509_vpm.cc
[156/439] Compiling x509_vfy.cc
[157/439] Compiling x509_req.cc
[158/439] Compiling x509_trs.cc
[159/439] Compiling x509_txt.cc
[160/439] Compiling x509_obj.cc
[162/439] Emitting module P256K
[162/447] Compiling x509_set.cc
[163/447] Compiling x509_lu.cc
[164/447] Compiling x509_ext.cc
[165/447] Compiling x509_def.cc
[166/447] Compiling x509_att.cc
[167/447] Compiling x509_d2.cc
[168/447] Compiling x509.cc
[169/447] Compiling x509_cmp.cc
[170/447] Compiling v3_skey.cc
[171/447] Compiling v3_utl.cc
[172/447] Compiling v3_pmaps.cc
[173/447] Compiling v3_purp.cc
[174/447] Compiling v3_prn.cc
[175/447] Compiling v3_pcons.cc
[176/447] Compiling v3_ocsp.cc
[177/447] Compiling v3_ncons.cc
[178/447] Compiling v3_info.cc
[179/447] Compiling v3_lib.cc
[180/447] Compiling v3_int.cc
[181/447] Compiling v3_genn.cc
[182/447] Compiling v3_ia5.cc
[183/447] Compiling v3_enum.cc
[184/447] Compiling v3_conf.cc
[185/447] Compiling v3_extku.cc
[186/447] Compiling v3_crld.cc
[187/447] Compiling v3_cpols.cc
[189/447] Compiling P256K UInt256+Arithmetic.swift
[190/447] Compiling P256K UInt256+FixedWidthInteger.swift
[191/447] Compiling P256K UInt256+Modular.swift
[192/447] Compiling P256K UInt256+Representation.swift
[193/447] Compiling P256K UInt256.swift
[194/447] Compiling P256K Utility.swift
[195/447] Compiling P256K XonlyKeyImplementation.swift
[196/447] Compiling P256K Zeroization.swift
[196/447] Compiling v3_alt.cc
[198/447] Compiling P256K MuSig.swift
[199/447] Compiling P256K ObjectIdentifier.swift
[200/447] Compiling P256K P256K.swift
[201/447] Compiling P256K PEMDocument.swift
[202/447] Compiling P256K PKCS8PrivateKey.swift
[203/447] Compiling P256K PrettyBytes.swift
[204/447] Compiling P256K PrivateKeyImplementation.swift
[205/447] Compiling P256K PublicKeyImplementation.swift
[206/447] Compiling P256K EdDSA.swift
[207/447] Compiling P256K Errors.swift
[208/447] Compiling P256K GeneralizedTime.swift
[209/447] Compiling P256K HashDigest.swift
[210/447] Compiling P256K MuSig+Aggregate.swift
[211/447] Compiling P256K MuSig+Nonces.swift
[212/447] Compiling P256K MuSig+Signing.swift
[213/447] Compiling P256K MuSig+Tweak.swift
[213/447] Compiling v3_bitst.cc
[214/447] Compiling P256K RNG_boring.swift
[215/447] Compiling P256K Recovery+Signature.swift
[216/447] Compiling P256K Recovery.swift
[217/447] Compiling P256K SEC1PrivateKey.swift
[218/447] Compiling P256K SHA256.swift
[219/447] Compiling P256K SafeCompare.swift
[220/447] Compiling P256K Schnorr+Nonces.swift
[221/447] Compiling P256K Schnorr+PrivateKey.swift
[222/447] Compiling P256K ECDH.swift
[223/447] Compiling P256K ECDSA+PrivateKey.swift
[224/447] Compiling P256K ECDSA+PublicKey.swift
[225/447] Compiling P256K ECDSA+Signature.swift
[226/447] Compiling P256K ECDSA+Tweak.swift
[227/447] Compiling P256K ECDSA+XonlyKey.swift
[228/447] Compiling P256K ECDSA.swift
[229/447] Compiling P256K ECDSASignature.swift
[230/447] Compiling P256K Schnorr+PublicKey.swift
[231/447] Compiling P256K Schnorr+Signature.swift
[233/447] Compiling P256K Schnorr+Tweak.swift
[234/447] Compiling P256K Schnorr+XonlyKey.swift
[235/447] Compiling P256K Schnorr.swift
[236/447] Compiling P256K SecureBytes.swift
[237/447] Compiling P256K Signature.swift
[238/447] Compiling P256K SubjectPublicKeyInfo.swift
[238/447] Compiling v3_akeya.cc
[239/447] Compiling v3_bcons.cc
[240/447] Compiling v3_akey.cc
[242/447] Compiling P256K Placeholder.swift
[243/447] Compiling P256K ASN1.swift
[244/447] Compiling P256K ASN1Any.swift
[245/447] Compiling P256K ASN1BitString.swift
[246/447] Compiling P256K ASN1Boolean.swift
[247/447] Compiling P256K ASN1Identifier.swift
[248/447] Compiling P256K ASN1Integer.swift
[249/447] Compiling P256K ASN1Null.swift
[250/447] Compiling P256K ASN1OctetString.swift
[251/447] Compiling P256K ASN1Strings.swift
[252/447] Compiling P256K ArraySliceBigint.swift
[253/447] Compiling P256K Combine.swift
[254/447] Compiling P256K Context.swift
[255/447] Compiling P256K CryptoKitErrors.swift
[256/447] Compiling P256K DH.swift
[257/447] Compiling P256K Digest.swift
[258/448] Compiling t_x509a.cc
[259/448] Compiling t_x509.cc
[260/448] Compiling t_req.cc
[261/448] Compiling name_print.cc
[262/448] Compiling t_crl.cc
[263/448] Compiling i2d_pr.cc
[264/448] Compiling rsa_pss.cc
[265/448] Compiling policy.cc
[266/448] Compiling by_dir.cc
[267/448] Compiling by_file.cc
[268/448] Compiling a_sign.cc
[269/448] Compiling asn1_gen.cc
[270/448] Compiling a_verify.cc
[271/448] Compiling a_digest.cc
[272/448] Compiling voprf.cc
[273/448] Compiling algorithm.cc
[274/448] Compiling trust_token.cc
[275/448] Compiling thread_none.cc
[276/448] Compiling pmbtoken.cc
[277/448] Compiling thread_win.cc
[278/448] Compiling thread_pthread.cc
[279/448] Compiling thread.cc
[280/448] Compiling stack.cc
[281/448] Compiling siphash.cc
[282/448] Compiling spake2plus.cc
[283/448] Compiling slhdsa.cc
[284/448] Compiling sha1.cc
[285/448] Compiling sha512.cc
[286/448] Compiling sha256.cc
[287/448] Compiling rsa_print.cc
[288/448] Compiling rsa_extra.cc
[289/448] Compiling rsa_crypt.cc
[290/448] Compiling trusty.cc
[291/448] Compiling refcount.cc
[292/448] Compiling urandom.cc
[293/448] Compiling rc4.cc
[294/448] Compiling windows.cc
[295/448] Compiling rsa_asn1.cc
[296/448] Compiling rand.cc
[297/448] Compiling passive.cc
[298/448] Compiling poly1305_arm_asm.S
[299/448] Compiling deterministic.cc
[300/448] Compiling getentropy.cc
[301/448] Compiling ios.cc
[302/448] Compiling forkunsafe.cc
[303/448] Compiling fork_detect.cc
[304/448] Compiling poly1305_vec.cc
[305/448] Compiling poly1305_arm.cc
[306/448] Compiling poly1305.cc
[307/448] Compiling pool.cc
[308/448] Compiling p5_pbev2.cc
[309/448] Compiling pkcs8.cc
[310/448] Compiling pkcs7_x509.cc
[311/448] Compiling pkcs7.cc
[312/448] Compiling pkcs8_x509.cc
[313/448] Compiling pem_pk8.cc
[314/448] Compiling pem_xaux.cc
[315/448] Compiling pem_x509.cc
[316/448] Compiling pem_pkey.cc
[317/448] Compiling obj_xref.cc
[318/448] Compiling pem_lib.cc
[319/448] Compiling pem_oth.cc
[320/448] Compiling mldsa.cc
[321/448] Compiling mlkem.cc
[322/448] Compiling pem_info.cc
[323/448] Compiling pem_all.cc
[324/448] Compiling poly_rq_mul.S
[325/448] Compiling obj.cc
[326/448] Compiling mem.cc
[327/448] Compiling fips_shared_support.cc
[328/448] Compiling lhash.cc
[329/448] Compiling md4.cc
[330/448] Compiling hrss.cc
[331/448] Compiling md5.cc
[332/448] Compiling kyber.cc
[333/448] Compiling fuzzer_mode.cc
[334/448] Compiling hpke.cc
[335/448] Compiling ex_data.cc
[336/448] Compiling scrypt.cc
[337/448] Compiling pbkdf.cc
[338/448] Compiling sign.cc
[339/448] Compiling print.cc
[340/448] Compiling p_hkdf.cc
[341/448] Compiling p_x25519_asn1.cc
[342/448] Compiling p_x25519.cc
[343/448] Compiling p_ec_asn1.cc
[344/448] Compiling p_ed25519_asn1.cc
[345/448] Compiling p_rsa_asn1.cc
[346/448] Compiling p_rsa.cc
[347/448] Compiling p_ed25519.cc
[348/448] Compiling p_dsa_asn1.cc
[349/448] Compiling p_ec.cc
[350/448] Compiling p_dh.cc
[351/448] Compiling p_dh_asn1.cc
[352/448] Compiling evp_ctx.cc
[353/448] Compiling evp_asn1.cc
[354/448] Compiling err.cc
[355/448] Compiling evp.cc
[356/448] Compiling ecdsa_p1363.cc
[357/448] Compiling engine.cc
[358/448] Compiling ecdh.cc
[359/448] Compiling hash_to_curve.cc
[360/448] Compiling ecdsa_asn1.cc
[361/448] Compiling ec_derive.cc
[362/448] Compiling dsa.cc
[363/448] Compiling des.cc
[364/448] Compiling ec_asn1.cc
[365/448] Compiling bcm.cc
[366/448] Compiling dsa_asn1.cc
[367/448] Compiling x25519-asm-arm.S
[368/448] Compiling params.cc
[369/448] Compiling digest_extra.cc
[370/448] Compiling spake25519.cc
[371/448] Compiling dh_asn1.cc
[372/448] Compiling curve25519_64_adx.cc
[373/448] Compiling crypto.cc
[374/448] Compiling cpu_arm_freebsd.cc
[375/448] Compiling cpu_intel.cc
[376/448] Compiling cpu_arm_linux.cc
[377/448] Compiling cpu_aarch64_linux.cc
[378/448] Compiling cpu_aarch64_win.cc
[379/448] Compiling curve25519.cc
[380/448] Compiling cpu_aarch64_sysreg.cc
[381/448] Compiling cpu_aarch64_fuchsia.cc
[382/448] Compiling cpu_aarch64_apple.cc
[383/448] Compiling cpu_aarch64_openbsd.cc
[384/448] Compiling conf.cc
[385/448] Compiling e_rc2.cc
[386/448] Compiling get_cipher.cc
[387/448] Compiling e_tls.cc
[388/448] Compiling tls_cbc.cc
[389/448] Compiling e_rc4.cc
[390/448] Compiling e_des.cc
[391/448] Compiling e_null.cc
[392/448] Compiling cms.cc
[393/448] Compiling e_chacha20poly1305.cc
[394/448] Compiling e_aeseax.cc
[395/448] Compiling e_aesgcmsiv.cc
[396/448] Compiling derive_key.cc
[397/448] Compiling chacha.cc
[398/448] Compiling e_aesctrhmac.cc
[399/448] Compiling cbb.cc
[400/448] Compiling unicode.cc
[401/448] Compiling asn1_compat.cc
[402/448] Compiling cbs.cc
[403/448] Compiling buf.cc
[404/448] Compiling exponentiation.cc
[405/448] Compiling sqrt.cc
[406/448] Compiling ber.cc
[407/448] Compiling div.cc
[408/448] Compiling convert.cc
[409/448] Compiling blake2.cc
[410/448] Compiling hexdump.cc
[411/448] Compiling printf.cc
[412/448] Compiling bn_asn1.cc
[413/448] Compiling pair.cc
[414/448] Compiling fd.cc
[415/448] Compiling file.cc
[416/448] Compiling bio_mem.cc
[417/448] Compiling errno.cc
[418/448] Compiling bio.cc
[419/448] Compiling base64.cc
[420/448] Compiling tasn_typ.cc
[421/448] Compiling tasn_new.cc
[422/448] Compiling tasn_fre.cc
[423/448] Compiling tasn_utl.cc
[424/448] Compiling tasn_enc.cc
[425/448] Compiling posix_time.cc
[426/448] Compiling f_string.cc
[427/448] Compiling tasn_dec.cc
[428/448] Compiling f_int.cc
[429/448] Compiling asn_pack.cc
[430/448] Compiling asn1_par.cc
[431/448] Compiling asn1_lib.cc
[432/448] Compiling a_utctm.cc
[433/448] Compiling a_type.cc
[434/448] Compiling a_time.cc
[435/448] Compiling a_strex.cc
[436/448] Compiling a_strnid.cc
[437/448] Compiling a_octet.cc
[438/448] Compiling a_mbstr.cc
[439/448] Compiling a_object.cc
[440/448] Compiling a_i2d_fp.cc
[441/448] Compiling a_int.cc
[442/448] Compiling a_d2i_fp.cc
[443/448] Compiling a_dup.cc
[444/448] Compiling aes.cc
[445/448] Compiling a_bool.cc
[446/448] Compiling a_gentm.cc
[447/448] Compiling a_bitstr.cc
[449/456] Compiling CryptoBoringWrapper RandomBytes.swift
[450/456] Compiling CryptoBoringWrapper CryptoKitErrors_boring.swift
[451/456] Compiling CryptoBoringWrapper EllipticCurve.swift
[452/456] Compiling CryptoBoringWrapper BoringSSLAEAD.swift
[453/456] Emitting module CryptoBoringWrapper
[454/456] Compiling CryptoBoringWrapper FiniteFieldArithmeticContext.swift
[455/456] Compiling CryptoBoringWrapper ArbitraryPrecisionInteger.swift
[456/456] Compiling CryptoBoringWrapper EllipticCurvePoint.swift
[458/540] Compiling Crypto HPKE-LabeledExtract.swift
[459/540] Compiling Crypto HPKE-Utils.swift
[460/540] Compiling Crypto DHKEM.swift
[461/540] Compiling Crypto HPKE-KEM-Curve25519.swift
[462/540] Compiling Crypto HPKE-NIST-EC-KEMs.swift
[463/540] Compiling Crypto HPKE-KEM.swift
[464/540] Compiling Crypto HPKE-Errors.swift
[465/540] Compiling Crypto HPKE.swift
[466/540] Compiling Crypto HPKE-Context.swift
[467/540] Compiling Crypto HPKE-KeySchedule.swift
[468/540] Compiling Crypto HPKE-Modes.swift
[469/540] Compiling Crypto Insecure.swift
[470/551] Compiling Crypto HKDF.swift
[471/551] Compiling Crypto AESWrap.swift
[472/551] Compiling Crypto AESWrap_boring.swift
[473/551] Compiling Crypto Ed25519_boring.swift
[474/551] Compiling Crypto NISTCurvesKeys_boring.swift
[475/551] Compiling Crypto X25519Keys_boring.swift
[476/551] Compiling Crypto Curve25519.swift
[477/551] Compiling Crypto Ed25519Keys.swift
[478/551] Compiling Crypto NISTCurvesKeys.swift
[479/551] Compiling Crypto X25519Keys.swift
[480/551] Compiling Crypto SymmetricKeys.swift
[481/551] Compiling Crypto CryptoKitErrors.swift
[482/551] Compiling Crypto Digest_boring.swift
[483/551] Compiling Crypto Digest.swift
[484/551] Compiling Crypto Digests.swift
[485/551] Compiling Crypto HashFunctions.swift
[486/551] Compiling Crypto HashFunctions_SHA2.swift
[487/551] Compiling Crypto HashFunctions_SHA3.swift
[488/551] Compiling Crypto Digest_xkcp.swift
[489/551] Compiling Crypto HPKE-AEAD.swift
[490/551] Compiling Crypto HPKE-Ciphersuite.swift
[491/551] Compiling Crypto HPKE-KDF.swift
[492/551] Compiling Crypto HPKE-KexKeyDerivation.swift
[493/551] Compiling Crypto ASN1Null.swift
[494/551] Compiling Crypto ASN1OctetString.swift
[495/551] Compiling Crypto ASN1Strings.swift
[496/551] Compiling Crypto ArraySliceBigint.swift
[497/551] Compiling Crypto GeneralizedTime.swift
[498/551] Compiling Crypto ObjectIdentifier.swift
[499/551] Compiling Crypto ECDSASignature.swift
[500/551] Compiling Crypto PEMDocument.swift
[501/551] Compiling Crypto PKCS8PrivateKey.swift
[502/551] Compiling Crypto SEC1PrivateKey.swift
[503/551] Compiling Crypto SubjectPublicKeyInfo.swift
[504/551] Compiling Crypto CryptoError_boring.swift
[505/551] Emitting module Crypto
[506/551] Compiling Crypto AES-GCM.swift
[507/551] Compiling Crypto AES-GCM_boring.swift
[508/551] Compiling Crypto ChaChaPoly_boring.swift
[509/551] Compiling Crypto ChaChaPoly.swift
[510/551] Compiling Crypto Cipher.swift
[511/551] Compiling Crypto Nonces.swift
[512/551] Compiling Crypto ASN1.swift
[513/551] Compiling Crypto ASN1Any.swift
[514/551] Compiling Crypto ASN1BitString.swift
[515/551] Compiling Crypto ASN1Boolean.swift
[516/551] Compiling Crypto ASN1Identifier.swift
[517/551] Compiling Crypto ASN1Integer.swift
[518/551] Compiling Crypto MLDSA.swift
[519/551] Compiling Crypto Signature.swift
[520/551] Compiling Crypto CryptoKitErrors_boring.swift
[521/551] Compiling Crypto Optional+withUnsafeBytes_boring.swift
[522/551] Compiling Crypto RNG_boring.swift
[523/551] Compiling Crypto SafeCompare_boring.swift
[524/551] Compiling Crypto Zeroization_boring.swift
[525/551] Compiling Crypto PrettyBytes.swift
[526/551] Compiling Crypto SafeCompare.swift
[527/551] Compiling Crypto SecureBytes.swift
[528/551] Compiling Crypto Zeroization.swift
[529/551] Compiling Crypto Insecure_HashFunctions.swift
[530/551] Compiling Crypto MLKEM_boring.swift
[531/551] Compiling Crypto MLKEM_wrapper.swift
[532/551] Compiling Crypto XWing_boring.swift
[533/551] Compiling Crypto KEM-Errors.swift
[534/551] Compiling Crypto KEM.swift
[535/551] Compiling Crypto MLKEM.swift
[536/551] Compiling Crypto XWing.swift
[537/551] Compiling Crypto ECDH_boring.swift
[538/551] Compiling Crypto DH.swift
[539/551] Compiling Crypto ECDH.swift
[540/551] Compiling Crypto ANSIx963.swift
[541/551] Compiling Crypto HMAC.swift
[542/551] Compiling Crypto MACFunctions.swift
[543/551] Compiling Crypto MessageAuthenticationCode.swift
[544/551] Compiling Crypto AES.swift
[545/551] Compiling Crypto ECDSASignature_boring.swift
[546/551] Compiling Crypto ECDSA_boring.swift
[547/551] Compiling Crypto EdDSA_boring.swift
[548/551] Compiling Crypto MLDSA_boring.swift
[549/551] Compiling Crypto MLDSA_wrapper.swift
[550/551] Compiling Crypto ECDSA.swift
[551/551] Compiling Crypto Ed25519.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[553/579] Emitting module NostrClient
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:18:32: error: cannot find type 'URLSessionWebSocketTask' in scope
 16 |
 17 |     /// The WebSocket task
 18 |     private var webSocketTask: URLSessionWebSocketTask?
    |                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
 19 |
 20 |     /// URL session for WebSocket connections
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:21:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |
 20 |     /// URL session for WebSocket connections
 21 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |
 23 |     /// Connection configuration
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:47:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |     private var pendingPublishWaiters: [String: CheckedContinuation<Void, Error>] = [:]
 46 |
 47 |     public init(url: URL, urlSession: URLSession = .shared, config: RelayConnectionConfig = .default) {
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |         self.url = url
 49 |         self.urlSession = urlSession
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:47:53: error: value of type '_' expected to be instance of class or class-constrained type
 45 |     private var pendingPublishWaiters: [String: CheckedContinuation<Void, Error>] = [:]
 46 |
 47 |     public init(url: URL, urlSession: URLSession = .shared, config: RelayConnectionConfig = .default) {
    |                                                     `- error: value of type '_' expected to be instance of class or class-constrained type
 48 |         self.url = url
 49 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:47:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 45 |     private var pendingPublishWaiters: [String: CheckedContinuation<Void, Error>] = [:]
 46 |
 47 |     public init(url: URL, urlSession: URLSession = .shared, config: RelayConnectionConfig = .default) {
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 48 |         self.url = url
 49 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:59:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |         }
 58 |         self.url = url
 59 |         self.urlSession = .shared
    |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 60 |         self.config = config
 61 |         self.currentReconnectDelay = config.initialReconnectDelay
[554/582] Compiling NostrClient RelayConnection.swift
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:18:32: error: cannot find type 'URLSessionWebSocketTask' in scope
 16 |
 17 |     /// The WebSocket task
 18 |     private var webSocketTask: URLSessionWebSocketTask?
    |                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
 19 |
 20 |     /// URL session for WebSocket connections
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:21:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |
 20 |     /// URL session for WebSocket connections
 21 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |
 23 |     /// Connection configuration
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:47:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |     private var pendingPublishWaiters: [String: CheckedContinuation<Void, Error>] = [:]
 46 |
 47 |     public init(url: URL, urlSession: URLSession = .shared, config: RelayConnectionConfig = .default) {
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |         self.url = url
 49 |         self.urlSession = urlSession
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:47:53: error: value of type '_' expected to be instance of class or class-constrained type
 45 |     private var pendingPublishWaiters: [String: CheckedContinuation<Void, Error>] = [:]
 46 |
 47 |     public init(url: URL, urlSession: URLSession = .shared, config: RelayConnectionConfig = .default) {
    |                                                     `- error: value of type '_' expected to be instance of class or class-constrained type
 48 |         self.url = url
 49 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:47:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 45 |     private var pendingPublishWaiters: [String: CheckedContinuation<Void, Error>] = [:]
 46 |
 47 |     public init(url: URL, urlSession: URLSession = .shared, config: RelayConnectionConfig = .default) {
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 48 |         self.url = url
 49 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:59:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |         }
 58 |         self.url = url
 59 |         self.urlSession = .shared
    |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 60 |         self.config = config
 61 |         self.currentReconnectDelay = config.initialReconnectDelay
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:73:23: error: cannot find 'URLRequest' in scope
 71 |         updateState(.connecting)
 72 |
 73 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 74 |         request.setValue("websocket", forHTTPHeaderField: "Upgrade")
 75 |         request.timeoutInterval = config.connectionTimeout
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:77:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 75 |         request.timeoutInterval = config.connectionTimeout
 76 |
 77 |         let task = urlSession.webSocketTask(with: request)
    |                               `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 78 |         webSocketTask = task
 79 |         task.resume()
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:112:42: error: cannot infer contextual base in reference to member 'abnormalClosure'
110 |         } catch {
111 |             updateState(.failed(error.localizedDescription))
112 |             webSocketTask?.cancel(with: .abnormalClosure, reason: nil)
    |                                          `- error: cannot infer contextual base in reference to member 'abnormalClosure'
113 |             webSocketTask = nil
114 |             throw NostrError.connectionFailed(error.localizedDescription)
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:112:67: error: 'nil' requires a contextual type
110 |         } catch {
111 |             updateState(.failed(error.localizedDescription))
112 |             webSocketTask?.cancel(with: .abnormalClosure, reason: nil)
    |                                                                   `- error: 'nil' requires a contextual type
113 |             webSocketTask = nil
114 |             throw NostrError.connectionFailed(error.localizedDescription)
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:131:38: error: cannot infer contextual base in reference to member 'normalClosure'
129 |
130 |         updateState(.disconnecting)
131 |         webSocketTask?.cancel(with: .normalClosure, reason: nil)
    |                                      `- error: cannot infer contextual base in reference to member 'normalClosure'
132 |         webSocketTask = nil
133 |         subscriptions.removeAll()
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:131:61: error: 'nil' requires a contextual type
129 |
130 |         updateState(.disconnecting)
131 |         webSocketTask?.cancel(with: .normalClosure, reason: nil)
    |                                                             `- error: 'nil' requires a contextual type
132 |         webSocketTask = nil
133 |         subscriptions.removeAll()
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:157:42: error: cannot infer contextual base in reference to member 'string'
155 |             try await withThrowingTaskGroup(of: Void.self) { group in
156 |                 group.addTask {
157 |                     try await task.send(.string(text))
    |                                          `- error: cannot infer contextual base in reference to member 'string'
158 |                 }
159 |
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:200:37: warning: no 'async' operations occur within 'await' expression
198 |                     try await self.send(.event(event))
199 |                 } catch {
200 |                     if let waiter = await self.removePublishWaiter(eventId: event.id) {
    |                                     `- warning: no 'async' operations occur within 'await' expression
201 |                         waiter.resume(throwing: error)
202 |                     }
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:208:33: warning: no 'async' operations occur within 'await' expression
206 |             Task {
207 |                 try? await Task.sleep(for: .seconds(self.config.operationTimeout))
208 |                 if let waiter = await self.removePublishWaiter(eventId: event.id) {
    |                                 `- warning: no 'async' operations occur within 'await' expression
209 |                     waiter.resume(throwing: NostrError.timeout)
210 |                 }
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:303:71: error: cannot find 'URLSessionWebSocketTask' in scope
301 |
302 |                     // Receive with timeout
303 |                     let message = try await withThrowingTaskGroup(of: URLSessionWebSocketTask.Message.self) { group in
    |                                                                       `- error: cannot find 'URLSessionWebSocketTask' in scope
304 |                         group.addTask {
305 |                             try await task.receive()
[555/582] Compiling NostrClient RelayConnectionConfig.swift
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:18:32: error: cannot find type 'URLSessionWebSocketTask' in scope
 16 |
 17 |     /// The WebSocket task
 18 |     private var webSocketTask: URLSessionWebSocketTask?
    |                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
 19 |
 20 |     /// URL session for WebSocket connections
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:21:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |
 20 |     /// URL session for WebSocket connections
 21 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |
 23 |     /// Connection configuration
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:47:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |     private var pendingPublishWaiters: [String: CheckedContinuation<Void, Error>] = [:]
 46 |
 47 |     public init(url: URL, urlSession: URLSession = .shared, config: RelayConnectionConfig = .default) {
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |         self.url = url
 49 |         self.urlSession = urlSession
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:47:53: error: value of type '_' expected to be instance of class or class-constrained type
 45 |     private var pendingPublishWaiters: [String: CheckedContinuation<Void, Error>] = [:]
 46 |
 47 |     public init(url: URL, urlSession: URLSession = .shared, config: RelayConnectionConfig = .default) {
    |                                                     `- error: value of type '_' expected to be instance of class or class-constrained type
 48 |         self.url = url
 49 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:47:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 45 |     private var pendingPublishWaiters: [String: CheckedContinuation<Void, Error>] = [:]
 46 |
 47 |     public init(url: URL, urlSession: URLSession = .shared, config: RelayConnectionConfig = .default) {
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 48 |         self.url = url
 49 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:59:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |         }
 58 |         self.url = url
 59 |         self.urlSession = .shared
    |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 60 |         self.config = config
 61 |         self.currentReconnectDelay = config.initialReconnectDelay
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:73:23: error: cannot find 'URLRequest' in scope
 71 |         updateState(.connecting)
 72 |
 73 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 74 |         request.setValue("websocket", forHTTPHeaderField: "Upgrade")
 75 |         request.timeoutInterval = config.connectionTimeout
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:77:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 75 |         request.timeoutInterval = config.connectionTimeout
 76 |
 77 |         let task = urlSession.webSocketTask(with: request)
    |                               `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 78 |         webSocketTask = task
 79 |         task.resume()
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:112:42: error: cannot infer contextual base in reference to member 'abnormalClosure'
110 |         } catch {
111 |             updateState(.failed(error.localizedDescription))
112 |             webSocketTask?.cancel(with: .abnormalClosure, reason: nil)
    |                                          `- error: cannot infer contextual base in reference to member 'abnormalClosure'
113 |             webSocketTask = nil
114 |             throw NostrError.connectionFailed(error.localizedDescription)
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:112:67: error: 'nil' requires a contextual type
110 |         } catch {
111 |             updateState(.failed(error.localizedDescription))
112 |             webSocketTask?.cancel(with: .abnormalClosure, reason: nil)
    |                                                                   `- error: 'nil' requires a contextual type
113 |             webSocketTask = nil
114 |             throw NostrError.connectionFailed(error.localizedDescription)
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:131:38: error: cannot infer contextual base in reference to member 'normalClosure'
129 |
130 |         updateState(.disconnecting)
131 |         webSocketTask?.cancel(with: .normalClosure, reason: nil)
    |                                      `- error: cannot infer contextual base in reference to member 'normalClosure'
132 |         webSocketTask = nil
133 |         subscriptions.removeAll()
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:131:61: error: 'nil' requires a contextual type
129 |
130 |         updateState(.disconnecting)
131 |         webSocketTask?.cancel(with: .normalClosure, reason: nil)
    |                                                             `- error: 'nil' requires a contextual type
132 |         webSocketTask = nil
133 |         subscriptions.removeAll()
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:157:42: error: cannot infer contextual base in reference to member 'string'
155 |             try await withThrowingTaskGroup(of: Void.self) { group in
156 |                 group.addTask {
157 |                     try await task.send(.string(text))
    |                                          `- error: cannot infer contextual base in reference to member 'string'
158 |                 }
159 |
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:200:37: warning: no 'async' operations occur within 'await' expression
198 |                     try await self.send(.event(event))
199 |                 } catch {
200 |                     if let waiter = await self.removePublishWaiter(eventId: event.id) {
    |                                     `- warning: no 'async' operations occur within 'await' expression
201 |                         waiter.resume(throwing: error)
202 |                     }
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:208:33: warning: no 'async' operations occur within 'await' expression
206 |             Task {
207 |                 try? await Task.sleep(for: .seconds(self.config.operationTimeout))
208 |                 if let waiter = await self.removePublishWaiter(eventId: event.id) {
    |                                 `- warning: no 'async' operations occur within 'await' expression
209 |                     waiter.resume(throwing: NostrError.timeout)
210 |                 }
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:303:71: error: cannot find 'URLSessionWebSocketTask' in scope
301 |
302 |                     // Receive with timeout
303 |                     let message = try await withThrowingTaskGroup(of: URLSessionWebSocketTask.Message.self) { group in
    |                                                                       `- error: cannot find 'URLSessionWebSocketTask' in scope
304 |                         group.addTask {
305 |                             try await task.receive()
[556/582] Compiling NostrClient RelayConnectionState.swift
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:18:32: error: cannot find type 'URLSessionWebSocketTask' in scope
 16 |
 17 |     /// The WebSocket task
 18 |     private var webSocketTask: URLSessionWebSocketTask?
    |                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
 19 |
 20 |     /// URL session for WebSocket connections
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:21:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |
 20 |     /// URL session for WebSocket connections
 21 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |
 23 |     /// Connection configuration
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:47:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |     private var pendingPublishWaiters: [String: CheckedContinuation<Void, Error>] = [:]
 46 |
 47 |     public init(url: URL, urlSession: URLSession = .shared, config: RelayConnectionConfig = .default) {
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |         self.url = url
 49 |         self.urlSession = urlSession
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:47:53: error: value of type '_' expected to be instance of class or class-constrained type
 45 |     private var pendingPublishWaiters: [String: CheckedContinuation<Void, Error>] = [:]
 46 |
 47 |     public init(url: URL, urlSession: URLSession = .shared, config: RelayConnectionConfig = .default) {
    |                                                     `- error: value of type '_' expected to be instance of class or class-constrained type
 48 |         self.url = url
 49 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:47:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 45 |     private var pendingPublishWaiters: [String: CheckedContinuation<Void, Error>] = [:]
 46 |
 47 |     public init(url: URL, urlSession: URLSession = .shared, config: RelayConnectionConfig = .default) {
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 48 |         self.url = url
 49 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:59:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |         }
 58 |         self.url = url
 59 |         self.urlSession = .shared
    |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 60 |         self.config = config
 61 |         self.currentReconnectDelay = config.initialReconnectDelay
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:73:23: error: cannot find 'URLRequest' in scope
 71 |         updateState(.connecting)
 72 |
 73 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 74 |         request.setValue("websocket", forHTTPHeaderField: "Upgrade")
 75 |         request.timeoutInterval = config.connectionTimeout
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:77:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 75 |         request.timeoutInterval = config.connectionTimeout
 76 |
 77 |         let task = urlSession.webSocketTask(with: request)
    |                               `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 78 |         webSocketTask = task
 79 |         task.resume()
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:112:42: error: cannot infer contextual base in reference to member 'abnormalClosure'
110 |         } catch {
111 |             updateState(.failed(error.localizedDescription))
112 |             webSocketTask?.cancel(with: .abnormalClosure, reason: nil)
    |                                          `- error: cannot infer contextual base in reference to member 'abnormalClosure'
113 |             webSocketTask = nil
114 |             throw NostrError.connectionFailed(error.localizedDescription)
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:112:67: error: 'nil' requires a contextual type
110 |         } catch {
111 |             updateState(.failed(error.localizedDescription))
112 |             webSocketTask?.cancel(with: .abnormalClosure, reason: nil)
    |                                                                   `- error: 'nil' requires a contextual type
113 |             webSocketTask = nil
114 |             throw NostrError.connectionFailed(error.localizedDescription)
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:131:38: error: cannot infer contextual base in reference to member 'normalClosure'
129 |
130 |         updateState(.disconnecting)
131 |         webSocketTask?.cancel(with: .normalClosure, reason: nil)
    |                                      `- error: cannot infer contextual base in reference to member 'normalClosure'
132 |         webSocketTask = nil
133 |         subscriptions.removeAll()
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:131:61: error: 'nil' requires a contextual type
129 |
130 |         updateState(.disconnecting)
131 |         webSocketTask?.cancel(with: .normalClosure, reason: nil)
    |                                                             `- error: 'nil' requires a contextual type
132 |         webSocketTask = nil
133 |         subscriptions.removeAll()
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:157:42: error: cannot infer contextual base in reference to member 'string'
155 |             try await withThrowingTaskGroup(of: Void.self) { group in
156 |                 group.addTask {
157 |                     try await task.send(.string(text))
    |                                          `- error: cannot infer contextual base in reference to member 'string'
158 |                 }
159 |
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:200:37: warning: no 'async' operations occur within 'await' expression
198 |                     try await self.send(.event(event))
199 |                 } catch {
200 |                     if let waiter = await self.removePublishWaiter(eventId: event.id) {
    |                                     `- warning: no 'async' operations occur within 'await' expression
201 |                         waiter.resume(throwing: error)
202 |                     }
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:208:33: warning: no 'async' operations occur within 'await' expression
206 |             Task {
207 |                 try? await Task.sleep(for: .seconds(self.config.operationTimeout))
208 |                 if let waiter = await self.removePublishWaiter(eventId: event.id) {
    |                                 `- warning: no 'async' operations occur within 'await' expression
209 |                     waiter.resume(throwing: NostrError.timeout)
210 |                 }
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:303:71: error: cannot find 'URLSessionWebSocketTask' in scope
301 |
302 |                     // Receive with timeout
303 |                     let message = try await withThrowingTaskGroup(of: URLSessionWebSocketTask.Message.self) { group in
    |                                                                       `- error: cannot find 'URLSessionWebSocketTask' in scope
304 |                         group.addTask {
305 |                             try await task.receive()
[557/582] Compiling NostrClient RelayPool.swift
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:47:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 45 |     private var pendingPublishWaiters: [String: CheckedContinuation<Void, Error>] = [:]
 46 |
 47 |     public init(url: URL, urlSession: URLSession = .shared, config: RelayConnectionConfig = .default) {
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 48 |         self.url = url
 49 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:47:53: error: value of type '_' expected to be instance of class or class-constrained type
 45 |     private var pendingPublishWaiters: [String: CheckedContinuation<Void, Error>] = [:]
 46 |
 47 |     public init(url: URL, urlSession: URLSession = .shared, config: RelayConnectionConfig = .default) {
    |                                                     `- error: value of type '_' expected to be instance of class or class-constrained type
 48 |         self.url = url
 49 |         self.urlSession = urlSession
[558/582] Compiling NostrClient RelayPoolConfig.swift
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:47:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 45 |     private var pendingPublishWaiters: [String: CheckedContinuation<Void, Error>] = [:]
 46 |
 47 |     public init(url: URL, urlSession: URLSession = .shared, config: RelayConnectionConfig = .default) {
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 48 |         self.url = url
 49 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:47:53: error: value of type '_' expected to be instance of class or class-constrained type
 45 |     private var pendingPublishWaiters: [String: CheckedContinuation<Void, Error>] = [:]
 46 |
 47 |     public init(url: URL, urlSession: URLSession = .shared, config: RelayConnectionConfig = .default) {
    |                                                     `- error: value of type '_' expected to be instance of class or class-constrained type
 48 |         self.url = url
 49 |         self.urlSession = urlSession
[559/582] Compiling NostrClient RelaySubscriptionMessage.swift
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:47:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 45 |     private var pendingPublishWaiters: [String: CheckedContinuation<Void, Error>] = [:]
 46 |
 47 |     public init(url: URL, urlSession: URLSession = .shared, config: RelayConnectionConfig = .default) {
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 48 |         self.url = url
 49 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/NostrClient/Relay/RelayConnection.swift:47:53: error: value of type '_' expected to be instance of class or class-constrained type
 45 |     private var pendingPublishWaiters: [String: CheckedContinuation<Void, Error>] = [:]
 46 |
 47 |     public init(url: URL, urlSession: URLSession = .shared, config: RelayConnectionConfig = .default) {
    |                                                     `- error: value of type '_' expected to be instance of class or class-constrained type
 48 |         self.url = url
 49 |         self.urlSession = urlSession
[560/582] Compiling NostrClient SecureRandom.swift
[561/582] Compiling NostrClient EOSETracker.swift
[562/582] Compiling NostrClient Contact.swift
[563/582] Compiling NostrClient DirectMessage.swift
[564/582] Compiling NostrClient DirectMessageBuilder.swift
[565/582] Compiling NostrClient DirectMessageParser.swift
[566/582] Compiling NostrClient Event.swift
[567/582] Compiling NostrClient Filter.swift
[568/582] Compiling NostrClient KeyDerivation.swift
/host/spi-builder-workspace/Sources/NostrClient/Crypto/SealedMessage.swift:164:28: warning: no calls to throwing functions occur within 'try' expression
162 |         // The sharedSecret in compressed format is: version (1 byte) + x-coordinate (32 bytes)
163 |         // NIP-44 needs only the x-coordinate, so skip the version byte
164 |         let sharedSecret = try privateKey.sharedSecretFromKeyAgreement(with: publicKey, format: .compressed)
    |                            `- warning: no calls to throwing functions occur within 'try' expression
165 |         let sharedX = sharedSecret.withUnsafeBytes { bytes in
166 |             Data(bytes.dropFirst())
[569/582] Compiling NostrClient KeyPair.swift
/host/spi-builder-workspace/Sources/NostrClient/Crypto/SealedMessage.swift:164:28: warning: no calls to throwing functions occur within 'try' expression
162 |         // The sharedSecret in compressed format is: version (1 byte) + x-coordinate (32 bytes)
163 |         // NIP-44 needs only the x-coordinate, so skip the version byte
164 |         let sharedSecret = try privateKey.sharedSecretFromKeyAgreement(with: publicKey, format: .compressed)
    |                            `- warning: no calls to throwing functions occur within 'try' expression
165 |         let sharedX = sharedSecret.withUnsafeBytes { bytes in
166 |             Data(bytes.dropFirst())
[570/582] Compiling NostrClient Mnemonic.swift
/host/spi-builder-workspace/Sources/NostrClient/Crypto/SealedMessage.swift:164:28: warning: no calls to throwing functions occur within 'try' expression
162 |         // The sharedSecret in compressed format is: version (1 byte) + x-coordinate (32 bytes)
163 |         // NIP-44 needs only the x-coordinate, so skip the version byte
164 |         let sharedSecret = try privateKey.sharedSecretFromKeyAgreement(with: publicKey, format: .compressed)
    |                            `- warning: no calls to throwing functions occur within 'try' expression
165 |         let sharedX = sharedSecret.withUnsafeBytes { bytes in
166 |             Data(bytes.dropFirst())
[571/582] Compiling NostrClient SealedMessage.swift
/host/spi-builder-workspace/Sources/NostrClient/Crypto/SealedMessage.swift:164:28: warning: no calls to throwing functions occur within 'try' expression
162 |         // The sharedSecret in compressed format is: version (1 byte) + x-coordinate (32 bytes)
163 |         // NIP-44 needs only the x-coordinate, so skip the version byte
164 |         let sharedSecret = try privateKey.sharedSecretFromKeyAgreement(with: publicKey, format: .compressed)
    |                            `- warning: no calls to throwing functions occur within 'try' expression
165 |         let sharedX = sharedSecret.withUnsafeBytes { bytes in
166 |             Data(bytes.dropFirst())
[572/582] Compiling NostrClient InternetIdentifier.swift
/host/spi-builder-workspace/Sources/NostrClient/Models/InternetIdentifier.swift:99:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 97 |         let response: InternetIdentifierResponse
 98 |         do {
 99 |             let (data, urlResponse) = try await URLSession.shared.data(from: url)
    |                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
100 |
101 |             guard let httpResponse = urlResponse as? HTTPURLResponse,
[573/582] Compiling NostrClient NostrError.swift
/host/spi-builder-workspace/Sources/NostrClient/Models/InternetIdentifier.swift:99:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 97 |         let response: InternetIdentifierResponse
 98 |         do {
 99 |             let (data, urlResponse) = try await URLSession.shared.data(from: url)
    |                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
100 |
101 |             guard let httpResponse = urlResponse as? HTTPURLResponse,
[574/582] Compiling NostrClient OpenTimestamps.swift
/host/spi-builder-workspace/Sources/NostrClient/Models/InternetIdentifier.swift:99:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 97 |         let response: InternetIdentifierResponse
 98 |         do {
 99 |             let (data, urlResponse) = try await URLSession.shared.data(from: url)
    |                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
100 |
101 |             guard let httpResponse = urlResponse as? HTTPURLResponse,
[575/582] Compiling NostrClient RelayMessage.swift
/host/spi-builder-workspace/Sources/NostrClient/Models/InternetIdentifier.swift:99:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 97 |         let response: InternetIdentifierResponse
 98 |         do {
 99 |             let (data, urlResponse) = try await URLSession.shared.data(from: url)
    |                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
100 |
101 |             guard let httpResponse = urlResponse as? HTTPURLResponse,
[576/582] Compiling NostrClient BIP39WordList.swift
[577/582] Compiling NostrClient Bech32.swift
[578/582] Compiling NostrClient EventSigner.swift
[579/582] Compiling NostrClient GiftWrap.swift
[580/582] Compiling NostrClient SubscriptionEvent.swift
[581/582] Compiling NostrClient NostrClient+Exports.swift
[582/582] Compiling NostrClient NostrClient.swift
BUILD FAILURE 6.3 wasm