This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

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

Build Information

Failed to build LineBot, reference 2.0.2 (4ec163), with Swift 6.0 (beta) for Linux on 20 Jul 2024 12:21:29 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.46.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/happiness9721/line-bot-sdk-swift.git
Reference: 2.0.2
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
 * tag               2.0.2      -> FETCH_HEAD
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 2.0.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/happiness9721/line-bot-sdk-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:2437f24e80aef9b25b1058900b2010a68c7690bc33114243769a5a7e8e97de91
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/IBM-Swift/BlueCryptor.git
[1/1652] Fetching bluecryptor
Fetched https://github.com/IBM-Swift/BlueCryptor.git from cache (0.22s)
Computing version for https://github.com/IBM-Swift/BlueCryptor.git
Computed https://github.com/IBM-Swift/BlueCryptor.git at 1.0.200 (1.25s)
Fetching https://github.com/Kitura/OpenSSL.git
[1/203] Fetching openssl
Fetched https://github.com/Kitura/OpenSSL.git from cache (0.16s)
Computing version for https://github.com/Kitura/OpenSSL.git
Computed https://github.com/Kitura/OpenSSL.git at 2.3.1 (1.24s)
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...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/14] Compiling Cryptor SSLPointerTricks.swift
[5/15] Compiling Cryptor StreamCryptor.swift
[6/15] Compiling Cryptor Updatable.swift
[7/15] Compiling Cryptor Crypto.swift
[8/15] Compiling Cryptor Cryptor.swift
[9/15] Emitting module Cryptor
[10/15] Compiling Cryptor Digest.swift
[11/15] Compiling Cryptor HMAC.swift
[12/15] Compiling Cryptor KeyDerivation.swift
[13/15] Compiling Cryptor Random.swift
[14/15] Compiling Cryptor Status.swift
[15/15] Compiling Cryptor Utilities.swift
[17/25] Compiling LineBot LineAction.swift
/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 {
[18/26] Compiling LineBot LineWebhook.swift
[19/26] Compiling LineBot LineArea.swift
[20/26] Compiling LineBot LineImagemapAction.swift
/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 {
[21/26] Compiling LineBot LineMessage.swift
/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):
error: emit-module command failed with exit code 1 (use -v to see invocation)
[22/26] Compiling LineBot LineEventMessage.swift
[23/26] Emitting module LineBot
/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
161 | }
162 |
163 | fileprivate extension URLSession {
    |             `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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 {
[24/26] Compiling LineBot LineBot.swift
/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
161 | }
162 |
163 | fileprivate extension URLSession {
    |             `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
164 |
165 |   fileprivate func sendRequest(request: URLRequest, completionHandler: ((Data?) -> ())? = nil) {
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:22:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 20 |     self.channelSecret = channelSecret
 21 |     self.endPoint = endPoint ?? "https://api.line.me/v2"
 22 |     self.session = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
    |                    `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 23 |   }
 24 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:22:47: error: cannot infer contextual base in reference to member 'default'
 20 |     self.channelSecret = channelSecret
 21 |     self.endPoint = endPoint ?? "https://api.line.me/v2"
 22 |     self.session = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
    |                                               `- error: cannot infer contextual base in reference to member 'default'
 23 |   }
 24 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:22:66: error: 'nil' requires a contextual type
 20 |     self.channelSecret = channelSecret
 21 |     self.endPoint = endPoint ?? "https://api.line.me/v2"
 22 |     self.session = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
    |                                                                  `- error: 'nil' requires a contextual type
 23 |   }
 24 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:22:86: error: 'nil' requires a contextual type
 20 |     self.channelSecret = channelSecret
 21 |     self.endPoint = endPoint ?? "https://api.line.me/v2"
 22 |     self.session = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
    |                                                                                      `- error: 'nil' requires a contextual type
 23 |   }
 24 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:55:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
 53 |                               path: "/bot/message/reply",
 54 |                               body: body)
 55 |     session.sendRequest(request: request, completionHandler: completionHandler)
    |             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
 56 |   }
 57 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:66:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
 64 |                               path: "/bot/message/push",
 65 |                               body: body)
 66 |     session.sendRequest(request: request, completionHandler: completionHandler)
    |             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
 67 |   }
 68 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:77:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
 75 |                               path: "/bot/message/multicast",
 76 |                               body: body)
 77 |     session.sendRequest(request: request, completionHandler: completionHandler)
    |             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
 78 |   }
 79 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:83:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
 81 |     let request = makeRequest(method: "GET",
 82 |                               path: "/bot/message/\(identifier)/content")
 83 |     session.sendRequest(request: request, completionHandler: completionHandler)
    |             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
 84 |   }
 85 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:87:19: error: cannot find 'URLRequest' in scope
 85 |
 86 |   private func makeRequest(method: String, path: String, body: [String: Any] = [:]) -> URLRequest {
 87 |     var request = URLRequest(url: URL(string: endPoint + path)!)
    |                   `- error: cannot find 'URLRequest' in scope
 88 |
 89 |     request.httpMethod = method
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:106:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
104 |     let request = makeRequest(method: "GET",
105 |                               path: "/bot/profile/\(userId)/content")
106 |     session.sendRequest(request: request, completionHandler: completionHandler)
    |             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
107 |   }
108 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:117:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
115 |     let request = makeRequest(method: "GET",
116 |                               path: "/bot/group/\(groupId)/member/\(userId)")
117 |     session.sendRequest(request: request, completionHandler: completionHandler)
    |             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
118 |   }
119 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:126:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
124 |     }
125 |     let request = makeRequest(method: "GET", path: path)
126 |     session.sendRequest(request: request, completionHandler: completionHandler)
    |             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
127 |   }
128 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:132:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
130 |     let request = makeRequest(method: "POST",
131 |                               path: "/bot/group/\(groupId)/leave")
132 |     session.sendRequest(request: request, completionHandler: completionHandler)
    |             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
133 |   }
134 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:143:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
141 |     let request = makeRequest(method: "GET",
142 |                               path: "/bot/room/\(roomId)/member/\(userId)")
143 |     session.sendRequest(request: request, completionHandler: completionHandler)
    |             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
144 |   }
145 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:152:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
150 |     }
151 |     let request = makeRequest(method: "GET", path: path)
152 |     session.sendRequest(request: request, completionHandler: completionHandler)
    |             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
153 |   }
154 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:158:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
156 |     let request = makeRequest(method: "POST",
157 |                               path: "/bot/room/\(roomId)/leave")
158 |     session.sendRequest(request: request, completionHandler: completionHandler)
    |             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
159 |   }
160 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:165:41: error: cannot find type 'URLRequest' in scope
163 | fileprivate extension URLSession {
164 |
165 |   fileprivate func sendRequest(request: URLRequest, completionHandler: ((Data?) -> ())? = nil) {
    |                                         `- error: cannot find type 'URLRequest' in scope
166 |     let dataTask = self.dataTask(with: request) { data, response, error in
167 |       completionHandler?(data)
[25/26] Compiling LineBot LineEvent.swift
/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
161 | }
162 |
163 | fileprivate extension URLSession {
    |             `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
164 |
165 |   fileprivate func sendRequest(request: URLRequest, completionHandler: ((Data?) -> ())? = nil) {
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:22:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 20 |     self.channelSecret = channelSecret
 21 |     self.endPoint = endPoint ?? "https://api.line.me/v2"
 22 |     self.session = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
    |                    `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 23 |   }
 24 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:22:47: error: cannot infer contextual base in reference to member 'default'
 20 |     self.channelSecret = channelSecret
 21 |     self.endPoint = endPoint ?? "https://api.line.me/v2"
 22 |     self.session = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
    |                                               `- error: cannot infer contextual base in reference to member 'default'
 23 |   }
 24 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:22:66: error: 'nil' requires a contextual type
 20 |     self.channelSecret = channelSecret
 21 |     self.endPoint = endPoint ?? "https://api.line.me/v2"
 22 |     self.session = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
    |                                                                  `- error: 'nil' requires a contextual type
 23 |   }
 24 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:22:86: error: 'nil' requires a contextual type
 20 |     self.channelSecret = channelSecret
 21 |     self.endPoint = endPoint ?? "https://api.line.me/v2"
 22 |     self.session = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
    |                                                                                      `- error: 'nil' requires a contextual type
 23 |   }
 24 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:55:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
 53 |                               path: "/bot/message/reply",
 54 |                               body: body)
 55 |     session.sendRequest(request: request, completionHandler: completionHandler)
    |             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
 56 |   }
 57 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:66:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
 64 |                               path: "/bot/message/push",
 65 |                               body: body)
 66 |     session.sendRequest(request: request, completionHandler: completionHandler)
    |             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
 67 |   }
 68 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:77:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
 75 |                               path: "/bot/message/multicast",
 76 |                               body: body)
 77 |     session.sendRequest(request: request, completionHandler: completionHandler)
    |             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
 78 |   }
 79 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:83:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
 81 |     let request = makeRequest(method: "GET",
 82 |                               path: "/bot/message/\(identifier)/content")
 83 |     session.sendRequest(request: request, completionHandler: completionHandler)
    |             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
 84 |   }
 85 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:87:19: error: cannot find 'URLRequest' in scope
 85 |
 86 |   private func makeRequest(method: String, path: String, body: [String: Any] = [:]) -> URLRequest {
 87 |     var request = URLRequest(url: URL(string: endPoint + path)!)
    |                   `- error: cannot find 'URLRequest' in scope
 88 |
 89 |     request.httpMethod = method
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:106:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
104 |     let request = makeRequest(method: "GET",
105 |                               path: "/bot/profile/\(userId)/content")
106 |     session.sendRequest(request: request, completionHandler: completionHandler)
    |             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
107 |   }
108 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:117:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
115 |     let request = makeRequest(method: "GET",
116 |                               path: "/bot/group/\(groupId)/member/\(userId)")
117 |     session.sendRequest(request: request, completionHandler: completionHandler)
    |             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
118 |   }
119 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:126:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
124 |     }
125 |     let request = makeRequest(method: "GET", path: path)
126 |     session.sendRequest(request: request, completionHandler: completionHandler)
    |             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
127 |   }
128 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:132:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
130 |     let request = makeRequest(method: "POST",
131 |                               path: "/bot/group/\(groupId)/leave")
132 |     session.sendRequest(request: request, completionHandler: completionHandler)
    |             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
133 |   }
134 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:143:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
141 |     let request = makeRequest(method: "GET",
142 |                               path: "/bot/room/\(roomId)/member/\(userId)")
143 |     session.sendRequest(request: request, completionHandler: completionHandler)
    |             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
144 |   }
145 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:152:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
150 |     }
151 |     let request = makeRequest(method: "GET", path: path)
152 |     session.sendRequest(request: request, completionHandler: completionHandler)
    |             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
153 |   }
154 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:158:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
156 |     let request = makeRequest(method: "POST",
157 |                               path: "/bot/room/\(roomId)/leave")
158 |     session.sendRequest(request: request, completionHandler: completionHandler)
    |             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'sendRequest'
159 |   }
160 |
/host/spi-builder-workspace/Sources/LineBot/LineBot.swift:165:41: error: cannot find type 'URLRequest' in scope
163 | fileprivate extension URLSession {
164 |
165 |   fileprivate func sendRequest(request: URLRequest, completionHandler: ((Data?) -> ())? = nil) {
    |                                         `- error: cannot find type 'URLRequest' in scope
166 |     let dataTask = self.dataTask(with: request) { data, response, error in
167 |       completionHandler?(data)
[26/26] Compiling LineBot LineTemplate.swift
/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 {
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.