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