The Swift Package Index logo.Swift Package Index

Build Information

Failed to build LineBot, reference master (4ec163), with Swift 6.4 for Linux on 15 Sep 2026 22:17:38 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/happiness9721/line-bot-sdk-swift.git
Reference: master
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/happiness9721/line-bot-sdk-swift
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 4ec1638 Merge pull request #6 from happiness9721/develop
Cloned https://github.com/happiness9721/line-bot-sdk-swift.git
Revision (git rev-parse @):
4ec16382ba1ee0b94802a1a5aac1735846fb2002
SUCCESS checkout https://github.com/happiness9721/line-bot-sdk-swift.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.4
Building package at path:  $PWD
https://github.com/happiness9721/line-bot-sdk-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:c77fcce225e223ac0fafed844619173fc6de8d62dd560eeb28db3182af6a282b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest
Fetching https://github.com/IBM-Swift/BlueCryptor.git
[1/1658] Fetching bluecryptor
Fetched https://github.com/IBM-Swift/BlueCryptor.git (0.52s)
Computing version for https://github.com/IBM-Swift/BlueCryptor.git
Computed https://github.com/IBM-Swift/BlueCryptor.git at 1.0.200 (1.57s)
Fetching https://github.com/Kitura/OpenSSL.git
[1/203] Fetching openssl
Fetched https://github.com/Kitura/OpenSSL.git (0.46s)
Computing version for https://github.com/Kitura/OpenSSL.git
Computed https://github.com/Kitura/OpenSSL.git at 2.3.1 (1.52s)
Creating working copy for https://github.com/IBM-Swift/BlueCryptor.git
Working copy of https://github.com/IBM-Swift/BlueCryptor.git resolved at 1.0.200
Creating working copy for https://github.com/Kitura/OpenSSL.git
Working copy of https://github.com/Kitura/OpenSSL.git resolved at 2.3.1
Building for debugging...
[Pre-planning 1 / 98]
[24 / 39] Cryptor
[34 / 49] Cryptor
[42 / 59] LineBot
[47 / 59] LineBot
[48 / 59] LineBot
error: SwiftCompile normal x86_64 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:16:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |   internal let channelSecret: String
 15 |   internal let endPoint: String
 16 |   internal let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |
 18 |   public init(accessToken: String, channelSecret: String, endPoint: String? = nil) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:47:3: warning: 'public' modifier is redundant for instance method declared in a public extension
 45 | public extension LineBot {
 46 |
 47 |   public func reply(token: String, messages: [LineMessage], completionHandler: ((Data?) -> ())? = nil) {
    |   `- warning: 'public' modifier is redundant for instance method declared in a public extension
 48 |     let body: [String: Any] = [
 49 |       "replyToken": token,
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:58:3: warning: 'public' modifier is redundant for instance method declared in a public extension
 56 |   }
 57 |
 58 |   public func push(userId: String, messages: [LineMessage], completionHandler: ((Data?) -> ())? = nil) {
    |   `- warning: 'public' modifier is redundant for instance method declared in a public extension
 59 |     let body: [String: Any] = [
 60 |       "to": userId,
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:69:3: warning: 'public' modifier is redundant for instance method declared in a public extension
 67 |   }
 68 |
 69 |   public func multicast(to: [String], messages: [LineMessage], completionHandler: ((Data?) -> ())? = nil) {
    |   `- warning: 'public' modifier is redundant for instance method declared in a public extension
 70 |     let body: [String: Any] = [
 71 |       "to": to,
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:80:3: warning: 'public' modifier is redundant for instance method declared in a public extension
 78 |   }
 79 |
 80 |   public func getMessageContent(identifier: String, completionHandler: ((Data?) -> ())? = nil) {
    |   `- warning: 'public' modifier is redundant for instance method declared in a public extension
 81 |     let request = makeRequest(method: "GET",
 82 |                               path: "/bot/message/\(identifier)/content")
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:86:88: error: cannot find type 'URLRequest' in scope
 84 |   }
 85 |
 86 |   private func makeRequest(method: String, path: String, body: [String: Any] = [:]) -> URLRequest {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
 87 |     var request = URLRequest(url: URL(string: endPoint + path)!)
 88 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:103:3: warning: 'public' modifier is redundant for instance method declared in a public extension
101 | public extension LineBot {
102 |
103 |   public func getProfile(userId: String, completionHandler: ((Data?) -> ())? = nil) {
    |   `- warning: 'public' modifier is redundant for instance method declared in a public extension
104 |     let request = makeRequest(method: "GET",
105 |                               path: "/bot/profile/\(userId)/content")
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:114:3: warning: 'public' modifier is redundant for instance method declared in a public extension
112 | public extension LineBot {
113 |
114 |   public func getProfile(groupId: String, userId: String, completionHandler: ((Data?) -> ())? = nil) {
    |   `- warning: 'public' modifier is redundant for instance method declared in a public extension
115 |     let request = makeRequest(method: "GET",
116 |                               path: "/bot/group/\(groupId)/member/\(userId)")
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:120:3: warning: 'public' modifier is redundant for instance method declared in a public extension
118 |   }
119 |
120 |   public func getMemberIds(groupId: String, continuationToken: String? = nil, completionHandler: ((Data?) -> ())? = nil) {
    |   `- warning: 'public' modifier is redundant for instance method declared in a public extension
121 |     var path = "/bot/group/\(groupId)/members/ids"
122 |     if let continuationToken = continuationToken {
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:129:3: warning: 'public' modifier is redundant for instance method declared in a public extension
127 |   }
128 |
129 |   public func leave(groupId: String, completionHandler: ((Data?) -> ())? = nil) {
    |   `- warning: 'public' modifier is redundant for instance method declared in a public extension
130 |     let request = makeRequest(method: "POST",
131 |                               path: "/bot/group/\(groupId)/leave")
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:140:3: warning: 'public' modifier is redundant for instance method declared in a public extension
138 | public extension LineBot {
139 |
140 |   public func getProfile(roomId: String, userId: String, completionHandler: ((Data?) -> ())? = nil) {
    |   `- warning: 'public' modifier is redundant for instance method declared in a public extension
141 |     let request = makeRequest(method: "GET",
142 |                               path: "/bot/room/\(roomId)/member/\(userId)")
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:146:3: warning: 'public' modifier is redundant for instance method declared in a public extension
144 |   }
145 |
146 |   public func getMemberIds(roomId: String, continuationToken: String? = nil, completionHandler: ((Data?) -> ())? = nil) {
    |   `- warning: 'public' modifier is redundant for instance method declared in a public extension
147 |     var path = "/bot/room/\(roomId)/members/ids"
148 |     if let continuationToken = continuationToken {
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:155:3: warning: 'public' modifier is redundant for instance method declared in a public extension
153 |   }
154 |
155 |   public func leave(roomId: String, completionHandler: ((Data?) -> ())? = nil) {
    |   `- warning: 'public' modifier is redundant for instance method declared in a public extension
156 |     let request = makeRequest(method: "POST",
157 |                               path: "/bot/room/\(roomId)/leave")
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:163:13: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
161 | }
162 |
163 | fileprivate extension URLSession {
    |             `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
164 |
165 |   fileprivate func sendRequest(request: URLRequest, completionHandler: ((Data?) -> ())? = nil) {
/host/spi-builder-workspace/Sources/LineBot/LineMessage/LineAction.swift:29:3: warning: 'internal' modifier is redundant for instance method declared in an internal extension
27 | internal extension LineAction {
28 |
29 |   internal func toDict() -> [String: Any] {
   |   `- warning: 'internal' modifier is redundant for instance method declared in an internal extension
30 |     var dict = [String: Any]()
31 |     switch self {
/host/spi-builder-workspace/Sources/LineBot/LineMessage/LineImagemapAction.swift:19:3: warning: 'internal' modifier is redundant for instance method declared in an internal extension
17 | internal extension LineImagemapAction {
18 |
19 |   internal func toDict() -> [String: Any] {
   |   `- warning: 'internal' modifier is redundant for instance method declared in an internal extension
20 |     var dict = [String: Any]()
21 |     switch self {
/host/spi-builder-workspace/Sources/LineBot/LineMessage/LineMessage.swift:25:3: warning: 'internal' modifier is redundant for instance method declared in an internal extension
23 | internal extension LineMessage {
24 |
25 |   internal func toDict() -> [String: Any] {
   |   `- warning: 'internal' modifier is redundant for instance method declared in an internal extension
26 |     switch self {
27 |     case .text(let text):
/host/spi-builder-workspace/Sources/LineBot/LineMessage/LineTemplate.swift:129:3: warning: 'internal' modifier is redundant for instance method declared in an internal extension
127 | internal extension LineTemplate {
128 |
129 |   internal func toDict() -> [String: Any] {
    |   `- warning: 'internal' modifier is redundant for instance method declared in an internal extension
130 |     var dict = [String: Any]()
131 |     switch self {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/LineBot/LineBot.swift /host/spi-builder-workspace/Sources/LineBot/LineEvent/LineEvent.swift /host/spi-builder-workspace/Sources/LineBot/LineEvent/LineEventMessage.swift /host/spi-builder-workspace/Sources/LineBot/LineEvent/LineWebhook.swift /host/spi-builder-workspace/Sources/LineBot/LineMessage/LineAction.swift /host/spi-builder-workspace/Sources/LineBot/LineMessage/LineArea.swift /host/spi-builder-workspace/Sources/LineBot/LineMessage/LineImagemapAction.swift /host/spi-builder-workspace/Sources/LineBot/LineMessage/LineMessage.swift /host/spi-builder-workspace/Sources/LineBot/LineMessage/LineTemplate.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 4 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/OpenSSL/Sources/OpenSSL/module.modulemap -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/LineBot.build/Debug-linux-x86_64/LineBot-t.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/LineBot.build/Debug-linux-x86_64/LineBot-t.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/LineBot.build/Debug-linux-x86_64/LineBot-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name LineBot -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/LineBot.build/Debug-linux-x86_64/LineBot-t.build/Objects-normal/x86_64/LineBot_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/LineBot.build/Debug-linux-x86_64/LineBot-t.build/Objects-normal/x86_64/Modules/LineBot.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/LineBot.build/Debug-linux-x86_64/LineBot-t.build/Objects-normal/x86_64/Modules/LineBot.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/LineBot.build/Debug-linux-x86_64/LineBot-t.build/Objects-normal/x86_64/LineBot-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/LineBot.build/Debug-linux-x86_64/LineBot-t.build/Objects-normal/x86_64/LineBot-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/LineBot.build/Debug-linux-x86_64/LineBot-t.build/Objects-normal/x86_64/LineBot-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LineBot.build/Debug-linux-x86_64/LineBot-t.build/Objects-normal/x86_64/Modules/LineBot.swiftmodule
error: Build failed
BUILD FAILURE 6.4 linux