The Swift Package Index logo.Swift Package Index

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

Build Information

Failed to build TextClippingKit, reference main (4b6f26), with Swift 6.2 (beta) for Linux on 23 Jun 2025 15:56:16 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/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.2
Building package at path:  $PWD
https://github.com/dagronf/TextClippingKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/5] Emitting module TextClippingKit
[4/5] Compiling TextClippingKit Extras.swift
[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 | 			)
BUILD FAILURE 6.2 linux