The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build BilibiliKit, reference main (afbc9a), with Swift 6.2 (beta) for Linux on 18 Jun 2025 13:54:29 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.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.2
Building package at path:  $PWD
https://github.com/ApolloZhu/BilibiliKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/apple/swift-crypto
[1/15203] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto from cache (1.60s)
Computing version for https://github.com/apple/swift-crypto
Computed https://github.com/apple/swift-crypto at 1.1.7 (2.04s)
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
[5/418] Compiling a_d2i_fp.c
[6/418] Compiling a_dup.c
[7/418] Compiling a_bool.c
[8/418] Write swift-version-24593BA9C3E375BF.txt
[9/418] Compiling a_enum.c
[10/418] Compiling a_gentm.c
[11/418] Compiling a_bitstr.c
[12/418] Compiling conf.c
[13/426] Compiling v3_prn.c
[14/426] Compiling v3_purp.c
[15/426] Compiling v3_pcons.c
[16/426] Compiling v3_skey.c
[17/426] Compiling v3_pmaps.c
[18/426] Compiling CCryptoBoringSSLShims shims.c
[19/426] Compiling v3_utl.c
[20/426] Compiling v3_pci.c
[21/426] Compiling v3_ncons.c
[22/426] Compiling v3_ocsp.c
[23/426] Compiling v3_pcia.c
[24/426] Compiling v3_lib.c
[25/426] Compiling v3_int.c
[26/426] Compiling v3_info.c
[27/426] Compiling v3_crld.c
[28/426] Compiling v3_extku.c
[29/426] Compiling v3_genn.c
[30/426] Compiling v3_ia5.c
[31/426] Compiling v3_enum.c
[32/426] Compiling v3_cpols.c
[33/426] Compiling v3_conf.c
[34/426] Compiling v3_bcons.c
[35/426] Compiling v3_bitst.c
[36/426] Compiling v3_akeya.c
[37/426] Compiling v3_alt.c
[38/426] Compiling pcy_tree.c
[39/426] Compiling pcy_node.c
[40/426] Compiling v3_akey.c
[40/426] Compiling pcy_lib.c
[42/426] Compiling x_x509a.c
[43/426] Compiling x_spki.c
[44/426] Compiling pcy_map.c
[45/426] Compiling x_val.c
[46/426] Compiling pcy_data.c
[47/426] Compiling pcy_cache.c
[48/426] Compiling x_sig.c
[49/426] Compiling x_x509.c
[50/426] Compiling x_req.c
[51/426] Compiling x_pubkey.c
[52/426] Compiling x_info.c
[53/426] Compiling x_pkey.c
[54/426] Compiling x_all.c
[55/426] Compiling x_attrib.c
[56/426] Compiling x_exten.c
[57/426] Compiling x_name.c
[58/426] Compiling x_crl.c
[59/426] Compiling x509rset.c
[60/426] Compiling x509spki.c
[61/426] Compiling x_algor.c
[62/426] Compiling x509cset.c
[63/426] Compiling x509name.c
[64/426] Compiling x509_vpm.c
[65/426] Compiling x509_set.c
[66/426] Compiling x509_txt.c
[67/426] Compiling x509_obj.c
[68/426] Compiling x509_vfy.c
[69/426] Compiling x509_v3.c
[70/426] Compiling x509_req.c
[71/426] Compiling x509_trs.c
[72/426] Compiling x509_def.c
[73/426] Compiling x509_lu.c
[74/426] Compiling x509_ext.c
[75/426] Compiling x509_d2.c
[76/426] Compiling x509_att.c
[77/426] Compiling x509.c
[78/426] Compiling t_x509a.c
[79/426] Compiling x509_cmp.c
[80/426] Compiling i2d_pr.c
[81/426] Compiling t_req.c
[82/426] Compiling t_crl.c
[83/426] Compiling t_x509.c
[84/426] Compiling rsa_pss.c
[85/426] Compiling by_file.c
[86/426] Compiling algorithm.c
[87/426] Compiling by_dir.c
[88/426] Compiling a_verify.c
[89/426] Compiling asn1_gen.c
[90/426] Compiling a_strex.c
[91/426] Compiling voprf.c
[92/426] Compiling thread_win.c
[93/426] Compiling a_sign.c
[94/426] Compiling a_digest.c
[95/426] Compiling trust_token.c
[96/426] Compiling thread.c
[97/426] Compiling pmbtoken.c
[98/426] Compiling thread_none.c
[99/426] Compiling siphash.c
[100/426] Compiling thread_pthread.c
[101/426] Compiling rsa_print.c
[102/426] Compiling stack.c
[103/426] Compiling rc4.c
[104/426] Compiling refcount_c11.c
[105/426] Compiling windows.c
[106/426] Compiling refcount_lock.c
[107/426] Compiling rand_extra.c
[108/426] Compiling rsa_asn1.c
[109/426] Compiling fuchsia.c
[110/426] Compiling deterministic.c
[111/426] Compiling passive.c
[112/426] Compiling forkunsafe.c
[113/426] Compiling poly1305_arm_asm.S
[114/426] Compiling poly1305_arm.c
[115/426] Compiling poly1305.c
[116/426] Compiling pool.c
[117/426] Compiling pkcs7.c
[118/426] Compiling poly1305_vec.c
[119/426] Compiling p5_pbev2.c
[120/426] Compiling pkcs8_x509.c
[121/426] Compiling pem_xaux.c
[122/426] Compiling pkcs8.c
[123/426] Compiling pkcs7_x509.c
[124/426] Compiling pem_oth.c
[125/426] Compiling pem_x509.c
[126/426] Compiling obj_xref.c
[127/426] Compiling pem_pkey.c
[128/426] Compiling pem_pk8.c
[129/426] Compiling mem.c
[130/426] Compiling pem_info.c
[131/426] Compiling lhash.c
[132/426] Compiling pem_lib.c
[133/426] Compiling pem_all.c
[134/426] Compiling obj.c
[135/426] Compiling x86_64-mont5.mac.x86_64.S
[136/426] Compiling hkdf.c
[137/426] Compiling poly_rq_mul.S
[138/426] Compiling x86_64-mont5.linux.x86_64.S
[139/426] Compiling x86_64-mont.linux.x86_64.S
[140/426] Compiling x86_64-mont.mac.x86_64.S
[141/426] Compiling hpke.c
[142/426] Compiling x86-mont.windows.x86.S
[143/426] Compiling x86-mont.linux.x86.S
[144/426] Compiling vpaes-x86_64.linux.x86_64.S
[145/426] Compiling vpaes-x86_64.mac.x86_64.S
[146/426] Compiling vpaes-x86.windows.x86.S
[147/426] Compiling vpaes-x86.linux.x86.S
[148/426] Compiling vpaes-armv8.linux.aarch64.S
[149/426] Compiling vpaes-armv8.ios.aarch64.S
[150/426] Compiling vpaes-armv7.linux.arm.S
[151/426] Compiling vpaes-armv7.ios.arm.S
[152/426] Compiling sha512-armv8.ios.aarch64.S
[153/426] Compiling sha512-x86_64.mac.x86_64.S
[154/426] Compiling sha512-x86_64.linux.x86_64.S
[155/426] Compiling sha512-armv8.linux.aarch64.S
[156/426] Compiling kdf.c
[157/426] Compiling sha512-armv4.linux.arm.S
[158/426] Compiling sha512-armv4.ios.arm.S
[159/426] Compiling sha512-586.windows.x86.S
[160/426] Compiling sha512-586.linux.x86.S
[161/426] Compiling sha256-x86_64.mac.x86_64.S
[162/426] Compiling sha256-armv8.linux.aarch64.S
[163/426] Compiling sha256-x86_64.linux.x86_64.S
[164/426] Compiling hrss.c
[165/426] Compiling sha256-armv4.linux.arm.S
[166/426] Compiling sha256-armv8.ios.aarch64.S
[167/426] Compiling sha256-armv4.ios.arm.S
[168/426] Compiling sha256-586.windows.x86.S
[169/426] Compiling sha256-586.linux.x86.S
[170/426] Compiling sha1-x86_64.mac.x86_64.S
[171/426] Compiling sha1-armv8.linux.aarch64.S
[171/426] Compiling sha1-armv4-large.linux.arm.S
[171/426] Compiling sha1-armv4-large.ios.arm.S
[174/426] Compiling sha1-armv8.ios.aarch64.S
[175/426] Compiling sha1-586.linux.x86.S
[176/426] Compiling sha1-x86_64.linux.x86_64.S
[177/426] Compiling sha1-586.windows.x86.S
[178/426] Compiling sha512.c
[179/426] Compiling sha1-altivec.c
[180/426] Compiling rsaz-avx2.mac.x86_64.S
[181/426] Compiling sha256.c
[182/426] Compiling sha1.c
[183/426] Compiling rsaz-avx2.linux.x86_64.S
[184/426] Compiling rdrand-x86_64.mac.x86_64.S
[185/426] Compiling rdrand-x86_64.linux.x86_64.S
[186/426] Compiling rsa.c
[186/426] Compiling self_check.c
[188/426] Compiling padding.c
[189/426] Compiling blinding.c
[190/426] Compiling rsa_impl.c
[191/426] Compiling p256_beeu-x86_64-asm.mac.x86_64.S
[192/426] Compiling rand.c
[193/426] Compiling p256_beeu-x86_64-asm.linux.x86_64.S
[194/426] Compiling fork_detect.c
[195/426] Compiling p256-x86_64-asm.mac.x86_64.S
[196/426] Compiling ctrdrbg.c
[197/426] Compiling p256-x86_64-asm.linux.x86_64.S
[198/426] Compiling polyval.c
[199/426] Compiling urandom.c
[200/426] Compiling ofb.c
[201/426] Compiling gcm_nohw.c
[202/426] Compiling cfb.c
[203/426] Compiling ctr.c
[204/426] Compiling gcm.c
[205/426] Compiling md5-x86_64.mac.x86_64.S
[206/426] Compiling md5.c
[207/426] Compiling cbc.c
[208/426] Compiling md5-586.windows.x86.S
[209/426] Compiling md5-586.linux.x86.S
[210/426] Compiling md5-x86_64.linux.x86_64.S
[211/426] Compiling is_fips.c
[212/426] Compiling ghashv8-armx64.linux.aarch64.S
[213/426] Compiling md4.c
[214/426] Compiling ghashv8-armx32.linux.arm.S
[215/426] Compiling hmac.c
[216/426] Compiling ghashv8-armx32.ios.arm.S
[217/426] Compiling ghash-x86_64.mac.x86_64.S
[218/426] Compiling ghash-x86.windows.x86.S
[219/426] Compiling ghashv8-armx64.ios.aarch64.S
[220/426] Compiling ghash-x86.linux.x86.S
[221/426] Compiling ghash-x86_64.linux.x86_64.S
[222/426] Compiling ghash-ssse3-x86_64.mac.x86_64.S
[223/426] Compiling ghash-ssse3-x86_64.linux.x86_64.S
[224/426] Compiling ghash-ssse3-x86.linux.x86.S
[225/426] Compiling ghash-neon-armv8.linux.aarch64.S
[226/426] Compiling ghash-ssse3-x86.windows.x86.S
[226/426] Compiling fips_shared_support.c
[228/426] Compiling ghash-armv4.ios.arm.S
[229/426] Compiling ghash-armv4.linux.arm.S
[230/426] Compiling ghash-neon-armv8.ios.aarch64.S
[231/426] Compiling util.c
[232/426] Compiling ecdsa.c
[233/426] Compiling wnaf.c
[234/426] Compiling ecdh.c
[235/426] Compiling simple.c
[236/426] Compiling scalar.c
[237/426] Compiling simple_mul.c
[238/426] Compiling oct.c
[239/426] Compiling felem.c
[240/426] Compiling p256.c
[241/426] Compiling p224-64.c
[242/426] Compiling ec_key.c
[243/426] Compiling ec_montgomery.c
[244/426] Compiling check.c
[245/426] Compiling ec.c
[246/426] Compiling digest.c
[247/426] Compiling digests.c
[248/426] Compiling dh.c
[249/426] Compiling co-586.windows.x86.S
[250/426] Compiling e_des.c
[251/426] Compiling des.c
[252/426] Compiling co-586.linux.x86.S
[253/426] Compiling cipher.c
[254/426] Compiling p256-x86_64.c
[255/426] Compiling bsaes-armv7.linux.arm.S
[256/426] Compiling bsaes-armv7.ios.arm.S
[257/426] Compiling sqrt.c
[258/426] Compiling e_aes.c
[258/426] Compiling aead.c
[260/426] Compiling rsaz_exp.c
[261/426] Compiling prime.c
[262/426] Compiling random.c
[263/426] Compiling shift.c
[264/426] Compiling generic.c
[264/426] Compiling montgomery.c
[266/426] Compiling mul.c
[266/426] Compiling gcd_extra.c
[266/426] Compiling montgomery_inv.c
[269/426] Compiling gcd.c
[269/426] Compiling jacobi.c
[271/426] Compiling cmp.c
[272/426] Compiling div_extra.c
[272/426] Compiling div.c
[274/426] Compiling exponentiation.c
[275/426] Compiling ctx.c
[276/426] Compiling bytes.c
[277/426] Compiling bn.c
[278/426] Compiling add.c
[279/426] Compiling bn-586.windows.x86.S
[280/426] Compiling x86_64-gcc.c
[281/426] Compiling armv8-mont.linux.aarch64.S
[282/426] Compiling bn-586.linux.x86.S
[283/426] Compiling armv8-mont.ios.aarch64.S
[284/426] Compiling armv4-mont.linux.arm.S
[285/426] Compiling armv4-mont.ios.arm.S
[286/426] Compiling aesv8-armx64.ios.aarch64.S
[287/426] Compiling aesni-x86_64.mac.x86_64.S
[287/426] Compiling aesv8-armx32.ios.arm.S
[289/426] Compiling aesv8-armx64.linux.aarch64.S
[290/426] Compiling aesv8-armx32.linux.arm.S
[291/426] Compiling aesni-x86_64.linux.x86_64.S
[292/426] Compiling aesni-x86.windows.x86.S
[293/426] Compiling aesni-x86.linux.x86.S
[294/426] Compiling aesni-gcm-x86_64.linux.x86_64.S
[295/426] Compiling mode_wrappers.c
[296/426] Compiling aesni-gcm-x86_64.mac.x86_64.S
[297/426] Compiling aes.c
[298/426] Compiling ex_data.c
[299/426] Compiling aes_nohw.c
[300/426] Compiling key_wrap.c
[301/426] Compiling sign.c
[302/426] Compiling p_rsa.c
[303/426] Compiling pbkdf.c
[304/426] Compiling scrypt.c
[305/426] Compiling print.c
[306/426] Compiling p_rsa_asn1.c
[307/426] Compiling p_x25519.c
[308/426] Compiling p_x25519_asn1.c
[309/426] Compiling p_ed25519_asn1.c
[310/426] Compiling p_ed25519.c
[311/426] Compiling p_ec_asn1.c
[312/426] Compiling p_dsa_asn1.c
[313/426] Compiling err_data.c
[314/426] Compiling p_ec.c
[315/426] Compiling digestsign.c
[316/426] Compiling evp_ctx.c
[317/426] Compiling evp_asn1.c
[318/426] Compiling evp.c
[319/426] Compiling err.c
[320/426] Compiling engine.c
[321/426] Compiling ecdh_extra.c
[322/426] Compiling ecdsa_asn1.c
[323/426] Compiling dsa_asn1.c
[324/426] Compiling ec_derive.c
[325/426] Compiling ec_asn1.c
[326/426] Compiling hash_to_curve.c
[327/426] Compiling dsa.c
[328/426] Compiling params.c
[329/426] Compiling digest_extra.c
[330/426] Compiling dh_asn1.c
[331/426] Compiling x25519-asm-arm.S
[332/426] Compiling cpu-ppc64le.c
[333/426] Compiling cpu-arm.c
[334/426] Compiling crypto.c
[335/426] Compiling cpu-arm-linux.c
[336/426] Compiling spake25519.c
[337/426] Compiling cpu-intel.c
[338/426] Compiling cpu-aarch64-win.c
[339/426] Compiling cpu-aarch64-linux.c
[340/426] Compiling cpu-aarch64-fuchsia.c
[341/426] Compiling e_rc4.c
[342/426] Compiling e_null.c
[343/426] Compiling cmac.c
[344/426] Compiling e_rc2.c
[345/426] Compiling tls_cbc.c
[346/426] Compiling e_tls.c
[347/426] Compiling e_chacha20poly1305.c
[348/426] Compiling derive_key.c
[349/426] Compiling e_aesgcmsiv.c
[350/426] Compiling e_aesctrhmac.c
[351/426] Compiling chacha20_poly1305_x86_64.mac.x86_64.S
[352/426] Compiling curve25519.c
[353/426] Compiling e_aesccm.c
[354/426] Compiling chacha-x86_64.mac.x86_64.S
[355/426] Compiling aes128gcmsiv-x86_64.mac.x86_64.S
[356/426] Compiling chacha-x86_64.linux.x86_64.S
[357/426] Compiling chacha20_poly1305_x86_64.linux.x86_64.S
[358/426] Compiling cipher_extra.c
[359/426] Compiling aes128gcmsiv-x86_64.linux.x86_64.S
[360/426] Compiling chacha-x86.linux.x86.S
[361/426] Compiling chacha-x86.windows.x86.S
[362/426] Compiling chacha-armv8.ios.aarch64.S
[363/426] Compiling chacha-armv8.linux.aarch64.S
[364/426] Compiling chacha-armv4.linux.arm.S
[365/426] Compiling chacha.c
[365/426] Compiling chacha-armv4.ios.arm.S
[367/426] Compiling unicode.c
[368/426] Compiling asn1_compat.c
[369/426] Compiling buf.c
[370/426] Compiling ber.c
[371/426] Compiling bn_asn1.c
[371/426] Compiling cbb.c
[373/426] Compiling cbs.c
[373/426] Compiling convert.c
[375/426] Compiling blake2.c
[376/426] Compiling socket_helper.c
[377/426] Compiling socket.c
[378/426] Compiling hexdump.c
[379/426] Compiling printf.c
[380/426] Compiling pair.c
[381/426] Compiling file.c
[382/426] Compiling fd.c
[383/426] Compiling base64.c
[384/426] Compiling time_support.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[386/426] Emitting module BKFoundation
/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/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 [#NominalTypes]
 76 | }
 77 |
 78 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 79 |     /// Shared url session, alias of URLSession.shared
 80 |     public static var _bk: URLSession { return .shared }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[387/426] 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
[387/426] Compiling bio_mem.c
[388/426] Compiling connect.c
[390/426] Compiling BKFoundation BKApp.swift
[391/426] Compiling BKFoundation BKSession.swift
/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")
[392/426] Compiling BKFoundation BKCookie.swift
/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 |         }
/host/spi-builder-workspace/Sources/BKFoundation/BKCookie.swift:151:38: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
149 |         for cookie in httpCookies where cookie.domain.hasSuffix("bilibili.com")
150 |             && CodingKeys.allCases.contains(where: { $0.rawValue == cookie.name }) {
151 |                 usefulCookies[cookie.name] = cookie.value
    |                                      `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
152 |         }
153 |         self.init(dictionary: usefulCookies)
/host/spi-builder-workspace/Sources/BKFoundation/BKCookie.swift:151:53: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
149 |         for cookie in httpCookies where cookie.domain.hasSuffix("bilibili.com")
150 |             && CodingKeys.allCases.contains(where: { $0.rawValue == cookie.name }) {
151 |                 usefulCookies[cookie.name] = cookie.value
    |                                                     `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
152 |         }
153 |         self.init(dictionary: usefulCookies)
[392/426] Compiling tasn_utl.c
[393/426] Compiling tasn_new.c
[394/426] Compiling bio.c
[396/426] Compiling BKFoundation Either.swift
[397/426] 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 |     ///
[398/426] 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 [#NominalTypes]
 76 | }
 77 |
 78 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 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>)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[398/426] Compiling tasn_typ.c
[399/426] Compiling f_enum.c
[399/426] Compiling f_int.c
[399/426] Compiling asn_pack.c
[399/426] Compiling tasn_dec.c
[399/426] Compiling f_string.c
[399/426] Compiling tasn_enc.c
[399/426] Compiling tasn_fre.c
BUILD FAILURE 6.2 linux