The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build BilibiliKit, reference main (afbc9a), with Swift 6.0 for Linux on 27 Nov 2024 13:33:35 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ApolloZhu/BilibiliKit.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/ApolloZhu/BilibiliKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at afbc9ae Update branch
Cloned https://github.com/ApolloZhu/BilibiliKit.git
Revision (git rev-parse @):
afbc9ae8bb3454811ad547d781d5eb3953143538
SUCCESS checkout https://github.com/ApolloZhu/BilibiliKit.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/ApolloZhu/BilibiliKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-crypto
[1/11134] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto from cache (2.52s)
Computing version for https://github.com/apple/swift-crypto
Computed https://github.com/apple/swift-crypto at 1.1.7 (0.43s)
Creating working copy for https://github.com/apple/swift-crypto
Working copy of https://github.com/apple/swift-crypto resolved at 1.1.7
Building for debugging...
[0/418] Write sources
[1/418] Compiling a_type.c
[2/418] Compiling a_octet.c
[2/418] Compiling a_utf8.c
[4/418] Compiling a_strnid.c
[5/418] Compiling a_utctm.c
[6/418] Compiling a_print.c
[7/418] Compiling a_time.c
[8/418] Write swift-version-24593BA9C3E375BF.txt
[9/418] Compiling v3_purp.c
[10/418] Compiling v3_skey.c
[11/418] Compiling v3_prn.c
[11/418] Compiling v3_pmaps.c
[13/418] Compiling v3_utl.c
[14/418] Compiling CCryptoBoringSSLShims shims.c
[15/418] Compiling v3_pcia.c
[16/418] Compiling v3_pcons.c
[17/418] Compiling v3_ocsp.c
[18/418] Compiling v3_pci.c
[19/418] Compiling v3_lib.c
[20/418] Compiling v3_int.c
[20/418] Compiling v3_ncons.c
[22/418] Compiling v3_info.c
[23/418] Compiling v3_genn.c
[24/418] Compiling v3_ia5.c
[25/418] Compiling v3_extku.c
[26/418] Compiling v3_enum.c
[27/418] Compiling v3_crld.c
[28/418] Compiling v3_conf.c
[29/418] Compiling v3_cpols.c
[30/418] Compiling v3_bitst.c
[31/418] Compiling v3_bcons.c
[32/418] Compiling v3_alt.c
[33/418] Compiling v3_akeya.c
[34/418] Compiling v3_akey.c
[35/418] Compiling pcy_map.c
[35/418] Compiling pcy_node.c
[36/418] Compiling pcy_tree.c
[38/418] Compiling pcy_lib.c
[39/418] Compiling pcy_data.c
[40/418] Compiling x_x509a.c
[41/418] Compiling pcy_cache.c
[42/418] Compiling x_spki.c
[43/418] Compiling x_val.c
[43/418] Compiling x_sig.c
[45/418] Compiling x_req.c
[45/418] Compiling x_x509.c
[47/418] Compiling x_pubkey.c
[48/418] Compiling x_pkey.c
[49/418] Compiling x_name.c
[50/418] Compiling x_exten.c
[51/418] Compiling x_info.c
[52/418] Compiling x_attrib.c
[53/418] Compiling x_all.c
[54/418] Compiling x_crl.c
[55/418] Compiling x_algor.c
[56/418] Compiling x509spki.c
[57/418] Compiling x509rset.c
[58/418] Compiling x509cset.c
[58/418] Compiling x509name.c
[60/418] Compiling x509_txt.c
[61/418] Compiling x509_vpm.c
[62/418] Compiling x509_v3.c
[63/418] Compiling x509_set.c
[64/418] Compiling x509_trs.c
[65/418] Compiling x509_obj.c
[66/418] Compiling x509_req.c
[66/418] Compiling x509_vfy.c
[68/418] Compiling x509_def.c
[69/418] Compiling x509_d2.c
[70/418] Compiling x509_ext.c
[71/418] Compiling x509_lu.c
[72/418] Compiling x509.c
[73/418] Compiling x509_cmp.c
[74/418] Compiling x509_att.c
[75/418] Compiling t_x509a.c
[76/418] Compiling i2d_pr.c
[77/418] Compiling t_x509.c
[78/418] Compiling t_req.c
[78/418] Compiling t_crl.c
[80/418] Compiling rsa_pss.c
[81/418] Compiling by_file.c
[82/418] Compiling by_dir.c
[83/418] Compiling asn1_gen.c
[84/418] Compiling algorithm.c
[85/418] Compiling a_verify.c
[86/418] Compiling a_sign.c
[87/418] Compiling a_digest.c
[88/418] Compiling a_strex.c
[89/418] Compiling thread_win.c
[90/418] Compiling voprf.c
[91/418] Compiling thread.c
[92/418] Compiling thread_pthread.c
[92/418] Compiling thread_none.c
[94/418] Compiling trust_token.c
[95/418] Compiling siphash.c
[96/418] Compiling rsa_print.c
[97/418] Compiling stack.c
[98/418] Compiling pmbtoken.c
[99/418] Compiling refcount_c11.c
[100/418] Compiling rc4.c
[101/418] Compiling refcount_lock.c
[102/418] Compiling rsa_asn1.c
[103/418] Compiling windows.c
[104/418] Compiling rand_extra.c
[105/418] Compiling fuchsia.c
[106/418] Compiling deterministic.c
[107/418] Compiling poly1305_arm_asm.S
[108/418] Compiling passive.c
[109/418] Compiling poly1305_arm.c
[109/418] Compiling forkunsafe.c
[111/418] Compiling poly1305.c
[112/418] Compiling pool.c
[113/418] Compiling pkcs7.c
[114/418] Compiling poly1305_vec.c
[115/418] Compiling pkcs8.c
[116/418] Compiling p5_pbev2.c
[117/418] Compiling pem_xaux.c
[117/418] Compiling pem_x509.c
[119/418] Compiling pkcs7_x509.c
[120/418] Compiling pkcs8_x509.c
[121/418] Compiling pem_pkey.c
[122/418] Compiling obj_xref.c
[123/418] Compiling pem_pk8.c
[124/418] Compiling pem_oth.c
[125/418] Compiling mem.c
[126/418] Compiling lhash.c
[127/418] Compiling pem_info.c
[128/418] Compiling pem_lib.c
[129/418] Compiling obj.c
[130/418] Compiling pem_all.c
[131/418] Compiling x86_64-mont5.mac.x86_64.S
[132/418] Compiling hkdf.c
[133/418] Compiling x86_64-mont.mac.x86_64.S
[134/418] Compiling poly_rq_mul.S
[135/418] Compiling x86-mont.windows.x86.S
[136/418] Compiling x86_64-mont5.linux.x86_64.S
[137/418] Compiling x86_64-mont.linux.x86_64.S
[138/418] Compiling hpke.c
[139/418] Compiling x86-mont.linux.x86.S
[140/418] Compiling vpaes-x86_64.mac.x86_64.S
[141/418] Compiling vpaes-x86.windows.x86.S
[142/418] Compiling vpaes-x86_64.linux.x86_64.S
[143/418] Compiling vpaes-x86.linux.x86.S
[144/418] Compiling vpaes-armv8.linux.aarch64.S
[145/418] Compiling vpaes-armv8.ios.aarch64.S
[146/418] Compiling vpaes-armv7.linux.arm.S
[147/418] Compiling vpaes-armv7.ios.arm.S
[148/418] Compiling sha512-x86_64.mac.x86_64.S
[149/418] Compiling sha512-armv8.linux.aarch64.S
[150/418] Compiling sha512-armv8.ios.aarch64.S
[151/418] Compiling sha512-armv4.linux.arm.S
[152/418] Compiling sha512-x86_64.linux.x86_64.S
[153/418] Compiling sha512-armv4.ios.arm.S
[154/418] Compiling kdf.c
[155/418] Compiling hrss.c
[156/418] Compiling sha512-586.windows.x86.S
[157/418] Compiling sha512-586.linux.x86.S
[158/418] Compiling sha256-x86_64.mac.x86_64.S
[159/418] Compiling sha256-armv8.linux.aarch64.S
[160/418] Compiling sha256-armv4.linux.arm.S
[161/418] Compiling sha256-armv8.ios.aarch64.S
[162/418] Compiling sha256-x86_64.linux.x86_64.S
[163/418] Compiling sha256-armv4.ios.arm.S
[163/418] Compiling sha256-586.windows.x86.S
[165/418] Compiling sha256-586.linux.x86.S
[166/418] Compiling sha1-x86_64.mac.x86_64.S
[167/418] Compiling sha1-armv8.linux.aarch64.S
[168/418] Compiling sha1-armv8.ios.aarch64.S
[169/418] Compiling sha1-armv4-large.linux.arm.S
[170/418] Compiling sha1-armv4-large.ios.arm.S
[171/418] Compiling sha1-586.windows.x86.S
[172/418] Compiling sha1-586.linux.x86.S
[173/418] Compiling sha1-x86_64.linux.x86_64.S
[174/418] Compiling rsaz-avx2.mac.x86_64.S
[175/418] Compiling sha1-altivec.c
[176/418] Compiling sha256.c
[176/418] Compiling sha512.c
[178/418] Compiling sha1.c
[179/418] Compiling rsaz-avx2.linux.x86_64.S
[180/418] Compiling rdrand-x86_64.mac.x86_64.S
[181/418] Compiling rdrand-x86_64.linux.x86_64.S
[182/418] Compiling self_check.c
[183/418] Compiling blinding.c
[184/418] Compiling rsa_impl.c
[185/418] Compiling padding.c
[186/418] Compiling rsa.c
[187/418] Compiling rand.c
[188/418] Compiling urandom.c
[189/418] Compiling fork_detect.c
[190/418] Compiling p256_beeu-x86_64-asm.mac.x86_64.S
[191/418] Compiling p256-x86_64-asm.mac.x86_64.S
[192/418] Compiling ctrdrbg.c
[193/418] Compiling p256_beeu-x86_64-asm.linux.x86_64.S
[194/418] Compiling polyval.c
[195/418] Compiling p256-x86_64-asm.linux.x86_64.S
[196/418] Compiling ofb.c
[197/418] Compiling gcm_nohw.c
[198/418] Compiling ctr.c
[198/418] Compiling cbc.c
[200/418] Compiling cfb.c
[201/418] Compiling gcm.c
[202/418] Compiling md5-x86_64.mac.x86_64.S
[203/418] Compiling md5-x86_64.linux.x86_64.S
[204/418] Compiling md5-586.windows.x86.S
[205/418] Compiling md5.c
[206/418] Compiling md5-586.linux.x86.S
[207/418] Compiling is_fips.c
[208/418] Compiling ghashv8-armx64.linux.aarch64.S
[209/418] Compiling ghashv8-armx64.ios.aarch64.S
[210/418] Compiling ghashv8-armx32.linux.arm.S
[211/418] Compiling ghashv8-armx32.ios.arm.S
[212/418] Compiling ghash-x86_64.mac.x86_64.S
[213/418] Compiling md4.c
[214/418] Compiling ghash-x86.windows.x86.S
[215/418] Compiling ghash-x86_64.linux.x86_64.S
[216/418] Compiling hmac.c
[217/418] Compiling ghash-x86.linux.x86.S
[218/418] Compiling ghash-ssse3-x86_64.mac.x86_64.S
[219/418] Compiling ghash-ssse3-x86.windows.x86.S
[220/418] Compiling ghash-ssse3-x86_64.linux.x86_64.S
[221/418] Compiling ghash-ssse3-x86.linux.x86.S
[222/418] Compiling ghash-neon-armv8.linux.aarch64.S
[223/418] Compiling ghash-neon-armv8.ios.aarch64.S
[224/418] Compiling ghash-armv4.linux.arm.S
[225/418] Compiling fips_shared_support.c
[226/418] Compiling ghash-armv4.ios.arm.S
[227/418] Compiling util.c
[228/418] Compiling ecdh.c
[229/418] Compiling wnaf.c
[229/418] Compiling simple_mul.c
[229/418] Compiling ecdsa.c
[232/418] Compiling scalar.c
[233/418] Compiling simple.c
[234/418] Compiling felem.c
[235/418] Compiling oct.c
[236/418] Compiling p256.c
[237/418] Compiling ec_montgomery.c
[238/418] Compiling ec_key.c
[239/418] Compiling p224-64.c
[240/418] Compiling check.c
[241/418] Compiling ec.c
[242/418] Compiling co-586.windows.x86.S
[243/418] Compiling digest.c
[244/418] Compiling digests.c
[245/418] Compiling dh.c
[246/418] Compiling co-586.linux.x86.S
[247/418] Compiling bsaes-armv7.linux.arm.S
[248/418] Compiling bsaes-armv7.ios.arm.S
[249/418] Compiling e_des.c
[250/418] Compiling des.c
[250/418] Compiling aead.c
[252/418] Compiling cipher.c
[253/418] Compiling sqrt.c
[254/418] Compiling shift.c
[255/418] Compiling rsaz_exp.c
[256/418] Compiling e_aes.c
[256/418] Compiling random.c
[258/418] Compiling montgomery_inv.c
[259/418] Compiling prime.c
[260/418] Compiling jacobi.c
[261/418] Compiling mul.c
[262/418] Compiling montgomery.c
[263/418] Compiling generic.c
[264/418] Compiling gcd_extra.c
[265/418] Compiling p256-x86_64.c
[266/418] Compiling gcd.c
[267/418] Compiling div_extra.c
[268/418] Compiling ctx.c
[269/418] Compiling div.c
[269/418] Compiling cmp.c
[271/418] Compiling bytes.c
[272/418] Compiling exponentiation.c
[273/418] Compiling bn-586.windows.x86.S
[274/418] Compiling bn.c
[275/418] Compiling bn-586.linux.x86.S
[276/418] Compiling armv8-mont.linux.aarch64.S
[277/418] Compiling add.c
[278/418] Compiling armv8-mont.ios.aarch64.S
[279/418] Compiling armv4-mont.linux.arm.S
[280/418] Compiling armv4-mont.ios.arm.S
[281/418] Compiling aesv8-armx64.linux.aarch64.S
[282/418] Compiling aesv8-armx64.ios.aarch64.S
[283/418] Compiling aesv8-armx32.linux.arm.S
[284/418] Compiling aesni-x86_64.mac.x86_64.S
[285/418] Compiling aesv8-armx32.ios.arm.S
[286/418] Compiling aesni-x86.windows.x86.S
[287/418] Compiling aesni-x86_64.linux.x86_64.S
[288/418] Compiling aesni-x86.linux.x86.S
[289/418] Compiling aesni-gcm-x86_64.mac.x86_64.S
[290/418] Compiling aesni-gcm-x86_64.linux.x86_64.S
[291/418] Compiling x86_64-gcc.c
[292/418] Compiling mode_wrappers.c
[293/418] Compiling aes.c
[294/418] Compiling key_wrap.c
[295/418] Compiling ex_data.c
[296/418] Compiling sign.c
[297/418] Compiling scrypt.c
[298/418] Compiling pbkdf.c
[299/418] Compiling print.c
[300/418] Compiling p_x25519.c
[301/418] Compiling p_x25519_asn1.c
[301/418] Compiling aes_nohw.c
[303/418] Compiling p_rsa_asn1.c
[304/418] Compiling p_ed25519_asn1.c
[304/418] Compiling p_rsa.c
[306/418] Compiling p_ed25519.c
[307/418] Compiling p_ec_asn1.c
[308/418] Compiling p_dsa_asn1.c
[309/418] Compiling evp_ctx.c
[309/418] Compiling p_ec.c
[310/418] Compiling err_data.c
[312/418] Compiling evp_asn1.c
[313/418] Compiling digestsign.c
[314/418] Compiling evp.c
[315/418] Compiling engine.c
[316/418] Compiling ecdh_extra.c
[317/418] Compiling err.c
[318/418] Compiling ecdsa_asn1.c
[319/418] Compiling hash_to_curve.c
[320/418] Compiling ec_derive.c
[321/418] Compiling dsa_asn1.c
[322/418] Compiling dh_asn1.c
[323/418] Compiling ec_asn1.c
[324/418] Compiling params.c
[325/418] Compiling x25519-asm-arm.S
[326/418] Compiling digest_extra.c
[327/418] Compiling spake25519.c
[328/418] Compiling dsa.c
[329/418] Compiling cpu-ppc64le.c
[330/418] Compiling cpu-arm-linux.c
[330/418] Compiling cpu-arm.c
[331/418] Compiling crypto.c
[333/418] Compiling cpu-aarch64-linux.c
[333/418] Compiling cpu-aarch64-win.c
[334/418] Compiling cpu-intel.c
[336/418] Compiling cpu-aarch64-fuchsia.c
[337/418] Compiling e_rc4.c
[338/418] Compiling cmac.c
[339/418] Compiling e_null.c
[340/418] Compiling e_rc2.c
[340/418] Compiling tls_cbc.c
[342/418] Compiling conf.c
[343/418] Compiling e_tls.c
[344/418] Compiling curve25519.c
[345/418] Compiling chacha20_poly1305_x86_64.mac.x86_64.S
[346/418] Compiling derive_key.c
[346/418] Compiling e_chacha20poly1305.c
[348/418] Compiling e_aesgcmsiv.c
[349/418] Compiling e_aesctrhmac.c
[350/418] Compiling cipher_extra.c
[351/418] Compiling aes128gcmsiv-x86_64.mac.x86_64.S
[352/418] Compiling e_aesccm.c
[353/418] Compiling aes128gcmsiv-x86_64.linux.x86_64.S
[354/418] Compiling chacha-x86_64.mac.x86_64.S
[355/418] Compiling chacha-x86.windows.x86.S
[356/418] Compiling chacha.c
[357/418] Compiling chacha20_poly1305_x86_64.linux.x86_64.S
[358/418] Compiling chacha-armv8.linux.aarch64.S
[359/418] Compiling chacha-x86_64.linux.x86_64.S
[360/418] Compiling chacha-x86.linux.x86.S
[361/418] Compiling chacha-armv8.ios.aarch64.S
[362/418] Compiling chacha-armv4.linux.arm.S
[363/418] Compiling chacha-armv4.ios.arm.S
[364/418] Compiling unicode.c
[365/418] Compiling ber.c
[366/418] Compiling bn_asn1.c
[367/418] Compiling buf.c
[368/418] Compiling asn1_compat.c
[369/418] Compiling cbb.c
[369/418] Compiling cbs.c
[371/418] Compiling blake2.c
[372/418] Compiling convert.c
[373/418] Compiling printf.c
[374/418] Compiling socket_helper.c
[374/418] Compiling socket.c
[376/418] Compiling pair.c
[377/418] Compiling file.c
[378/418] Compiling hexdump.c
[379/418] Compiling fd.c
[380/418] Compiling connect.c
[381/418] Compiling base64.c
[382/418] Compiling bio_mem.c
[383/418] Compiling time_support.c
[384/418] Compiling bio.c
[385/418] Compiling tasn_utl.c
[386/418] Compiling tasn_typ.c
[386/418] Compiling tasn_new.c
[388/418] Compiling tasn_fre.c
[389/418] Compiling f_string.c
[390/418] Compiling tasn_enc.c
[391/418] Compiling f_int.c
[392/418] Compiling f_enum.c
[393/418] Compiling asn_pack.c
[394/418] Compiling asn1_par.c
[394/418] Compiling tasn_dec.c
[396/418] Compiling asn1_lib.c
[396/418] Compiling a_object.c
[398/418] Compiling a_i2d_fp.c
[399/418] Compiling a_mbstr.c
[400/418] Write sources
[403/418] Compiling a_gentm.c
[403/418] Compiling a_int.c
[404/418] Write sources
[406/418] Compiling a_dup.c
[407/418] Compiling a_enum.c
[408/418] Compiling a_bool.c
[409/418] Compiling a_d2i_fp.c
[410/418] Compiling a_bitstr.c
[412/480] Emitting module Crypto
[413/487] Compiling BKFoundation BKSession.swift
/host/spi-builder-workspace/Sources/BKFoundation/BKSession.swift:36:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'BKSession' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Stores cookies of a session.
12 | public class BKSession {
   |              `- note: class 'BKSession' does not conform to the 'Sendable' protocol
13 |     /// To identify this session.
14 |     public let identifier: String
   :
34 |
35 |     /// The shared session
36 |     public static let shared = BKSession(identifier: "__BILIBILI_KIT_DEFAULT_SESSION__")
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'BKSession' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 |     /// Initialize a new session.
/host/spi-builder-workspace/Sources/BKFoundation/BKSession.swift:63:45: error: cannot find type 'URLRequest' in scope
61 |     /// - Parameter url: the url to post to.
62 |     /// - Returns: post request to url with optinal cookie.
63 |     public func postRequest(to url: URL) -> URLRequest {
   |                                             `- error: cannot find type 'URLRequest' in scope
64 |         var mutableRequest = request(to: url)
65 |         mutableRequest.httpMethod = "POST"
/host/spi-builder-workspace/Sources/BKFoundation/BKSession.swift:74:41: error: cannot find type 'URLRequest' in scope
72 |     /// - Parameter url: the url to request.
73 |     /// - Returns: request to url with optional cookie.
74 |     public func request(to url: URL) -> URLRequest {
   |                                         `- error: cannot find type 'URLRequest' in scope
75 |         var request = URLRequest(url: url)
76 |         request.addValue("io.github.apollozhu.bilibilikit",
/host/spi-builder-workspace/Sources/BKFoundation/BKSession.swift:75:23: error: cannot find 'URLRequest' in scope
73 |     /// - Returns: request to url with optional cookie.
74 |     public func request(to url: URL) -> URLRequest {
75 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
76 |         request.addValue("io.github.apollozhu.bilibilikit",
77 |                          forHTTPHeaderField: "User-Agent")
[414/487] Compiling BKFoundation URLSession+Extensions.swift
/host/spi-builder-workspace/Sources/BKFoundation/URLSession+Extensions.swift:78:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 76 | }
 77 |
 78 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 79 |     /// Shared url session, alias of URLSession.shared
 80 |     public static var _bk: URLSession { return .shared }
/host/spi-builder-workspace/Sources/BKFoundation/URLSession+Extensions.swift:109:20: error: cannot find type 'URLRequest' in scope
107 |     ///   - handler: code to process an optional `Wrapped` instance.
108 |     public class func get<Wrapper: BKDataWrapper>(
109 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
110 |         unwrap wrapperType: Wrapper.Type,
111 |         then handler: @escaping BKHandler<Wrapper.Wrapped>)
[415/487] Compiling Crypto EllipticCurve_boring.swift
[416/487] Compiling Crypto NISTCurvesKeys_boring.swift
[417/487] Compiling Crypto X25519Keys_boring.swift
[418/487] Compiling Crypto Curve25519.swift
[419/487] Compiling Crypto Ed25519.swift
[420/487] Compiling Crypto NISTCurvesKeys.swift
[421/487] Compiling Crypto X25519Keys.swift
[422/487] Compiling Crypto SEC1PrivateKey.swift
[423/487] Compiling Crypto SubjectPublicKeyInfo.swift
[424/487] Compiling Crypto CryptoKitErrors.swift
[425/487] Compiling Crypto Digest_boring.swift
[426/487] Compiling Crypto Digest.swift
[427/487] Compiling Crypto Digests.swift
[428/487] Compiling Crypto HashFunctions.swift
[429/487] Compiling Crypto HashFunctions_SHA2.swift
[430/487] Compiling BKFoundation URL+Extensions.swift
/host/spi-builder-workspace/Sources/BKFoundation/URL+Extensions.swift:11:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringInterpolation', 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
 9 | import Foundation
10 |
11 | extension URL: ExpressibleByStringInterpolation {
   | |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringInterpolation', 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
12 |     /// Initialize url with string literals.
13 |     ///
[431/487] Compiling BKFoundation Either.swift
[432/487] Compiling BKFoundation BKApp.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[433/487] Emitting module BKFoundation
/host/spi-builder-workspace/Sources/BKFoundation/BKCookie.swift:37:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 35 |     /// using https://github.com/dantmnf/biliupload/blob/master/getcookie.py ,
 36 |     /// and appending `;bili_jct=value of cookie named bili_jct` .
 37 |     public static var `default`: BKCookie! = BKCookie(path:
    |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |         "\(FileManager.default.currentDirectoryPath)/\(filename)"
 39 |     )
/host/spi-builder-workspace/Sources/BKFoundation/BKCookie.swift:147:32: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 |     /// such an optimization, but pull requests are welcome should your method
146 |     /// works better and more efficient.
147 |     public init?(httpCookies: [HTTPCookie]) {
    |                                `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |         var usefulCookies = [String: String]()
149 |         for cookie in httpCookies where cookie.domain.hasSuffix("bilibili.com")
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/BKFoundation/BKError.swift:22:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |     /// bilibili or network is giving us some hard times.
21 |     public enum ResponseErrorReason {
22 |         case urlSessionError(Error?, response: URLResponse?)
   |                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |         case accessDenied
24 |         case reason(String, code: Int? = nil)
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/BKFoundation/BKError.swift:40:10: warning: associated value 'implementationError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.ImplementationErrorReason'; this is an error in the Swift 6 language mode
26 |     }
27 |     /// Either you or @ApolloZhu is making dumb mistakes.
28 |     public enum ImplementationErrorReason {
   |                 `- note: consider making enum 'ImplementationErrorReason' conform to the 'Sendable' protocol
29 |         case invalidURL(String)
30 |         case invalidRegex(Error)
   :
38 |     }
39 |
40 |     case implementationError(reason: ImplementationErrorReason)
   |          `- warning: associated value 'implementationError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.ImplementationErrorReason'; this is an error in the Swift 6 language mode
41 |     case parseError(reason: ParseErrorReason)
42 |     case responseError(reason: ResponseErrorReason)
/host/spi-builder-workspace/Sources/BKFoundation/BKError.swift:41:10: warning: associated value 'parseError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.ParseErrorReason'; this is an error in the Swift 6 language mode
12 | public enum BKError: Error {
13 |     /// bilibili changed their API. Contact @ApolloZhu to update BilibiliKit.
14 |     public enum ParseErrorReason {
   |                 `- note: consider making enum 'ParseErrorReason' conform to the 'Sendable' protocol
15 |         case regexMatchNotFound
16 |         case stringDecodeFailure
   :
39 |
40 |     case implementationError(reason: ImplementationErrorReason)
41 |     case parseError(reason: ParseErrorReason)
   |          `- warning: associated value 'parseError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.ParseErrorReason'; this is an error in the Swift 6 language mode
42 |     case responseError(reason: ResponseErrorReason)
43 |     case encryptError(reason: EncryptionErrorReason)
/host/spi-builder-workspace/Sources/BKFoundation/BKError.swift:42:10: warning: associated value 'responseError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.ResponseErrorReason'; this is an error in the Swift 6 language mode
19 |     }
20 |     /// bilibili or network is giving us some hard times.
21 |     public enum ResponseErrorReason {
   |                 `- note: consider making enum 'ResponseErrorReason' conform to the 'Sendable' protocol
22 |         case urlSessionError(Error?, response: URLResponse?)
23 |         case accessDenied
   :
40 |     case implementationError(reason: ImplementationErrorReason)
41 |     case parseError(reason: ParseErrorReason)
42 |     case responseError(reason: ResponseErrorReason)
   |          `- warning: associated value 'responseError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.ResponseErrorReason'; this is an error in the Swift 6 language mode
43 |     case encryptError(reason: EncryptionErrorReason)
44 | }
/host/spi-builder-workspace/Sources/BKFoundation/BKError.swift:43:10: warning: associated value 'encryptError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.EncryptionErrorReason'; this is an error in the Swift 6 language mode
33 |     }
34 |     /// Security framework related errors.
35 |     public enum EncryptionErrorReason {
   |                 `- note: consider making enum 'EncryptionErrorReason' conform to the 'Sendable' protocol
36 |         case publicKeySecKeyGenerationFailure(String)
37 |         case rsaEncryptFailure(String)
   :
41 |     case parseError(reason: ParseErrorReason)
42 |     case responseError(reason: ResponseErrorReason)
43 |     case encryptError(reason: EncryptionErrorReason)
   |          `- warning: associated value 'encryptError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.EncryptionErrorReason'; this is an error in the Swift 6 language mode
44 | }
45 |
/host/spi-builder-workspace/Sources/BKFoundation/BKSession.swift:36:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'BKSession' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Stores cookies of a session.
12 | public class BKSession {
   |              `- note: class 'BKSession' does not conform to the 'Sendable' protocol
13 |     /// To identify this session.
14 |     public let identifier: String
   :
34 |
35 |     /// The shared session
36 |     public static let shared = BKSession(identifier: "__BILIBILI_KIT_DEFAULT_SESSION__")
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'BKSession' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 |     /// Initialize a new session.
/host/spi-builder-workspace/Sources/BKFoundation/BKSession.swift:63:45: error: cannot find type 'URLRequest' in scope
61 |     /// - Parameter url: the url to post to.
62 |     /// - Returns: post request to url with optinal cookie.
63 |     public func postRequest(to url: URL) -> URLRequest {
   |                                             `- error: cannot find type 'URLRequest' in scope
64 |         var mutableRequest = request(to: url)
65 |         mutableRequest.httpMethod = "POST"
/host/spi-builder-workspace/Sources/BKFoundation/BKSession.swift:74:41: error: cannot find type 'URLRequest' in scope
72 |     /// - Parameter url: the url to request.
73 |     /// - Returns: request to url with optional cookie.
74 |     public func request(to url: URL) -> URLRequest {
   |                                         `- error: cannot find type 'URLRequest' in scope
75 |         var request = URLRequest(url: url)
76 |         request.addValue("io.github.apollozhu.bilibilikit",
/host/spi-builder-workspace/Sources/BKFoundation/URL+Extensions.swift:11:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringInterpolation', 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
 9 | import Foundation
10 |
11 | extension URL: ExpressibleByStringInterpolation {
   | |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringInterpolation', 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
12 |     /// Initialize url with string literals.
13 |     ///
/host/spi-builder-workspace/Sources/BKFoundation/URLSession+Extensions.swift:78:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 76 | }
 77 |
 78 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 79 |     /// Shared url session, alias of URLSession.shared
 80 |     public static var _bk: URLSession { return .shared }
[434/487] Compiling BKFoundation BKError.swift
/host/spi-builder-workspace/Sources/BKFoundation/BKError.swift:22:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |     /// bilibili or network is giving us some hard times.
21 |     public enum ResponseErrorReason {
22 |         case urlSessionError(Error?, response: URLResponse?)
   |                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |         case accessDenied
24 |         case reason(String, code: Int? = nil)
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/BKFoundation/BKError.swift:40:10: warning: associated value 'implementationError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.ImplementationErrorReason'; this is an error in the Swift 6 language mode
26 |     }
27 |     /// Either you or @ApolloZhu is making dumb mistakes.
28 |     public enum ImplementationErrorReason {
   |                 `- note: consider making enum 'ImplementationErrorReason' conform to the 'Sendable' protocol
29 |         case invalidURL(String)
30 |         case invalidRegex(Error)
   :
38 |     }
39 |
40 |     case implementationError(reason: ImplementationErrorReason)
   |          `- warning: associated value 'implementationError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.ImplementationErrorReason'; this is an error in the Swift 6 language mode
41 |     case parseError(reason: ParseErrorReason)
42 |     case responseError(reason: ResponseErrorReason)
/host/spi-builder-workspace/Sources/BKFoundation/BKError.swift:41:10: warning: associated value 'parseError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.ParseErrorReason'; this is an error in the Swift 6 language mode
12 | public enum BKError: Error {
13 |     /// bilibili changed their API. Contact @ApolloZhu to update BilibiliKit.
14 |     public enum ParseErrorReason {
   |                 `- note: consider making enum 'ParseErrorReason' conform to the 'Sendable' protocol
15 |         case regexMatchNotFound
16 |         case stringDecodeFailure
   :
39 |
40 |     case implementationError(reason: ImplementationErrorReason)
41 |     case parseError(reason: ParseErrorReason)
   |          `- warning: associated value 'parseError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.ParseErrorReason'; this is an error in the Swift 6 language mode
42 |     case responseError(reason: ResponseErrorReason)
43 |     case encryptError(reason: EncryptionErrorReason)
/host/spi-builder-workspace/Sources/BKFoundation/BKError.swift:42:10: warning: associated value 'responseError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.ResponseErrorReason'; this is an error in the Swift 6 language mode
19 |     }
20 |     /// bilibili or network is giving us some hard times.
21 |     public enum ResponseErrorReason {
   |                 `- note: consider making enum 'ResponseErrorReason' conform to the 'Sendable' protocol
22 |         case urlSessionError(Error?, response: URLResponse?)
23 |         case accessDenied
   :
40 |     case implementationError(reason: ImplementationErrorReason)
41 |     case parseError(reason: ParseErrorReason)
42 |     case responseError(reason: ResponseErrorReason)
   |          `- warning: associated value 'responseError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.ResponseErrorReason'; this is an error in the Swift 6 language mode
43 |     case encryptError(reason: EncryptionErrorReason)
44 | }
/host/spi-builder-workspace/Sources/BKFoundation/BKError.swift:43:10: warning: associated value 'encryptError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.EncryptionErrorReason'; this is an error in the Swift 6 language mode
33 |     }
34 |     /// Security framework related errors.
35 |     public enum EncryptionErrorReason {
   |                 `- note: consider making enum 'EncryptionErrorReason' conform to the 'Sendable' protocol
36 |         case publicKeySecKeyGenerationFailure(String)
37 |         case rsaEncryptFailure(String)
   :
41 |     case parseError(reason: ParseErrorReason)
42 |     case responseError(reason: ResponseErrorReason)
43 |     case encryptError(reason: EncryptionErrorReason)
   |          `- warning: associated value 'encryptError(reason:)' of 'Sendable'-conforming enum 'BKError' has non-sendable type 'BKError.EncryptionErrorReason'; this is an error in the Swift 6 language mode
44 | }
45 |
[435/487] Compiling BKFoundation BKCookie.swift
/host/spi-builder-workspace/Sources/BKFoundation/BKCookie.swift:37:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 35 |     /// using https://github.com/dantmnf/biliupload/blob/master/getcookie.py ,
 36 |     /// and appending `;bili_jct=value of cookie named bili_jct` .
 37 |     public static var `default`: BKCookie! = BKCookie(path:
    |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |         "\(FileManager.default.currentDirectoryPath)/\(filename)"
 39 |     )
/host/spi-builder-workspace/Sources/BKFoundation/BKCookie.swift:147:32: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 |     /// such an optimization, but pull requests are welcome should your method
146 |     /// works better and more efficient.
147 |     public init?(httpCookies: [HTTPCookie]) {
    |                                `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |         var usefulCookies = [String: String]()
149 |         for cookie in httpCookies where cookie.domain.hasSuffix("bilibili.com")
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/BKFoundation/BKCookie.swift:149:48: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'domain'
147 |     public init?(httpCookies: [HTTPCookie]) {
148 |         var usefulCookies = [String: String]()
149 |         for cookie in httpCookies where cookie.domain.hasSuffix("bilibili.com")
    |                                                `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'domain'
150 |             && CodingKeys.allCases.contains(where: { $0.rawValue == cookie.name }) {
151 |                 usefulCookies[cookie.name] = cookie.value
/host/spi-builder-workspace/Sources/BKFoundation/BKCookie.swift:150:76: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
148 |         var usefulCookies = [String: String]()
149 |         for cookie in httpCookies where cookie.domain.hasSuffix("bilibili.com")
150 |             && CodingKeys.allCases.contains(where: { $0.rawValue == cookie.name }) {
    |                                                                            `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
151 |                 usefulCookies[cookie.name] = cookie.value
152 |         }
[436/487] Compiling Crypto RNG_boring.swift
[437/487] Compiling Crypto SafeCompare_boring.swift
[438/487] Compiling Crypto Zeroization_boring.swift
[439/487] Compiling Crypto PrettyBytes.swift
[440/487] Compiling Crypto SafeCompare.swift
[441/487] Compiling Crypto SecureBytes.swift
[442/487] Compiling Crypto Zeroization.swift
[443/487] Compiling Crypto AES-GCM.swift
[444/487] Compiling Crypto AES-GCM_boring.swift
[445/487] Compiling Crypto ChaChaPoly_boring.swift
[446/487] Compiling Crypto ChaChaPoly.swift
[447/487] Compiling Crypto Cipher.swift
[448/487] Compiling Crypto Nonces.swift
[449/487] Compiling Crypto ASN1.swift
[450/487] Compiling Crypto ASN1BitString.swift
[451/487] Compiling Crypto SymmetricKeys.swift
[452/487] Compiling Crypto HMAC.swift
[453/487] Compiling Crypto MACFunctions.swift
[454/487] Compiling Crypto MessageAuthenticationCode.swift
[455/487] Compiling Crypto AES.swift
[456/487] Compiling Crypto ECDSASignature_boring.swift
[457/487] Compiling Crypto ECDSA_boring.swift
[458/487] Compiling Crypto ASN1Identifier.swift
[459/487] Compiling Crypto ASN1Integer.swift
[460/487] Compiling Crypto ASN1OctetString.swift
[461/487] Compiling Crypto ArraySliceBigint.swift
[462/487] Compiling Crypto ObjectIdentifier.swift
[463/487] Compiling Crypto ECDSASignature.swift
[464/487] Compiling Crypto PEMDocument.swift
[465/487] Compiling Crypto PKCS8PrivateKey.swift
[466/487] Compiling Crypto Insecure.swift
[467/487] Compiling Crypto Insecure_HashFunctions.swift
[468/487] Compiling Crypto ECDH_boring.swift
[469/487] Compiling Crypto DH.swift
[470/487] Compiling Crypto ECDH.swift
[471/487] Compiling Crypto HKDF.swift
[472/487] Compiling Crypto Ed25519_boring.swift
[473/487] Compiling Crypto EllipticCurvePoint_boring.swift
[474/487] Compiling Crypto EdDSA_boring.swift
[475/487] Compiling Crypto ECDSA.swift
[476/487] Compiling Crypto EdDSA.swift
[477/487] Compiling Crypto Signature.swift
[478/487] Compiling Crypto ArbitraryPrecisionInteger_boring.swift
[479/487] Compiling Crypto CryptoKitErrors_boring.swift
[480/487] Compiling Crypto FiniteFieldArithmeticContext_boring.swift
BUILD FAILURE 6.0 linux