Build Information
Failed to build BilibiliKit, reference main (afbc9a
), with Swift 6.1 for Linux on 25 Apr 2025 23:06:28 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.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.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.1
Building package at path: $PWD
https://github.com/ApolloZhu/BilibiliKit.git
https://github.com/ApolloZhu/BilibiliKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-crypto",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.2",
"upper_bound" : "1.2.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-crypto"
}
],
"manifest_display_name" : "BilibiliKit",
"name" : "BilibiliKit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "macos",
"version" : "10.12"
},
{
"name" : "tvos",
"version" : "10.0"
},
{
"name" : "watchos",
"version" : "3.0"
}
],
"products" : [
{
"name" : "BilibiliKit",
"targets" : [
"BilibiliKit"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "BilibiliKitDYLIB",
"targets" : [
"BilibiliKit"
],
"type" : {
"library" : [
"dynamic"
]
}
}
],
"targets" : [
{
"c99name" : "BilibiliKitTests",
"module_type" : "SwiftTarget",
"name" : "BilibiliKitTests",
"path" : "Tests/BilibiliKitTests",
"sources" : [
"BilibiliKitTests.swift"
],
"target_dependencies" : [
"BilibiliKit"
],
"type" : "test"
},
{
"c99name" : "BilibiliKit",
"module_type" : "SwiftTarget",
"name" : "BilibiliKit",
"path" : "Sources/BilibiliKit",
"product_memberships" : [
"BilibiliKit",
"BilibiliKitDYLIB"
],
"sources" : [
"BKArticle+Info.swift",
"BKArticle.swift",
"BKCurrentUser.swift",
"BKLiveRoom+Info.swift",
"BKLiveRoom.swift",
"BKSession+PasswordLogin.swift",
"BKSession+QRCodeLoginHelper.swift",
"BKUpUser+Stat.swift",
"BKUpUser.swift",
"BKUser+AudioStat.swift",
"BKUser+Info.swift",
"BKUser+Relationship.swift",
"BKUser.swift",
"BKVideo+Info.swift",
"BKVideo+Page.swift",
"BKVideo+Stat.swift",
"BKVideo.swift",
"BilibiliKit.swift"
],
"target_dependencies" : [
"BKFoundation",
"BKSecurity",
"BKAudio"
],
"type" : "library"
},
{
"c99name" : "BKSecurity",
"module_type" : "SwiftTarget",
"name" : "BKSecurity",
"path" : "Sources/BKSecurity",
"product_dependencies" : [
"Crypto"
],
"product_memberships" : [
"BilibiliKit",
"BilibiliKitDYLIB"
],
"sources" : [
"BKSec.swift",
"MD5.swift",
"RSA.swift"
],
"target_dependencies" : [
"BKFoundation"
],
"type" : "library"
},
{
"c99name" : "BKFoundation",
"module_type" : "SwiftTarget",
"name" : "BKFoundation",
"path" : "Sources/BKFoundation",
"product_memberships" : [
"BilibiliKit",
"BilibiliKitDYLIB"
],
"sources" : [
"BKApp.swift",
"BKCookie.swift",
"BKError.swift",
"BKSession.swift",
"Either.swift",
"URL+Extensions.swift",
"URLSession+Extensions.swift"
],
"type" : "library"
},
{
"c99name" : "BKAudio",
"module_type" : "SwiftTarget",
"name" : "BKAudio",
"path" : "Sources/BKAudio",
"product_memberships" : [
"BilibiliKit",
"BilibiliKitDYLIB"
],
"sources" : [
"BKAudio+Info.swift",
"BKAudio+Staff.swift",
"BKAudio+URLs.swift",
"BKAudio.swift"
],
"target_dependencies" : [
"BKFoundation"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/apple/swift-crypto
[1/13784] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto from cache (1.30s)
Computing version for https://github.com/apple/swift-crypto
Computed https://github.com/apple/swift-crypto at 1.1.7 (1.78s)
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
[4/418] Compiling sha256-586.linux.x86.S
[5/418] Compiling sha256-586.windows.x86.S
[6/418] Compiling sha1-x86_64.mac.x86_64.S
[7/418] Compiling sha256-armv4.ios.arm.S
[8/418] Compiling a_i2d_fp.c
[9/418] Compiling a_enum.c
[9/418] Compiling a_gentm.c
[11/418] Write swift-version-24593BA9C3E375BF.txt
[12/418] Compiling v3_skey.c
[13/418] Compiling v3_purp.c
[14/418] Compiling v3_prn.c
[15/418] Compiling v3_pcons.c
[16/418] Compiling v3_pmaps.c
[17/418] Compiling v3_utl.c
[18/418] Compiling CCryptoBoringSSLShims shims.c
[19/418] Compiling v3_pcia.c
[20/426] Compiling v3_ocsp.c
[21/426] Compiling v3_ncons.c
[22/426] Compiling v3_lib.c
[23/426] Compiling v3_int.c
[24/426] Compiling v3_info.c
[24/426] Compiling v3_pci.c
[26/426] Compiling v3_ia5.c
[27/426] Compiling v3_genn.c
[28/426] Compiling v3_enum.c
[29/426] Compiling v3_extku.c
[30/426] Compiling v3_conf.c
[31/426] Compiling v3_crld.c
[32/426] Compiling v3_cpols.c
[33/426] Compiling v3_bitst.c
[34/426] Compiling v3_bcons.c
[35/426] Compiling v3_akeya.c
[36/426] Compiling v3_akey.c
[37/426] Compiling v3_alt.c
[38/426] Compiling pcy_node.c
[39/426] Compiling pcy_tree.c
[40/426] Compiling pcy_map.c
[41/426] Compiling x_x509a.c
[42/426] Compiling pcy_lib.c
[43/426] Compiling pcy_data.c
[44/426] Compiling pcy_cache.c
[44/426] Compiling x_val.c
[46/426] Compiling x_x509.c
[47/426] Compiling x_spki.c
[47/426] Compiling x_sig.c
[49/426] Compiling x_req.c
[50/426] Compiling x_pubkey.c
[51/426] Compiling x_pkey.c
[52/426] Compiling x_info.c
[53/426] Compiling x_exten.c
[53/426] Compiling x_name.c
[55/426] Compiling x_crl.c
[56/426] Compiling x_attrib.c
[57/426] Compiling x_algor.c
[58/426] Compiling x509spki.c
[59/426] Compiling x_all.c
[59/426] Compiling x509rset.c
[61/426] Compiling x509name.c
[62/426] Compiling x509cset.c
[63/426] Compiling x509_txt.c
[64/426] Compiling x509_vpm.c
[65/426] Compiling x509_set.c
[66/426] Compiling x509_v3.c
[67/426] Compiling x509_trs.c
[68/426] Compiling x509_req.c
[69/426] Compiling x509_vfy.c
[70/426] Compiling x509_obj.c
[71/426] Compiling x509_ext.c
[72/426] Compiling x509_def.c
[73/426] Compiling x509_d2.c
[74/426] Compiling x509_cmp.c
[75/426] Compiling x509_lu.c
[76/426] Compiling t_x509a.c
[77/426] Compiling x509_att.c
[78/426] Compiling x509.c
[79/426] Compiling t_req.c
[80/426] Compiling i2d_pr.c
[81/426] Compiling by_file.c
[82/426] Compiling t_x509.c
[83/426] Compiling t_crl.c
[84/426] Compiling rsa_pss.c
[85/426] Compiling a_verify.c
[86/426] Compiling by_dir.c
[87/426] Compiling a_strex.c
[88/426] Compiling a_sign.c
[89/426] Compiling algorithm.c
[90/426] Compiling asn1_gen.c
[91/426] Compiling thread_win.c
[92/426] Compiling thread.c
[93/426] Compiling thread_none.c
[94/426] Compiling thread_pthread.c
[94/426] Compiling a_digest.c
[96/426] Compiling voprf.c
[97/426] Compiling stack.c
[98/426] Compiling rsa_print.c
[99/426] Compiling rc4.c
[100/426] Compiling refcount_c11.c
[101/426] Compiling refcount_lock.c
[102/426] Compiling siphash.c
[102/426] Compiling pmbtoken.c
[104/426] Compiling trust_token.c
[105/426] Compiling windows.c
[105/426] Compiling rand_extra.c
[107/426] Compiling rsa_asn1.c
[108/426] Compiling fuchsia.c
[109/426] Compiling deterministic.c
[109/426] Compiling passive.c
[111/426] Compiling forkunsafe.c
[112/426] Compiling poly1305_arm_asm.S
[113/426] Compiling poly1305_arm.c
[114/426] Compiling pool.c
[115/426] Compiling poly1305.c
[116/426] Compiling poly1305_vec.c
[117/426] Compiling pkcs7.c
[118/426] Compiling pkcs8.c
[119/426] Compiling p5_pbev2.c
[120/426] Compiling pem_xaux.c
[121/426] Compiling pkcs8_x509.c
[122/426] Compiling pkcs7_x509.c
[123/426] Compiling pem_x509.c
[124/426] Compiling pem_pk8.c
[125/426] Compiling pem_oth.c
[126/426] Compiling pem_pkey.c
[127/426] Compiling obj_xref.c
[128/426] Compiling pem_info.c
[129/426] Compiling lhash.c
[130/426] Compiling mem.c
[131/426] Compiling pem_lib.c
[132/426] Compiling pem_all.c
[133/426] Compiling x86_64-mont5.mac.x86_64.S
[134/426] Compiling hkdf.c
[135/426] Compiling obj.c
[136/426] Compiling poly_rq_mul.S
[137/426] Compiling x86_64-mont.mac.x86_64.S
[138/426] Compiling hpke.c
[139/426] Compiling x86_64-mont5.linux.x86_64.S
[140/426] Compiling x86-mont.windows.x86.S
[141/426] Compiling x86_64-mont.linux.x86_64.S
[142/426] Compiling vpaes-x86_64.mac.x86_64.S
[143/426] Compiling x86-mont.linux.x86.S
[144/426] Compiling vpaes-x86.windows.x86.S
[145/426] Compiling hrss.c
[146/426] Compiling vpaes-x86_64.linux.x86_64.S
[147/426] Compiling vpaes-x86.linux.x86.S
[148/426] Compiling vpaes-armv8.ios.aarch64.S
[148/426] Compiling vpaes-armv8.linux.aarch64.S
[150/426] Compiling vpaes-armv7.linux.arm.S
[151/426] Compiling vpaes-armv7.ios.arm.S
[152/426] Compiling sha512-x86_64.mac.x86_64.S
[153/426] Compiling sha512-armv8.linux.aarch64.S
[154/426] Compiling sha512-x86_64.linux.x86_64.S
[155/426] Compiling kdf.c
[156/426] Compiling sha512-armv4.linux.arm.S
[157/426] Compiling sha512-armv8.ios.aarch64.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-armv8.ios.aarch64.S
[164/426] Compiling sha256-armv4.linux.arm.S
[165/426] Compiling sha256-x86_64.linux.x86_64.S
[166/426] Compiling sha1-armv8.linux.aarch64.S
[167/426] Compiling sha1-armv8.ios.aarch64.S
[168/426] Compiling sha1-armv4-large.linux.arm.S
[169/426] Compiling sha1-armv4-large.ios.arm.S
[170/426] Compiling sha1-x86_64.linux.x86_64.S
[171/426] Compiling sha1-586.windows.x86.S
[172/426] Compiling sha1-586.linux.x86.S
[173/426] Compiling sha1-altivec.c
[174/426] Compiling sha256.c
[174/426] Compiling sha512.c
[176/426] Compiling sha1.c
[177/426] Compiling rsaz-avx2.mac.x86_64.S
[178/426] Compiling rsaz-avx2.linux.x86_64.S
[179/426] Compiling blinding.c
[180/426] Compiling rdrand-x86_64.mac.x86_64.S
[181/426] Compiling self_check.c
[182/426] Compiling rdrand-x86_64.linux.x86_64.S
[183/426] Compiling rsa_impl.c
[183/426] Compiling padding.c
[185/426] Compiling rsa.c
[186/426] Compiling rand.c
[187/426] Compiling p256-x86_64-asm.mac.x86_64.S
[188/426] Compiling fork_detect.c
[189/426] Compiling p256_beeu-x86_64-asm.linux.x86_64.S
[190/426] Compiling p256_beeu-x86_64-asm.mac.x86_64.S
[191/426] Compiling urandom.c
[192/426] Compiling ctrdrbg.c
[193/426] Compiling p256-x86_64-asm.linux.x86_64.S
[194/426] Compiling ofb.c
[195/426] Compiling gcm_nohw.c
[196/426] Compiling polyval.c
[197/426] Compiling gcm.c
[198/426] Compiling ctr.c
[199/426] Compiling cfb.c
[200/426] Compiling cbc.c
[201/426] Compiling md5-x86_64.linux.x86_64.S
[202/426] Compiling md5.c
[203/426] Compiling md5-x86_64.mac.x86_64.S
[204/426] Compiling md5-586.linux.x86.S
[205/426] Compiling md5-586.windows.x86.S
[206/426] Compiling is_fips.c
[207/426] Compiling ghashv8-armx64.ios.aarch64.S
[208/426] Compiling ghashv8-armx64.linux.aarch64.S
[209/426] Compiling md4.c
[210/426] Compiling ghashv8-armx32.linux.arm.S
[211/426] Compiling ghashv8-armx32.ios.arm.S
[212/426] Compiling hmac.c
[213/426] Compiling ghash-x86_64.mac.x86_64.S
[214/426] Compiling ghash-ssse3-x86_64.mac.x86_64.S
[215/426] Compiling ghash-x86.windows.x86.S
[216/426] Compiling ghash-x86_64.linux.x86_64.S
[217/426] Compiling ghash-x86.linux.x86.S
[218/426] Compiling ghash-ssse3-x86_64.linux.x86_64.S
[219/426] Compiling ghash-ssse3-x86.windows.x86.S
[220/426] Compiling ghash-ssse3-x86.linux.x86.S
[221/426] Compiling ghash-neon-armv8.linux.aarch64.S
[222/426] Compiling ghash-neon-armv8.ios.aarch64.S
[223/426] Compiling fips_shared_support.c
[224/426] Compiling ghash-armv4.ios.arm.S
[225/426] Compiling ghash-armv4.linux.arm.S
[226/426] Compiling ecdsa.c
[226/426] Compiling ecdh.c
[228/426] Compiling wnaf.c
[229/426] Compiling simple_mul.c
[230/426] Compiling util.c
[231/426] Compiling simple.c
[232/426] Compiling scalar.c
[233/426] Compiling oct.c
[234/426] Compiling felem.c
[235/426] Compiling p256.c
[236/426] Compiling p224-64.c
[237/426] Compiling ec_montgomery.c
[238/426] Compiling ec_key.c
[239/426] Compiling dh.c
[240/426] Compiling check.c
[241/426] Compiling digests.c
[242/426] Compiling digest.c
[243/426] Compiling co-586.windows.x86.S
[244/426] Compiling ec.c
[245/426] Compiling co-586.linux.x86.S
[246/426] Compiling bsaes-armv7.linux.arm.S
[247/426] Compiling cipher.c
[248/426] Compiling des.c
[249/426] Compiling e_des.c
[250/426] Compiling e_aes.c
[251/426] Compiling aead.c
[252/426] Compiling p256-x86_64.c
[253/426] Compiling bsaes-armv7.ios.arm.S
[254/426] Compiling sqrt.c
[255/426] Compiling shift.c
[256/426] Compiling rsaz_exp.c
[257/426] Compiling prime.c
[258/426] Compiling montgomery_inv.c
[259/426] Compiling mul.c
[260/426] Compiling random.c
[261/426] Compiling jacobi.c
[262/426] Compiling generic.c
[262/426] Compiling montgomery.c
[264/426] Compiling gcd_extra.c
[265/426] Compiling gcd.c
[266/426] Compiling div_extra.c
[267/426] Compiling ctx.c
[268/426] Compiling exponentiation.c
[269/426] Compiling div.c
[270/426] Compiling cmp.c
[271/426] Compiling bytes.c
[272/426] Compiling bn.c
[273/426] Compiling bn-586.windows.x86.S
[274/426] Compiling bn-586.linux.x86.S
[275/426] Compiling add.c
[276/426] Compiling armv8-mont.ios.aarch64.S
[277/426] Compiling armv8-mont.linux.aarch64.S
[278/426] Compiling aesv8-armx64.linux.aarch64.S
[279/426] Compiling armv4-mont.linux.arm.S
[280/426] Compiling x86_64-gcc.c
[281/426] Compiling armv4-mont.ios.arm.S
[282/426] Compiling aesv8-armx64.ios.aarch64.S
[283/426] Compiling aesv8-armx32.ios.arm.S
[283/426] Compiling aesv8-armx32.linux.arm.S
[285/426] Compiling aesni-x86_64.mac.x86_64.S
[286/426] Compiling aesni-x86.windows.x86.S
[287/426] Compiling aesni-x86.linux.x86.S
[288/426] Compiling aesni-x86_64.linux.x86_64.S
[289/426] Compiling aesni-gcm-x86_64.mac.x86_64.S
[290/426] Compiling aesni-gcm-x86_64.linux.x86_64.S
[291/426] Compiling mode_wrappers.c
[292/426] Compiling key_wrap.c
[293/426] Compiling aes.c
[294/426] Compiling sign.c
[295/426] Compiling ex_data.c
[296/426] Compiling scrypt.c
[297/426] Compiling pbkdf.c
[298/426] Compiling aes_nohw.c
[299/426] Compiling print.c
[300/426] Compiling p_x25519.c
[300/426] Compiling p_x25519_asn1.c
[302/426] Compiling p_rsa_asn1.c
[303/426] Compiling p_ed25519.c
[304/426] Compiling p_ed25519_asn1.c
[305/426] Compiling p_rsa.c
[306/426] Compiling p_ec_asn1.c
[307/426] Compiling p_ec.c
[308/426] Compiling p_dsa_asn1.c
[309/426] Compiling err_data.c
[309/426] Compiling evp_ctx.c
[311/426] Compiling digestsign.c
[312/426] Compiling evp.c
[312/426] Compiling evp_asn1.c
[314/426] Compiling ecdh_extra.c
[314/426] Compiling err.c
[316/426] Compiling ecdsa_asn1.c
[317/426] Compiling engine.c
[318/426] Compiling hash_to_curve.c
[319/426] Compiling ec_derive.c
[320/426] Compiling dsa_asn1.c
[321/426] Compiling dsa.c
[322/426] Compiling ec_asn1.c
[323/426] Compiling digest_extra.c
[324/426] Compiling params.c
[324/426] Compiling dh_asn1.c
[326/426] Compiling cpu-ppc64le.c
[327/426] Compiling x25519-asm-arm.S
[328/426] Compiling spake25519.c
[329/426] Compiling cpu-arm.c
[329/426] Compiling cpu-arm-linux.c
[331/426] Compiling crypto.c
[332/426] Compiling cpu-aarch64-win.c
[333/426] Compiling cpu-intel.c
[334/426] Compiling cpu-aarch64-linux.c
[335/426] Compiling cpu-aarch64-fuchsia.c
[336/426] Compiling curve25519.c
[337/426] Compiling e_rc4.c
[339/426] 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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- 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")
[340/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
/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 |
[340/426] Compiling cmac.c
[342/426] 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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- 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 | }
[342/426] Compiling tls_cbc.c
[343/426] Compiling conf.c
[344/426] Compiling e_tls.c
[345/426] Compiling e_rc2.c
[346/426] Compiling e_aesgcmsiv.c
[347/426] Compiling e_null.c
[348/426] Compiling derive_key.c
[350/426] Compiling BKFoundation BKApp.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[351/426] 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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- 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 }
[351/426] Compiling e_aesctrhmac.c
[352/426] Compiling e_chacha20poly1305.c
[353/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
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>)
[354/426] Compiling e_aesccm.c
[355/426] Compiling cipher_extra.c
[356/426] Compiling chacha20_poly1305_x86_64.mac.x86_64.S
[358/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 | ///
[358/426] Compiling aes128gcmsiv-x86_64.mac.x86_64.S
[359/426] Compiling chacha-x86_64.mac.x86_64.S
[361/426] Compiling BKFoundation Either.swift
[361/426] Compiling aes128gcmsiv-x86_64.linux.x86_64.S
[362/426] Compiling chacha20_poly1305_x86_64.linux.x86_64.S
[363/426] Compiling chacha.c
[364/426] Compiling chacha-x86_64.linux.x86_64.S
[365/426] Compiling chacha-x86.linux.x86.S
[366/426] Compiling chacha-x86.windows.x86.S
[367/426] Compiling chacha-armv8.linux.aarch64.S
[368/426] Compiling chacha-armv8.ios.aarch64.S
[368/426] Compiling cbb.c
[368/426] Compiling ber.c
[368/426] Compiling chacha-armv4.ios.arm.S
[368/426] Compiling cbs.c
[368/426] Compiling unicode.c
[368/426] Compiling chacha-armv4.linux.arm.S
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/59] Compiling chacha-armv4.ios.arm.S
[1/59] Compiling unicode.c
[2/59] Compiling chacha-armv4.linux.arm.S
[3/59] Compiling chacha-armv8.ios.aarch64.S
[4/59] Compiling ber.c
[5/59] Compiling asn1_compat.c
[6/59] Compiling cbs.c
[7/59] Compiling cbb.c
[8/59] Compiling buf.c
[9/59] Compiling bn_asn1.c
[10/59] Compiling blake2.c
[11/59] Compiling socket_helper.c
[12/59] Compiling printf.c
[13/59] Compiling convert.c
[14/59] Compiling socket.c
[15/59] Compiling hexdump.c
[16/59] Compiling pair.c
[17/59] Compiling file.c
[18/59] Compiling fd.c
[19/59] Compiling bio_mem.c
[20/59] Compiling connect.c
[21/59] Compiling base64.c
[22/59] Write swift-version-24593BA9C3E375BF.txt
[23/59] Compiling time_support.c
[24/59] Compiling bio.c
[25/59] Compiling tasn_utl.c
[26/59] Compiling tasn_typ.c
[27/59] Compiling tasn_fre.c
[28/59] Compiling tasn_new.c
[29/59] Compiling tasn_enc.c
[30/59] Compiling f_string.c
[31/59] Compiling tasn_dec.c
[32/59] Compiling f_int.c
[33/59] Compiling f_enum.c
[34/59] Compiling asn_pack.c
[35/59] Compiling asn1_par.c
[36/61] Compiling a_utf8.c
[37/63] Compiling asn1_lib.c
[38/65] Compiling a_utctm.c
[39/67] Compiling a_print.c
[39/67] Compiling a_type.c
[41/67] Compiling a_strnid.c
[42/67] Compiling a_time.c
[43/67] Compiling a_octet.c
[44/67] Compiling a_mbstr.c
[45/67] Write sources
[46/67] Compiling a_object.c
[47/67] Compiling a_dup.c
[48/67] Compiling a_bitstr.c
[50/67] 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
[50/67] Compiling a_d2i_fp.c
[51/67] Compiling a_bool.c
[52/67] Compiling a_int.c
[54/67] Compiling BKFoundation Either.swift
[55/67] 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")
[56/67] 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>)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[57/67] Compiling BKFoundation BKApp.swift
[58/67] 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
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 }
[59/67] 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 | }
[60/67] 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 | ///
BUILD FAILURE 6.1 linux