Build Information
Failed to build TextClippingKit, reference main (4b6f26
), with Swift 6.0 for Linux on 8 Apr 2025 06:54:06 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dagronf/TextClippingKit.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/dagronf/TextClippingKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 4b6f266 First release
Cloned https://github.com/dagronf/TextClippingKit.git
Revision (git rev-parse @):
4b6f266fd8032354f0d3a05d35472af0a2652671
SUCCESS checkout https://github.com/dagronf/TextClippingKit.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/dagronf/TextClippingKit.git
https://github.com/dagronf/TextClippingKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "TextClippingKit",
"name" : "TextClippingKit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "TextClippingKit",
"targets" : [
"TextClippingKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "TextClippingKitTests",
"module_type" : "SwiftTarget",
"name" : "TextClippingKitTests",
"path" : "Tests/TextClippingKitTests",
"resources" : [
{
"path" : "/host/spi-builder-workspace/Tests/TextClippingKitTests/resources/first.textClipping",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/TextClippingKitTests/resources/second.textClipping",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/TextClippingKitTests/resources/third.textClipping",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"TextClippingKitTests.swift",
"Utils.swift"
],
"target_dependencies" : [
"TextClippingKit"
],
"type" : "test"
},
{
"c99name" : "TextClippingKit",
"module_type" : "SwiftTarget",
"name" : "TextClippingKit",
"path" : "Sources/TextClippingKit",
"product_memberships" : [
"TextClippingKit"
],
"sources" : [
"TextClipping.swift",
"private/Extras.swift"
],
"type" : "library"
}
],
"tools_version" : "5.4"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9029076bb687edc160a3d5201c89e92dd9fa7309f33f090c4234365c83366c31
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/5] Compiling TextClippingKit Extras.swift
[4/5] Emitting module TextClippingKit
[5/5] Compiling TextClippingKit TextClipping.swift
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:106:51: error: cannot convert value of type 'String.Encoding' to expected argument type 'UInt'
104 | // utf16
105 | if let data = self.utiData["public.utf16-plain-text"] as? Data,
106 | let rawString = NSString(data: data, encoding: NSUTF16LittleEndianStringEncoding)
| `- error: cannot convert value of type 'String.Encoding' to expected argument type 'UInt'
107 | {
108 | self.utf16 = rawString as String
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:115:71: error: extra argument 'documentAttributes' in call
113 | let data = str.data(using: .utf8)
114 | {
115 | self.rtf = try? NSAttributedString(data: data, documentAttributes: nil)
| `- error: extra argument 'documentAttributes' in call
116 | }
117 |
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:115:71: error: 'nil' requires a contextual type
113 | let data = str.data(using: .utf8)
114 | {
115 | self.rtf = try? NSAttributedString(data: data, documentAttributes: nil)
| `- error: 'nil' requires a contextual type
116 | }
117 |
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:120:72: error: extra argument 'documentAttributes' in call
118 | // rtfd
119 | if let data = self.utiData["com.apple.flat-rtfd"] as? Data {
120 | self.rtfd = try? NSAttributedString(data: data, documentAttributes: nil)
| `- error: extra argument 'documentAttributes' in call
121 | }
122 |
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:120:72: error: 'nil' requires a contextual type
118 | // rtfd
119 | if let data = self.utiData["com.apple.flat-rtfd"] as? Data {
120 | self.rtfd = try? NSAttributedString(data: data, documentAttributes: nil)
| `- error: 'nil' requires a contextual type
121 | }
122 |
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:208:75: error: cannot convert value of type 'String.Encoding' to expected argument type 'UInt'
206 | private static func insertUtf8Encoded(_ utiData: NSMutableDictionary, string: String) {
207 | if let utf8Data = string.data(using: .utf8) {
208 | utiData["public.utf8-plain-text"] = NSString(data: utf8Data, encoding: NSUTF8StringEncoding)
| `- error: cannot convert value of type 'String.Encoding' to expected argument type 'UInt'
209 | }
210 | }
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:221:26: error: value of type 'NSAttributedString' has no member 'data'
219 | do {
220 | let rtf = NSAttributedString(string: string)
221 | let rtfData = try rtf.data(
| `- error: value of type 'NSAttributedString' has no member 'data'
222 | from: NSRange(location: 0, length: rtf.length),
223 | documentAttributes: [
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:224:7: error: reference to member 'documentType' cannot be resolved without a contextual type
222 | from: NSRange(location: 0, length: rtf.length),
223 | documentAttributes: [
224 | .documentType: NSAttributedString.DocumentType.rtf,
| `- error: reference to member 'documentType' cannot be resolved without a contextual type
225 | ]
226 | )
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:224:40: error: type 'NSAttributedString' has no member 'DocumentType'
222 | from: NSRange(location: 0, length: rtf.length),
223 | documentAttributes: [
224 | .documentType: NSAttributedString.DocumentType.rtf,
| `- error: type 'NSAttributedString' has no member 'DocumentType'
225 | ]
226 | )
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:227:49: error: cannot convert value of type 'String.Encoding' to expected argument type 'UInt'
225 | ]
226 | )
227 | let rtfs = NSString(data: rtfData, encoding: NSUTF8StringEncoding)
| `- error: cannot convert value of type 'String.Encoding' to expected argument type 'UInt'
228 | utiData["public.rtf"] = rtfs
229 | }
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:237:39: error: value of type 'NSAttributedString' has no member 'data'
235 | private static func insertRtfEncoded(_ utiData: NSMutableDictionary, attributedString: NSAttributedString) {
236 | do {
237 | let rtfData = try attributedString.data(
| `- error: value of type 'NSAttributedString' has no member 'data'
238 | from: NSRange(location: 0, length: attributedString.length),
239 | documentAttributes: [
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:240:7: error: reference to member 'documentType' cannot be resolved without a contextual type
238 | from: NSRange(location: 0, length: attributedString.length),
239 | documentAttributes: [
240 | .documentType: NSAttributedString.DocumentType.rtf,
| `- error: reference to member 'documentType' cannot be resolved without a contextual type
241 | ]
242 | )
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:240:40: error: type 'NSAttributedString' has no member 'DocumentType'
238 | from: NSRange(location: 0, length: attributedString.length),
239 | documentAttributes: [
240 | .documentType: NSAttributedString.DocumentType.rtf,
| `- error: type 'NSAttributedString' has no member 'DocumentType'
241 | ]
242 | )
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:243:49: error: cannot convert value of type 'String.Encoding' to expected argument type 'UInt'
241 | ]
242 | )
243 | let rtfs = NSString(data: rtfData, encoding: NSUTF8StringEncoding)
| `- error: cannot convert value of type 'String.Encoding' to expected argument type 'UInt'
244 | utiData["public.rtf"] = rtfs
245 | }
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:255:26: error: value of type 'NSAttributedString' has no member 'data'
253 | do {
254 | let rtf = NSAttributedString(string: string)
255 | let rtfData = try rtf.data(
| `- error: value of type 'NSAttributedString' has no member 'data'
256 | from: NSRange(location: 0, length: rtf.length),
257 | documentAttributes: [
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:258:7: error: reference to member 'documentType' cannot be resolved without a contextual type
256 | from: NSRange(location: 0, length: rtf.length),
257 | documentAttributes: [
258 | .documentType: NSAttributedString.DocumentType.html,
| `- error: reference to member 'documentType' cannot be resolved without a contextual type
259 | ]
260 | )
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:258:40: error: type 'NSAttributedString' has no member 'DocumentType'
256 | from: NSRange(location: 0, length: rtf.length),
257 | documentAttributes: [
258 | .documentType: NSAttributedString.DocumentType.html,
| `- error: type 'NSAttributedString' has no member 'DocumentType'
259 | ]
260 | )
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:271:39: error: value of type 'NSAttributedString' has no member 'data'
269 | // HTML
270 | do {
271 | let rtfData = try attributedString.data(
| `- error: value of type 'NSAttributedString' has no member 'data'
272 | from: NSRange(location: 0, length: attributedString.length),
273 | documentAttributes: [
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:274:7: error: reference to member 'documentType' cannot be resolved without a contextual type
272 | from: NSRange(location: 0, length: attributedString.length),
273 | documentAttributes: [
274 | .documentType: NSAttributedString.DocumentType.html,
| `- error: reference to member 'documentType' cannot be resolved without a contextual type
275 | ]
276 | )
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:274:40: error: type 'NSAttributedString' has no member 'DocumentType'
272 | from: NSRange(location: 0, length: attributedString.length),
273 | documentAttributes: [
274 | .documentType: NSAttributedString.DocumentType.html,
| `- error: type 'NSAttributedString' has no member 'DocumentType'
275 | ]
276 | )
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9029076bb687edc160a3d5201c89e92dd9fa7309f33f090c4234365c83366c31
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/4] Compiling TextClippingKit Extras.swift
[3/4] Emitting module TextClippingKit
[4/4] Compiling TextClippingKit TextClipping.swift
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:106:51: error: cannot convert value of type 'String.Encoding' to expected argument type 'UInt'
104 | // utf16
105 | if let data = self.utiData["public.utf16-plain-text"] as? Data,
106 | let rawString = NSString(data: data, encoding: NSUTF16LittleEndianStringEncoding)
| `- error: cannot convert value of type 'String.Encoding' to expected argument type 'UInt'
107 | {
108 | self.utf16 = rawString as String
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:115:71: error: extra argument 'documentAttributes' in call
113 | let data = str.data(using: .utf8)
114 | {
115 | self.rtf = try? NSAttributedString(data: data, documentAttributes: nil)
| `- error: extra argument 'documentAttributes' in call
116 | }
117 |
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:115:71: error: 'nil' requires a contextual type
113 | let data = str.data(using: .utf8)
114 | {
115 | self.rtf = try? NSAttributedString(data: data, documentAttributes: nil)
| `- error: 'nil' requires a contextual type
116 | }
117 |
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:120:72: error: extra argument 'documentAttributes' in call
118 | // rtfd
119 | if let data = self.utiData["com.apple.flat-rtfd"] as? Data {
120 | self.rtfd = try? NSAttributedString(data: data, documentAttributes: nil)
| `- error: extra argument 'documentAttributes' in call
121 | }
122 |
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:120:72: error: 'nil' requires a contextual type
118 | // rtfd
119 | if let data = self.utiData["com.apple.flat-rtfd"] as? Data {
120 | self.rtfd = try? NSAttributedString(data: data, documentAttributes: nil)
| `- error: 'nil' requires a contextual type
121 | }
122 |
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:208:75: error: cannot convert value of type 'String.Encoding' to expected argument type 'UInt'
206 | private static func insertUtf8Encoded(_ utiData: NSMutableDictionary, string: String) {
207 | if let utf8Data = string.data(using: .utf8) {
208 | utiData["public.utf8-plain-text"] = NSString(data: utf8Data, encoding: NSUTF8StringEncoding)
| `- error: cannot convert value of type 'String.Encoding' to expected argument type 'UInt'
209 | }
210 | }
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:221:26: error: value of type 'NSAttributedString' has no member 'data'
219 | do {
220 | let rtf = NSAttributedString(string: string)
221 | let rtfData = try rtf.data(
| `- error: value of type 'NSAttributedString' has no member 'data'
222 | from: NSRange(location: 0, length: rtf.length),
223 | documentAttributes: [
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:224:7: error: reference to member 'documentType' cannot be resolved without a contextual type
222 | from: NSRange(location: 0, length: rtf.length),
223 | documentAttributes: [
224 | .documentType: NSAttributedString.DocumentType.rtf,
| `- error: reference to member 'documentType' cannot be resolved without a contextual type
225 | ]
226 | )
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:224:40: error: type 'NSAttributedString' has no member 'DocumentType'
222 | from: NSRange(location: 0, length: rtf.length),
223 | documentAttributes: [
224 | .documentType: NSAttributedString.DocumentType.rtf,
| `- error: type 'NSAttributedString' has no member 'DocumentType'
225 | ]
226 | )
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:227:49: error: cannot convert value of type 'String.Encoding' to expected argument type 'UInt'
225 | ]
226 | )
227 | let rtfs = NSString(data: rtfData, encoding: NSUTF8StringEncoding)
| `- error: cannot convert value of type 'String.Encoding' to expected argument type 'UInt'
228 | utiData["public.rtf"] = rtfs
229 | }
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:237:39: error: value of type 'NSAttributedString' has no member 'data'
235 | private static func insertRtfEncoded(_ utiData: NSMutableDictionary, attributedString: NSAttributedString) {
236 | do {
237 | let rtfData = try attributedString.data(
| `- error: value of type 'NSAttributedString' has no member 'data'
238 | from: NSRange(location: 0, length: attributedString.length),
239 | documentAttributes: [
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:240:7: error: reference to member 'documentType' cannot be resolved without a contextual type
238 | from: NSRange(location: 0, length: attributedString.length),
239 | documentAttributes: [
240 | .documentType: NSAttributedString.DocumentType.rtf,
| `- error: reference to member 'documentType' cannot be resolved without a contextual type
241 | ]
242 | )
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:240:40: error: type 'NSAttributedString' has no member 'DocumentType'
238 | from: NSRange(location: 0, length: attributedString.length),
239 | documentAttributes: [
240 | .documentType: NSAttributedString.DocumentType.rtf,
| `- error: type 'NSAttributedString' has no member 'DocumentType'
241 | ]
242 | )
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:243:49: error: cannot convert value of type 'String.Encoding' to expected argument type 'UInt'
241 | ]
242 | )
243 | let rtfs = NSString(data: rtfData, encoding: NSUTF8StringEncoding)
| `- error: cannot convert value of type 'String.Encoding' to expected argument type 'UInt'
244 | utiData["public.rtf"] = rtfs
245 | }
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:255:26: error: value of type 'NSAttributedString' has no member 'data'
253 | do {
254 | let rtf = NSAttributedString(string: string)
255 | let rtfData = try rtf.data(
| `- error: value of type 'NSAttributedString' has no member 'data'
256 | from: NSRange(location: 0, length: rtf.length),
257 | documentAttributes: [
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:258:7: error: reference to member 'documentType' cannot be resolved without a contextual type
256 | from: NSRange(location: 0, length: rtf.length),
257 | documentAttributes: [
258 | .documentType: NSAttributedString.DocumentType.html,
| `- error: reference to member 'documentType' cannot be resolved without a contextual type
259 | ]
260 | )
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:258:40: error: type 'NSAttributedString' has no member 'DocumentType'
256 | from: NSRange(location: 0, length: rtf.length),
257 | documentAttributes: [
258 | .documentType: NSAttributedString.DocumentType.html,
| `- error: type 'NSAttributedString' has no member 'DocumentType'
259 | ]
260 | )
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:271:39: error: value of type 'NSAttributedString' has no member 'data'
269 | // HTML
270 | do {
271 | let rtfData = try attributedString.data(
| `- error: value of type 'NSAttributedString' has no member 'data'
272 | from: NSRange(location: 0, length: attributedString.length),
273 | documentAttributes: [
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:274:7: error: reference to member 'documentType' cannot be resolved without a contextual type
272 | from: NSRange(location: 0, length: attributedString.length),
273 | documentAttributes: [
274 | .documentType: NSAttributedString.DocumentType.html,
| `- error: reference to member 'documentType' cannot be resolved without a contextual type
275 | ]
276 | )
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:274:40: error: type 'NSAttributedString' has no member 'DocumentType'
272 | from: NSRange(location: 0, length: attributedString.length),
273 | documentAttributes: [
274 | .documentType: NSAttributedString.DocumentType.html,
| `- error: type 'NSAttributedString' has no member 'DocumentType'
275 | ]
276 | )
BUILD FAILURE 6.0 linux