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 0.1.0 (4b6f26), with Swift 5.10 for Linux on 8 Apr 2025 06:52:36 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-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: 0.1.0
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
 * tag               0.1.0      -> FETCH_HEAD
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 0.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $PWD
https://github.com/dagronf/TextClippingKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:616ef225d0085997f26355ad9695b1159b91f6187a43f9ff135cb59d096bc97d
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-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'
                        let rawString = NSString(data: data, encoding: NSUTF16LittleEndianStringEncoding)
                                                                       ^
                                                                                                        .rawValue
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:115:20: error: no exact matches in call to initializer
                        self.rtf = try? NSAttributedString(data: data, documentAttributes: nil)
                                        ^
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:115:20: note: found candidate with type '(AttributedString, KeyPath<AttributeScopes, _.Type>) throws -> NSAttributedString'
                        self.rtf = try? NSAttributedString(data: data, documentAttributes: nil)
                                        ^
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:115:20: note: found candidate with type '(AttributedString, _.Type) throws -> NSAttributedString'
                        self.rtf = try? NSAttributedString(data: data, documentAttributes: nil)
                                        ^
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:120:21: error: no exact matches in call to initializer
                        self.rtfd = try? NSAttributedString(data: data, documentAttributes: nil)
                                         ^
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:120:21: note: found candidate with type '(AttributedString, KeyPath<AttributeScopes, _.Type>) throws -> NSAttributedString'
                        self.rtfd = try? NSAttributedString(data: data, documentAttributes: nil)
                                         ^
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:120:21: note: found candidate with type '(AttributedString, _.Type) throws -> NSAttributedString'
                        self.rtfd = try? NSAttributedString(data: data, documentAttributes: nil)
                                         ^
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:208:75: error: cannot convert value of type 'String.Encoding' to expected argument type 'UInt'
                        utiData["public.utf8-plain-text"] = NSString(data: utf8Data, encoding: NSUTF8StringEncoding)
                                                                                               ^
                                                                                                                   .rawValue
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:221:26: error: value of type 'NSAttributedString' has no member 'data'
                        let rtfData = try rtf.data(
                                          ~~~ ^~~~
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:224:7: error: reference to member 'documentType' cannot be resolved without a contextual type
                                        .documentType: NSAttributedString.DocumentType.rtf,
                                         ^
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:224:40: error: type 'NSAttributedString' has no member 'DocumentType'
                                        .documentType: NSAttributedString.DocumentType.rtf,
                                                       ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:227:49: error: cannot convert value of type 'String.Encoding' to expected argument type 'UInt'
                        let rtfs = NSString(data: rtfData, encoding: NSUTF8StringEncoding)
                                                                     ^
                                                                                         .rawValue
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:237:39: error: value of type 'NSAttributedString' has no member 'data'
                        let rtfData = try attributedString.data(
                                          ~~~~~~~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:240:7: error: reference to member 'documentType' cannot be resolved without a contextual type
                                        .documentType: NSAttributedString.DocumentType.rtf,
                                         ^
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:240:40: error: type 'NSAttributedString' has no member 'DocumentType'
                                        .documentType: NSAttributedString.DocumentType.rtf,
                                                       ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:243:49: error: cannot convert value of type 'String.Encoding' to expected argument type 'UInt'
                        let rtfs = NSString(data: rtfData, encoding: NSUTF8StringEncoding)
                                                                     ^
                                                                                         .rawValue
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:255:26: error: value of type 'NSAttributedString' has no member 'data'
                        let rtfData = try rtf.data(
                                          ~~~ ^~~~
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:258:7: error: reference to member 'documentType' cannot be resolved without a contextual type
                                        .documentType: NSAttributedString.DocumentType.html,
                                         ^
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:258:40: error: type 'NSAttributedString' has no member 'DocumentType'
                                        .documentType: NSAttributedString.DocumentType.html,
                                                       ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:271:39: error: value of type 'NSAttributedString' has no member 'data'
                        let rtfData = try attributedString.data(
                                          ~~~~~~~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:274:7: error: reference to member 'documentType' cannot be resolved without a contextual type
                                        .documentType: NSAttributedString.DocumentType.html,
                                         ^
/host/spi-builder-workspace/Sources/TextClippingKit/TextClipping.swift:274:40: error: type 'NSAttributedString' has no member 'DocumentType'
                                        .documentType: NSAttributedString.DocumentType.html,
                                                       ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux