Build Information
Failed to build TextClippingKit, reference main (4b6f26
), with Swift 5.9 for Linux on 8 Apr 2025 06:52:26 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.9-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: 5.9
Building package at path: $PWD
https://github.com/dagronf/TextClippingKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.9-latest: Pulling from finestructure/spi-images
Digest: sha256:93fe18f778ec94e026baa8cc68b2ae87de241b204c49ca7a3a12cf55897227aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.9-latest
Building for debugging...
[1/3] Emitting module TextClippingKit
[2/3] Compiling TextClippingKit Extras.swift
[3/3] 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.9 linux