Build Information
Failed to build ResourcePackage, reference 1.4.0 (4d6c09), with Swift 6.3 for Linux on 11 Apr 2026 09:37:34 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/1fr3dg/ResourcePackage.git
Reference: 1.4.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/1fr3dg/ResourcePackage
* tag 1.4.0 -> FETCH_HEAD
HEAD is now at 4d6c09b add comments for 1.4.0
Cloned https://github.com/1fr3dg/ResourcePackage.git
Revision (git rev-parse @):
4d6c09bcc12d990e6002b37e9eabd9728bd04c51
SUCCESS checkout https://github.com/1fr3dg/ResourcePackage.git at 1.4.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.3
Building package at path: $PWD
https://github.com/1fr3dg/ResourcePackage.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
Fetching https://github.com/1Fr3dG/TextFormater
Fetching https://github.com/1Fr3dG/SimpleEncrypter
[1/184] Fetching simpleencrypter
[185/585] Fetching simpleencrypter, textformater
Fetched https://github.com/1Fr3dG/SimpleEncrypter from cache (0.25s)
Fetched https://github.com/1Fr3dG/TextFormater from cache (0.26s)
Computing version for https://github.com/1Fr3dG/SimpleEncrypter
Computed https://github.com/1Fr3dG/SimpleEncrypter at 1.4.1 (1.55s)
Fetching https://github.com/krzyzanowskim/CryptoSwift
[1/13341] Fetching cryptoswift
Fetched https://github.com/krzyzanowskim/CryptoSwift from cache (1.89s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift
Computed https://github.com/krzyzanowskim/CryptoSwift at 0.15.0 (4.59s)
Computing version for https://github.com/1Fr3dG/TextFormater
Computed https://github.com/1Fr3dG/TextFormater at 1.4.2 (1.26s)
Creating working copy for https://github.com/krzyzanowskim/CryptoSwift
Working copy of https://github.com/krzyzanowskim/CryptoSwift resolved at 0.15.0
Creating working copy for https://github.com/1Fr3dG/SimpleEncrypter
Working copy of https://github.com/1Fr3dG/SimpleEncrypter resolved at 1.4.1
Creating working copy for https://github.com/1Fr3dG/TextFormater
Working copy of https://github.com/1Fr3dG/TextFormater resolved at 1.4.2
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/74] Emitting module CryptoSwift
[7/83] Compiling CryptoSwift AEAD.swift
[8/83] Compiling CryptoSwift AEADChaCha20Poly1305.swift
[9/83] Compiling CryptoSwift AES.Cryptors.swift
[10/83] Compiling CryptoSwift AES.swift
[11/83] Compiling CryptoSwift Array+Extension.swift
[12/83] Compiling CryptoSwift Authenticator.swift
[13/83] Compiling CryptoSwift BatchedCollection.swift
[14/83] Compiling CryptoSwift Bit.swift
[15/83] Compiling CryptoSwift BlockCipher.swift
[16/83] Compiling CryptoSwift BlockDecryptor.swift
[17/83] Compiling CryptoSwift NoPadding.swift
[18/83] Compiling CryptoSwift Operators.swift
[19/83] Compiling CryptoSwift PBKDF1.swift
[20/83] Compiling CryptoSwift PBKDF2.swift
[21/83] Compiling CryptoSwift PKCS5.swift
[22/83] Compiling CryptoSwift PKCS7.swift
[23/83] Compiling CryptoSwift PKCS7Padding.swift
[24/83] Compiling CryptoSwift Padding.swift
[25/83] Compiling CryptoSwift Poly1305.swift
[26/83] Compiling CryptoSwift Rabbit.swift
[27/83] Compiling CryptoSwift RandomBytesSequence.swift
[28/83] Compiling CryptoSwift SHA1.swift
[29/83] Compiling CryptoSwift SHA2.swift
[30/83] Compiling CryptoSwift SHA3.swift
[31/83] Compiling CryptoSwift Scrypt.swift
[32/83] Compiling CryptoSwift SecureBytes.swift
[33/83] Compiling CryptoSwift StreamDecryptor.swift
[34/83] Compiling CryptoSwift StreamEncryptor.swift
[35/83] Compiling CryptoSwift BlockEncryptor.swift
[36/83] Compiling CryptoSwift BlockMode.swift
[37/83] Compiling CryptoSwift BlockModeOptions.swift
[38/83] Compiling CryptoSwift CBC.swift
[39/83] Compiling CryptoSwift CCM.swift
[40/83] Compiling CryptoSwift CFB.swift
[41/83] Compiling CryptoSwift CTR.swift
[42/83] Compiling CryptoSwift CipherModeWorker.swift
[43/83] Compiling CryptoSwift ECB.swift
[44/83] Compiling CryptoSwift GCM.swift
[45/83] Compiling CryptoSwift OFB.swift
[46/83] Compiling CryptoSwift PCBC.swift
[47/83] Compiling CryptoSwift Blowfish.swift
[48/83] Compiling CryptoSwift CBCMAC.swift
[49/83] Compiling CryptoSwift CMAC.swift
[50/83] Compiling CryptoSwift ChaCha20.swift
[51/83] Compiling CryptoSwift Checksum.swift
[52/83] Compiling CryptoSwift Cipher.swift
[53/83] Compiling CryptoSwift Collection+Extension.swift
[54/83] Compiling CryptoSwift CompactMap.swift
[55/83] Compiling CryptoSwift HMAC+Foundation.swift
[56/83] Compiling CryptoSwift Rabbit+Foundation.swift
[57/83] Compiling CryptoSwift String+FoundationExtension.swift
[58/83] Compiling CryptoSwift Utils+Foundation.swift
[59/83] Compiling CryptoSwift Generics.swift
[60/83] Compiling CryptoSwift HKDF.swift
[61/83] Compiling CryptoSwift HMAC.swift
[62/83] Compiling CryptoSwift Int+Extension.swift
[63/83] Compiling CryptoSwift MD5.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[64/83] Emitting module TextFormater
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:27:37: error: cannot find type 'UIImage' in scope
25 | /// delegation protocol for getting image data (as UIImage)
26 | public protocol GetImageForTextFormater {
27 | func getImage(byKey: String) -> UIImage?
| `- error: cannot find type 'UIImage' in scope
28 | }
29 |
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:68:41: error: cannot find type 'UIImage' in scope
66 | /// Dummy class for image deletation
67 | class NilImageDelegate: NSObject, GetImageForTextFormater {
68 | func getImage(byKey: String) -> UIImage? {
| `- error: cannot find type 'UIImage' in scope
69 | return nil
70 | }
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:104:45: error: cannot find type 'UIFont' in scope
102 | /// - 对应字体
103 | /// - font (size ignored)
104 | public func setFont(name: String, font: UIFont) {
| `- error: cannot find type 'UIFont' in scope
105 | fonts[name.lowercased()] = font.fontName
106 | setCommand(command: name.lowercased(), squance: "ThemeFont")
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:120:48: error: cannot find type 'UIColor' in scope
118 | ///
119 | /// customized colors
120 | public private(set) var colors : [String : UIColor] = [
| `- error: cannot find type 'UIColor' in scope
121 | "defaultColor" : UIColor.black,
122 | "clear" : UIColor.clear,
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:121:26: error: cannot find 'UIColor' in scope
119 | /// customized colors
120 | public private(set) var colors : [String : UIColor] = [
121 | "defaultColor" : UIColor.black,
| `- error: cannot find 'UIColor' in scope
122 | "clear" : UIColor.clear,
123 | "black" : UIColor.black,
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:122:19: error: cannot find 'UIColor' in scope
120 | public private(set) var colors : [String : UIColor] = [
121 | "defaultColor" : UIColor.black,
122 | "clear" : UIColor.clear,
| `- error: cannot find 'UIColor' in scope
123 | "black" : UIColor.black,
124 | "blue" : UIColor.blue,
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:123:19: error: cannot find 'UIColor' in scope
121 | "defaultColor" : UIColor.black,
122 | "clear" : UIColor.clear,
123 | "black" : UIColor.black,
| `- error: cannot find 'UIColor' in scope
124 | "blue" : UIColor.blue,
125 | "brown" : UIColor.brown,
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:124:18: error: cannot find 'UIColor' in scope
122 | "clear" : UIColor.clear,
123 | "black" : UIColor.black,
124 | "blue" : UIColor.blue,
| `- error: cannot find 'UIColor' in scope
125 | "brown" : UIColor.brown,
126 | "gray" : UIColor.gray,
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:125:19: error: cannot find 'UIColor' in scope
123 | "black" : UIColor.black,
124 | "blue" : UIColor.blue,
125 | "brown" : UIColor.brown,
| `- error: cannot find 'UIColor' in scope
126 | "gray" : UIColor.gray,
127 | "green" : UIColor.green,
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:126:18: error: cannot find 'UIColor' in scope
124 | "blue" : UIColor.blue,
125 | "brown" : UIColor.brown,
126 | "gray" : UIColor.gray,
| `- error: cannot find 'UIColor' in scope
127 | "green" : UIColor.green,
128 | "magenta" : UIColor.magenta,
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:127:19: error: cannot find 'UIColor' in scope
125 | "brown" : UIColor.brown,
126 | "gray" : UIColor.gray,
127 | "green" : UIColor.green,
| `- error: cannot find 'UIColor' in scope
128 | "magenta" : UIColor.magenta,
129 | "orange" : UIColor.orange,
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:128:21: error: cannot find 'UIColor' in scope
126 | "gray" : UIColor.gray,
127 | "green" : UIColor.green,
128 | "magenta" : UIColor.magenta,
| `- error: cannot find 'UIColor' in scope
129 | "orange" : UIColor.orange,
130 | "purple" : UIColor.purple,
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:129:20: error: cannot find 'UIColor' in scope
127 | "green" : UIColor.green,
128 | "magenta" : UIColor.magenta,
129 | "orange" : UIColor.orange,
| `- error: cannot find 'UIColor' in scope
130 | "purple" : UIColor.purple,
131 | "red" : UIColor.red,
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:130:20: error: cannot find 'UIColor' in scope
128 | "magenta" : UIColor.magenta,
129 | "orange" : UIColor.orange,
130 | "purple" : UIColor.purple,
| `- error: cannot find 'UIColor' in scope
131 | "red" : UIColor.red,
132 | "yellow" : UIColor.yellow,
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:131:17: error: cannot find 'UIColor' in scope
129 | "orange" : UIColor.orange,
130 | "purple" : UIColor.purple,
131 | "red" : UIColor.red,
| `- error: cannot find 'UIColor' in scope
132 | "yellow" : UIColor.yellow,
133 | "white" : UIColor.white,
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:132:20: error: cannot find 'UIColor' in scope
130 | "purple" : UIColor.purple,
131 | "red" : UIColor.red,
132 | "yellow" : UIColor.yellow,
| `- error: cannot find 'UIColor' in scope
133 | "white" : UIColor.white,
134 | ]
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:133:19: error: cannot find 'UIColor' in scope
131 | "red" : UIColor.red,
132 | "yellow" : UIColor.yellow,
133 | "white" : UIColor.white,
| `- error: cannot find 'UIColor' in scope
134 | ]
135 | /// 设置定制化颜色
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:144:47: error: cannot find type 'UIColor' in scope
142 | /// - 对应颜色
143 | /// - UIColor
144 | public func setColor(name: String, color: UIColor) {
| `- error: cannot find type 'UIColor' in scope
145 | colors[name.lowercased()] = color
146 | setCommand(command: name.lowercased(), squance: "ForegroundColor")
[65/83] Compiling TextFormater TextFormater.swift
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:27:37: error: cannot find type 'UIImage' in scope
25 | /// delegation protocol for getting image data (as UIImage)
26 | public protocol GetImageForTextFormater {
27 | func getImage(byKey: String) -> UIImage?
| `- error: cannot find type 'UIImage' in scope
28 | }
29 |
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:68:41: error: cannot find type 'UIImage' in scope
66 | /// Dummy class for image deletation
67 | class NilImageDelegate: NSObject, GetImageForTextFormater {
68 | func getImage(byKey: String) -> UIImage? {
| `- error: cannot find type 'UIImage' in scope
69 | return nil
70 | }
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:104:45: error: cannot find type 'UIFont' in scope
102 | /// - 对应字体
103 | /// - font (size ignored)
104 | public func setFont(name: String, font: UIFont) {
| `- error: cannot find type 'UIFont' in scope
105 | fonts[name.lowercased()] = font.fontName
106 | setCommand(command: name.lowercased(), squance: "ThemeFont")
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:120:48: error: cannot find type 'UIColor' in scope
118 | ///
119 | /// customized colors
120 | public private(set) var colors : [String : UIColor] = [
| `- error: cannot find type 'UIColor' in scope
121 | "defaultColor" : UIColor.black,
122 | "clear" : UIColor.clear,
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:121:26: error: cannot find 'UIColor' in scope
119 | /// customized colors
120 | public private(set) var colors : [String : UIColor] = [
121 | "defaultColor" : UIColor.black,
| `- error: cannot find 'UIColor' in scope
122 | "clear" : UIColor.clear,
123 | "black" : UIColor.black,
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:122:19: error: cannot find 'UIColor' in scope
120 | public private(set) var colors : [String : UIColor] = [
121 | "defaultColor" : UIColor.black,
122 | "clear" : UIColor.clear,
| `- error: cannot find 'UIColor' in scope
123 | "black" : UIColor.black,
124 | "blue" : UIColor.blue,
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:123:19: error: cannot find 'UIColor' in scope
121 | "defaultColor" : UIColor.black,
122 | "clear" : UIColor.clear,
123 | "black" : UIColor.black,
| `- error: cannot find 'UIColor' in scope
124 | "blue" : UIColor.blue,
125 | "brown" : UIColor.brown,
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:124:18: error: cannot find 'UIColor' in scope
122 | "clear" : UIColor.clear,
123 | "black" : UIColor.black,
124 | "blue" : UIColor.blue,
| `- error: cannot find 'UIColor' in scope
125 | "brown" : UIColor.brown,
126 | "gray" : UIColor.gray,
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:125:19: error: cannot find 'UIColor' in scope
123 | "black" : UIColor.black,
124 | "blue" : UIColor.blue,
125 | "brown" : UIColor.brown,
| `- error: cannot find 'UIColor' in scope
126 | "gray" : UIColor.gray,
127 | "green" : UIColor.green,
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:126:18: error: cannot find 'UIColor' in scope
124 | "blue" : UIColor.blue,
125 | "brown" : UIColor.brown,
126 | "gray" : UIColor.gray,
| `- error: cannot find 'UIColor' in scope
127 | "green" : UIColor.green,
128 | "magenta" : UIColor.magenta,
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:127:19: error: cannot find 'UIColor' in scope
125 | "brown" : UIColor.brown,
126 | "gray" : UIColor.gray,
127 | "green" : UIColor.green,
| `- error: cannot find 'UIColor' in scope
128 | "magenta" : UIColor.magenta,
129 | "orange" : UIColor.orange,
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:128:21: error: cannot find 'UIColor' in scope
126 | "gray" : UIColor.gray,
127 | "green" : UIColor.green,
128 | "magenta" : UIColor.magenta,
| `- error: cannot find 'UIColor' in scope
129 | "orange" : UIColor.orange,
130 | "purple" : UIColor.purple,
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:129:20: error: cannot find 'UIColor' in scope
127 | "green" : UIColor.green,
128 | "magenta" : UIColor.magenta,
129 | "orange" : UIColor.orange,
| `- error: cannot find 'UIColor' in scope
130 | "purple" : UIColor.purple,
131 | "red" : UIColor.red,
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:130:20: error: cannot find 'UIColor' in scope
128 | "magenta" : UIColor.magenta,
129 | "orange" : UIColor.orange,
130 | "purple" : UIColor.purple,
| `- error: cannot find 'UIColor' in scope
131 | "red" : UIColor.red,
132 | "yellow" : UIColor.yellow,
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:131:17: error: cannot find 'UIColor' in scope
129 | "orange" : UIColor.orange,
130 | "purple" : UIColor.purple,
131 | "red" : UIColor.red,
| `- error: cannot find 'UIColor' in scope
132 | "yellow" : UIColor.yellow,
133 | "white" : UIColor.white,
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:132:20: error: cannot find 'UIColor' in scope
130 | "purple" : UIColor.purple,
131 | "red" : UIColor.red,
132 | "yellow" : UIColor.yellow,
| `- error: cannot find 'UIColor' in scope
133 | "white" : UIColor.white,
134 | ]
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:133:19: error: cannot find 'UIColor' in scope
131 | "red" : UIColor.red,
132 | "yellow" : UIColor.yellow,
133 | "white" : UIColor.white,
| `- error: cannot find 'UIColor' in scope
134 | ]
135 | /// 设置定制化颜色
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:144:47: error: cannot find type 'UIColor' in scope
142 | /// - 对应颜色
143 | /// - UIColor
144 | public func setColor(name: String, color: UIColor) {
| `- error: cannot find type 'UIColor' in scope
145 | colors[name.lowercased()] = color
146 | setCommand(command: name.lowercased(), squance: "ForegroundColor")
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:105:9: error: cannot find 'fonts' in scope
103 | /// - font (size ignored)
104 | public func setFont(name: String, font: UIFont) {
105 | fonts[name.lowercased()] = font.fontName
| `- error: cannot find 'fonts' in scope
106 | setCommand(command: name.lowercased(), squance: "ThemeFont")
107 | }
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:179:26: error: cannot find 'fonts' in scope
177 | override public init () {
178 | super.init()
179 | for (name, _) in fonts {
| `- error: cannot find 'fonts' in scope
180 | setCommand(command: name, squance: "ThemeFont")
181 | }
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:204:9: error: cannot find 'fonts' in scope
202 | _ce = f._ce
203 | defaultFormat = f.defaultFormat
204 | fonts = f.fonts
| `- error: cannot find 'fonts' in scope
205 | normalFontSize = f.normalFontSize
206 | colors = f.colors
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:204:19: error: value of type 'TextFormater' has no member 'fonts'
202 | _ce = f._ce
203 | defaultFormat = f.defaultFormat
204 | fonts = f.fonts
| `- error: value of type 'TextFormater' has no member 'fonts'
205 | normalFontSize = f.normalFontSize
206 | colors = f.colors
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:205:9: error: cannot find 'normalFontSize' in scope
203 | defaultFormat = f.defaultFormat
204 | fonts = f.fonts
205 | normalFontSize = f.normalFontSize
| `- error: cannot find 'normalFontSize' in scope
206 | colors = f.colors
207 | commandSquance = f.commandSquance
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:205:28: error: value of type 'TextFormater' has no member 'normalFontSize'
203 | defaultFormat = f.defaultFormat
204 | fonts = f.fonts
205 | normalFontSize = f.normalFontSize
| `- error: value of type 'TextFormater' has no member 'normalFontSize'
206 | colors = f.colors
207 | commandSquance = f.commandSquance
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:273:60: error: cannot find 'UIFont' in scope
271 | var formatedLocation = 0
272 | var attrs: [(String, Any)] = []
273 | attrs.append((NSAttributedStringKey.font.rawValue, UIFont(name: fonts["normalfont"]!, size: normalFontSize) as Any))
| `- error: cannot find 'UIFont' in scope
274 | for result in regular.matches(in: _text, options: .reportProgress, range: NSMakeRange(0, _text.utf16.count)) {
275 | if formatedLocation < result.range.location {
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:273:73: error: cannot find 'fonts' in scope
271 | var formatedLocation = 0
272 | var attrs: [(String, Any)] = []
273 | attrs.append((NSAttributedStringKey.font.rawValue, UIFont(name: fonts["normalfont"]!, size: normalFontSize) as Any))
| `- error: cannot find 'fonts' in scope
274 | for result in regular.matches(in: _text, options: .reportProgress, range: NSMakeRange(0, _text.utf16.count)) {
275 | if formatedLocation < result.range.location {
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:273:101: error: cannot find 'normalFontSize' in scope
271 | var formatedLocation = 0
272 | var attrs: [(String, Any)] = []
273 | attrs.append((NSAttributedStringKey.font.rawValue, UIFont(name: fonts["normalfont"]!, size: normalFontSize) as Any))
| `- error: cannot find 'normalFontSize' in scope
274 | for result in regular.matches(in: _text, options: .reportProgress, range: NSMakeRange(0, _text.utf16.count)) {
275 | if formatedLocation < result.range.location {
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:273:45: error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'font'
271 | var formatedLocation = 0
272 | var attrs: [(String, Any)] = []
273 | attrs.append((NSAttributedStringKey.font.rawValue, UIFont(name: fonts["normalfont"]!, size: normalFontSize) as Any))
| `- error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'font'
274 | for result in regular.matches(in: _text, options: .reportProgress, range: NSMakeRange(0, _text.utf16.count)) {
275 | if formatedLocation < result.range.location {
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:279:33: error: 'NSAttributedStringKey' has been renamed to 'NSAttributedString.Key'
277 | // this section is content
278 | let _t = (_text as NSString).substring(with: NSRange(location: formatedLocation, length: result.range.location - formatedLocation))
279 | var _attrDict: [NSAttributedStringKey : Any] = [:]
| `- error: 'NSAttributedStringKey' has been renamed to 'NSAttributedString.Key'
280 | for (key, value) in attrs {
281 | _attrDict[NSAttributedStringKey(rawValue: key)] = value
Foundation.NSAttributedStringKey:2:18: note: 'NSAttributedStringKey' has been explicitly marked unavailable here
1 | @available(*, unavailable, renamed: "NSAttributedString.Key")
2 | public typealias NSAttributedStringKey = NSAttributedString.Key
| `- note: 'NSAttributedStringKey' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:281:31: error: 'NSAttributedStringKey' has been renamed to 'NSAttributedString.Key'
279 | var _attrDict: [NSAttributedStringKey : Any] = [:]
280 | for (key, value) in attrs {
281 | _attrDict[NSAttributedStringKey(rawValue: key)] = value
| `- error: 'NSAttributedStringKey' has been renamed to 'NSAttributedString.Key'
282 | }
283 | _result.append(NSAttributedString(string: _t, attributes: _attrDict))
Foundation.NSAttributedStringKey:2:18: note: 'NSAttributedStringKey' has been explicitly marked unavailable here
1 | @available(*, unavailable, renamed: "NSAttributedString.Key")
2 | public typealias NSAttributedStringKey = NSAttributedString.Key
| `- note: 'NSAttributedStringKey' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:309:38: error: cannot find type 'UIFont' in scope
307 | case "NewLine":
308 | _result.append(NSAttributedString(string: "\n"))
309 | let currentfont: UIFont
| `- error: cannot find type 'UIFont' in scope
310 | if let _font = lastAttr(in: attrs, with: NSAttributedStringKey.font.rawValue) as? UIFont{
311 | currentfont = _font
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:310:103: error: cannot find type 'UIFont' in scope
308 | _result.append(NSAttributedString(string: "\n"))
309 | let currentfont: UIFont
310 | if let _font = lastAttr(in: attrs, with: NSAttributedStringKey.font.rawValue) as? UIFont{
| `- error: cannot find type 'UIFont' in scope
311 | currentfont = _font
312 | } else {
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:310:84: error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'font'
308 | _result.append(NSAttributedString(string: "\n"))
309 | let currentfont: UIFont
310 | if let _font = lastAttr(in: attrs, with: NSAttributedStringKey.font.rawValue) as? UIFont{
| `- error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'font'
311 | currentfont = _font
312 | } else {
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:320:104: error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'font'
318 | }
319 | let newLineFont = currentfont.withSize(currentfont.pointSize / 2)
320 | _result.append(NSAttributedString(string: "\n", attributes: [NSAttributedStringKey.font: newLineFont]))
| `- error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'font'
321 |
322 | case "Comments":
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:326:38: error: cannot find 'NSTextAttachment' in scope
324 |
325 | case "Image":
326 | let attachment = NSTextAttachment()
| `- error: cannot find 'NSTextAttachment' in scope
327 | if let _imgkey = parameter(in: _command, withKey: "key"),
328 | let _img = imageDelegate.getImage(byKey: _imgkey) {
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:364:42: error: cannot find type 'UIFont' in scope
362 |
363 | // set the attachment
364 | let currentFont: UIFont
| `- error: cannot find type 'UIFont' in scope
365 | if let _font = lastAttr(in: attrs, with: NSAttributedStringKey.font.rawValue) as? UIFont{
366 | currentFont = _font
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:365:107: error: cannot find type 'UIFont' in scope
363 | // set the attachment
364 | let currentFont: UIFont
365 | if let _font = lastAttr(in: attrs, with: NSAttributedStringKey.font.rawValue) as? UIFont{
| `- error: cannot find type 'UIFont' in scope
366 | currentFont = _font
367 | } else {
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:365:88: error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'font'
363 | // set the attachment
364 | let currentFont: UIFont
365 | if let _font = lastAttr(in: attrs, with: NSAttributedStringKey.font.rawValue) as? UIFont{
| `- error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'font'
366 | currentFont = _font
367 | } else {
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:368:43: error: cannot find 'UIFont' in scope
366 | currentFont = _font
367 | } else {
368 | currentFont = UIFont(name: fonts["normalfont"]!, size: normalFontSize)!
| `- error: cannot find 'UIFont' in scope
369 | }
370 | #if os(iOS)
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:368:56: error: cannot find 'fonts' in scope
366 | currentFont = _font
367 | } else {
368 | currentFont = UIFont(name: fonts["normalfont"]!, size: normalFontSize)!
| `- error: cannot find 'fonts' in scope
369 | }
370 | #if os(iOS)
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:368:84: error: cannot find 'normalFontSize' in scope
366 | currentFont = _font
367 | } else {
368 | currentFont = UIFont(name: fonts["normalfont"]!, size: normalFontSize)!
| `- error: cannot find 'normalFontSize' in scope
369 | }
370 | #if os(iOS)
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:382:84: error: cannot find 'UIColor' in scope
380 | }
381 | var _attrs = attrs
382 | _attrs.append((NSAttributedStringKey.foregroundColor.rawValue, UIColor.clear))
| `- error: cannot find 'UIColor' in scope
383 | _attrs.append((NSAttributedStringKey.font.rawValue, UIFont(name: fonts["normalfont"]!, size: 1)!))
384 | _attrs.append((NSAttributedStringKey.backgroundColor.rawValue, UIColor.clear))
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:382:58: error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'foregroundColor'
380 | }
381 | var _attrs = attrs
382 | _attrs.append((NSAttributedStringKey.foregroundColor.rawValue, UIColor.clear))
| `- error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'foregroundColor'
383 | _attrs.append((NSAttributedStringKey.font.rawValue, UIFont(name: fonts["normalfont"]!, size: 1)!))
384 | _attrs.append((NSAttributedStringKey.backgroundColor.rawValue, UIColor.clear))
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:383:73: error: cannot find 'UIFont' in scope
381 | var _attrs = attrs
382 | _attrs.append((NSAttributedStringKey.foregroundColor.rawValue, UIColor.clear))
383 | _attrs.append((NSAttributedStringKey.font.rawValue, UIFont(name: fonts["normalfont"]!, size: 1)!))
| `- error: cannot find 'UIFont' in scope
384 | _attrs.append((NSAttributedStringKey.backgroundColor.rawValue, UIColor.clear))
385 |
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:383:86: error: cannot find 'fonts' in scope
381 | var _attrs = attrs
382 | _attrs.append((NSAttributedStringKey.foregroundColor.rawValue, UIColor.clear))
383 | _attrs.append((NSAttributedStringKey.font.rawValue, UIFont(name: fonts["normalfont"]!, size: 1)!))
| `- error: cannot find 'fonts' in scope
384 | _attrs.append((NSAttributedStringKey.backgroundColor.rawValue, UIColor.clear))
385 |
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:383:58: error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'font'
381 | var _attrs = attrs
382 | _attrs.append((NSAttributedStringKey.foregroundColor.rawValue, UIColor.clear))
383 | _attrs.append((NSAttributedStringKey.font.rawValue, UIFont(name: fonts["normalfont"]!, size: 1)!))
| `- error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'font'
384 | _attrs.append((NSAttributedStringKey.backgroundColor.rawValue, UIColor.clear))
385 |
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:384:84: error: cannot find 'UIColor' in scope
382 | _attrs.append((NSAttributedStringKey.foregroundColor.rawValue, UIColor.clear))
383 | _attrs.append((NSAttributedStringKey.font.rawValue, UIFont(name: fonts["normalfont"]!, size: 1)!))
384 | _attrs.append((NSAttributedStringKey.backgroundColor.rawValue, UIColor.clear))
| `- error: cannot find 'UIColor' in scope
385 |
386 | var _attrDict: [NSAttributedStringKey : Any] = [:]
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:384:58: error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'backgroundColor'
382 | _attrs.append((NSAttributedStringKey.foregroundColor.rawValue, UIColor.clear))
383 | _attrs.append((NSAttributedStringKey.font.rawValue, UIFont(name: fonts["normalfont"]!, size: 1)!))
384 | _attrs.append((NSAttributedStringKey.backgroundColor.rawValue, UIColor.clear))
| `- error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'backgroundColor'
385 |
386 | var _attrDict: [NSAttributedStringKey : Any] = [:]
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:386:37: error: 'NSAttributedStringKey' has been renamed to 'NSAttributedString.Key'
384 | _attrs.append((NSAttributedStringKey.backgroundColor.rawValue, UIColor.clear))
385 |
386 | var _attrDict: [NSAttributedStringKey : Any] = [:]
| `- error: 'NSAttributedStringKey' has been renamed to 'NSAttributedString.Key'
387 | for (key, value) in _attrs {
388 | _attrDict[NSAttributedStringKey(rawValue: key)] = value
Foundation.NSAttributedStringKey:2:18: note: 'NSAttributedStringKey' has been explicitly marked unavailable here
1 | @available(*, unavailable, renamed: "NSAttributedString.Key")
2 | public typealias NSAttributedStringKey = NSAttributedString.Key
| `- note: 'NSAttributedStringKey' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:388:35: error: 'NSAttributedStringKey' has been renamed to 'NSAttributedString.Key'
386 | var _attrDict: [NSAttributedStringKey : Any] = [:]
387 | for (key, value) in _attrs {
388 | _attrDict[NSAttributedStringKey(rawValue: key)] = value
| `- error: 'NSAttributedStringKey' has been renamed to 'NSAttributedString.Key'
389 | }
390 | _result.append(NSAttributedString(string: " ", attributes: _attrDict))
Foundation.NSAttributedStringKey:2:18: note: 'NSAttributedStringKey' has been explicitly marked unavailable here
1 | @available(*, unavailable, renamed: "NSAttributedString.Key")
2 | public typealias NSAttributedStringKey = NSAttributedString.Key
| `- note: 'NSAttributedStringKey' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:391:36: error: no exact matches in call to initializer
389 | }
390 | _result.append(NSAttributedString(string: " ", attributes: _attrDict))
391 | _result.append(NSAttributedString(attachment: attachment))
| `- error: no exact matches in call to initializer
392 | _result.append(NSAttributedString(string: " ", attributes: _attrDict))
393 |
Foundation.NSAttributedString.init:2:8: note: incorrect labels for candidate (have: '(attachment:)', expected: '(string:)')
1 | class NSAttributedString {
2 | public init(string: String)}
| `- note: incorrect labels for candidate (have: '(attachment:)', expected: '(string:)')
3 |
Foundation.NSAttributedString.init:2:8: note: incorrect labels for candidate (have: '(attachment:)', expected: '(attributedString:)')
1 | class NSAttributedString {
2 | public init(attributedString: NSAttributedString)}
| `- note: incorrect labels for candidate (have: '(attachment:)', expected: '(attributedString:)')
3 |
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:395:34: error: cannot find type 'UIFont' in scope
393 |
394 | case "Font":
395 | let oldfont: UIFont
| `- error: cannot find type 'UIFont' in scope
396 | if let _font = lastAttr(in: attrs, with: NSAttributedStringKey.font.rawValue) as? UIFont{
397 | oldfont = _font
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:396:103: error: cannot find type 'UIFont' in scope
394 | case "Font":
395 | let oldfont: UIFont
396 | if let _font = lastAttr(in: attrs, with: NSAttributedStringKey.font.rawValue) as? UIFont{
| `- error: cannot find type 'UIFont' in scope
397 | oldfont = _font
398 | } else {
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:396:84: error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'font'
394 | case "Font":
395 | let oldfont: UIFont
396 | if let _font = lastAttr(in: attrs, with: NSAttributedStringKey.font.rawValue) as? UIFont{
| `- error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'font'
397 | oldfont = _font
398 | } else {
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:406:34: error: cannot find type 'UIFont' in scope
404 | }
405 |
406 | let newfont: UIFont
| `- error: cannot find type 'UIFont' in scope
407 | if let fontName = parameter(in: _command, withKey: "name") {
408 | if let fontSize = parameter(in: _command, withKey: "size") {
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:410:43: error: cannot find 'UIFont' in scope
408 | if let fontSize = parameter(in: _command, withKey: "size") {
409 | if let _fontsize = NumberFormatter().number(from: fontSize) {
410 | newfont = UIFont(name: fontName, size: CGFloat(truncating: _fontsize))!
| `- error: cannot find 'UIFont' in scope
411 | } else {
412 | newfont = UIFont(name: fontName, size: oldfont.pointSize)!
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:410:72: error: no exact matches in call to initializer
408 | if let fontSize = parameter(in: _command, withKey: "size") {
409 | if let _fontsize = NumberFormatter().number(from: fontSize) {
410 | newfont = UIFont(name: fontName, size: CGFloat(truncating: _fontsize))!
| |- error: no exact matches in call to initializer
| |- note: candidate expects value of type 'Float' for parameter #1 (got 'NSNumber')
| |- note: candidate expects value of type 'Double' for parameter #1 (got 'NSNumber')
| |- note: candidate expects value of type 'UInt8' for parameter #1 (got 'NSNumber')
| |- note: candidate expects value of type 'Int8' for parameter #1 (got 'NSNumber')
| |- note: candidate expects value of type 'UInt16' for parameter #1 (got 'NSNumber')
| |- note: candidate expects value of type 'Int16' for parameter #1 (got 'NSNumber')
| |- note: candidate expects value of type 'UInt32' for parameter #1 (got 'NSNumber')
| |- note: candidate expects value of type 'Int32' for parameter #1 (got 'NSNumber')
| |- note: candidate expects value of type 'UInt64' for parameter #1 (got 'NSNumber')
| |- note: candidate expects value of type 'Int64' for parameter #1 (got 'NSNumber')
| |- note: candidate expects value of type 'UInt' for parameter #1 (got 'NSNumber')
| `- note: candidate expects value of type 'Int' for parameter #1 (got 'NSNumber')
411 | } else {
412 | newfont = UIFont(name: fontName, size: oldfont.pointSize)!
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:412:43: error: cannot find 'UIFont' in scope
410 | newfont = UIFont(name: fontName, size: CGFloat(truncating: _fontsize))!
411 | } else {
412 | newfont = UIFont(name: fontName, size: oldfont.pointSize)!
| `- error: cannot find 'UIFont' in scope
413 | }
414 | } else {
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:415:39: error: cannot find 'UIFont' in scope
413 | }
414 | } else {
415 | newfont = UIFont(name: fontName, size: oldfont.pointSize)!
| `- error: cannot find 'UIFont' in scope
416 | }
417 | } else {
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:420:43: error: cannot find 'UIFont' in scope
418 | if let fontSize = parameter(in: _command, withKey: "size") {
419 | if let _fontsize = NumberFormatter().number(from: fontSize) {
420 | newfont = UIFont(name: oldfont.fontName, size: CGFloat(truncating: _fontsize))!
| `- error: cannot find 'UIFont' in scope
421 | } else {
422 | newfont = oldfont
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:420:80: error: no exact matches in call to initializer
418 | if let fontSize = parameter(in: _command, withKey: "size") {
419 | if let _fontsize = NumberFormatter().number(from: fontSize) {
420 | newfont = UIFont(name: oldfont.fontName, size: CGFloat(truncating: _fontsize))!
| |- error: no exact matches in call to initializer
| |- note: candidate expects value of type 'Float' for parameter #1 (got 'NSNumber')
| |- note: candidate expects value of type 'Double' for parameter #1 (got 'NSNumber')
| |- note: candidate expects value of type 'UInt8' for parameter #1 (got 'NSNumber')
| |- note: candidate expects value of type 'Int8' for parameter #1 (got 'NSNumber')
| |- note: candidate expects value of type 'UInt16' for parameter #1 (got 'NSNumber')
| |- note: candidate expects value of type 'Int16' for parameter #1 (got 'NSNumber')
| |- note: candidate expects value of type 'UInt32' for parameter #1 (got 'NSNumber')
| |- note: candidate expects value of type 'Int32' for parameter #1 (got 'NSNumber')
| |- note: candidate expects value of type 'UInt64' for parameter #1 (got 'NSNumber')
| |- note: candidate expects value of type 'Int64' for parameter #1 (got 'NSNumber')
| |- note: candidate expects value of type 'UInt' for parameter #1 (got 'NSNumber')
| `- note: candidate expects value of type 'Int' for parameter #1 (got 'NSNumber')
421 | } else {
422 | newfont = oldfont
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:429:57: error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'font'
427 | }
428 |
429 | attrs.append((NSAttributedStringKey.font.rawValue, newfont))
| `- error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'font'
430 |
431 | case "FontSizeAdjust":
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:432:34: error: cannot find type 'UIFont' in scope
430 |
431 | case "FontSizeAdjust":
432 | let oldfont: UIFont
| `- error: cannot find type 'UIFont' in scope
433 | if let _font = lastAttr(in: attrs, with: NSAttributedStringKey.font.rawValue) as? UIFont{
434 | oldfont = _font
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:433:103: error: cannot find type 'UIFont' in scope
431 | case "FontSizeAdjust":
432 | let oldfont: UIFont
433 | if let _font = lastAttr(in: attrs, with: NSAttributedStringKey.font.rawValue) as? UIFont{
| `- error: cannot find type 'UIFont' in scope
434 | oldfont = _font
435 | } else {
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:433:84: error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'font'
431 | case "FontSizeAdjust":
432 | let oldfont: UIFont
433 | if let _font = lastAttr(in: attrs, with: NSAttributedStringKey.font.rawValue) as? UIFont{
| `- error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'font'
434 | oldfont = _font
435 | } else {
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:436:35: error: cannot find 'UIFont' in scope
434 | oldfont = _font
435 | } else {
436 | oldfont = UIFont(name: fonts["normalfont"]!, size: normalFontSize)!
| `- error: cannot find 'UIFont' in scope
437 | }
438 |
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:436:48: error: cannot find 'fonts' in scope
434 | oldfont = _font
435 | } else {
436 | oldfont = UIFont(name: fonts["normalfont"]!, size: normalFontSize)!
| `- error: cannot find 'fonts' in scope
437 | }
438 |
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:436:76: error: cannot find 'normalFontSize' in scope
434 | oldfont = _font
435 | } else {
436 | oldfont = UIFont(name: fonts["normalfont"]!, size: normalFontSize)!
| `- error: cannot find 'normalFontSize' in scope
437 | }
438 |
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:447:34: error: cannot find type 'UIFont' in scope
445 | }
446 |
447 | var newfont: UIFont
| `- error: cannot find type 'UIFont' in scope
448 | if _fontsizeadjust == 0 {
449 | newfont = oldfont.withSize(normalFontSize)
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:449:52: error: cannot find 'normalFontSize' in scope
447 | var newfont: UIFont
448 | if _fontsizeadjust == 0 {
449 | newfont = oldfont.withSize(normalFontSize)
| `- error: cannot find 'normalFontSize' in scope
450 | } else {
451 | newfont = oldfont.withSize(oldfont.pointSize + _fontsizeadjust)
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:454:57: error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'font'
452 | }
453 |
454 | attrs.append((NSAttributedStringKey.font.rawValue, newfont))
| `- error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'font'
455 |
456 | case "ThemeFont":
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:465:39: error: cannot find 'fonts' in scope
463 | switch _commandName {
464 | case "b":
465 | newfontname = fonts["boldfont"]!
| `- error: cannot find 'fonts' in scope
466 | case "i":
467 | newfontname = fonts["italicfont"]!
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:467:39: error: cannot find 'fonts' in scope
465 | newfontname = fonts["boldfont"]!
466 | case "i":
467 | newfontname = fonts["italicfont"]!
| `- error: cannot find 'fonts' in scope
468 | default:
469 | if let _font = fonts[_commandName] {
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:469:40: error: cannot find 'fonts' in scope
467 | newfontname = fonts["italicfont"]!
468 | default:
469 | if let _font = fonts[_commandName] {
| `- error: cannot find 'fonts' in scope
470 | newfontname = _font
471 | } else {
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:476:38: error: cannot find 'UIFont' in scope
474 | }
475 |
476 | if let newfont = UIFont(name: newfontname, size: oldfontsize) {
| `- error: cannot find 'UIFont' in scope
477 | attrs.append((NSAttributedStringKey.font.rawValue, newfont))
478 | }
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:476:70: error: cannot find 'oldfontsize' in scope
474 | }
475 |
476 | if let newfont = UIFont(name: newfontname, size: oldfontsize) {
| `- error: cannot find 'oldfontsize' in scope
477 | attrs.append((NSAttributedStringKey.font.rawValue, newfont))
478 | }
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:477:61: error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'font'
475 |
476 | if let newfont = UIFont(name: newfontname, size: oldfontsize) {
477 | attrs.append((NSAttributedStringKey.font.rawValue, newfont))
| `- error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'font'
478 | }
479 |
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:481:36: error: cannot find 'UIColor' in scope
479 |
480 | case "ForegroundColor":
481 | var newcolor = UIColor.black
| `- error: cannot find 'UIColor' in scope
482 | if _commandName == "color" {
483 | if let _newcolorname = parameter(in: _command, withKey: "name"),
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:495:57: error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'foregroundColor'
493 | }
494 |
495 | attrs.append((NSAttributedStringKey.foregroundColor.rawValue, newcolor))
| `- error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'foregroundColor'
496 |
497 | case "BackgroundColor":
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:498:36: error: cannot find 'UIColor' in scope
496 |
497 | case "BackgroundColor":
498 | var newcolor = UIColor.black
| `- error: cannot find 'UIColor' in scope
499 | if let _newcolorname = parameter(in: _command, withKey: "name"),
500 | let _newcolor = colors[_newcolorname] {
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:506:57: error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'backgroundColor'
504 | }
505 |
506 | attrs.append((NSAttributedStringKey.backgroundColor.rawValue, newcolor))
| `- error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'backgroundColor'
507 |
508 | case "Alignment":
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:509:33: error: cannot find 'NSMutableParagraphStyle' in scope
507 |
508 | case "Alignment":
509 | let style = NSMutableParagraphStyle()
| `- error: cannot find 'NSMutableParagraphStyle' in scope
510 | if let _olds = lastAttr(in: attrs, with: NSAttributedStringKey.paragraphStyle.rawValue) {
511 | style.setParagraphStyle(_olds as! NSParagraphStyle)
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:510:84: error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'paragraphStyle'
508 | case "Alignment":
509 | let style = NSMutableParagraphStyle()
510 | if let _olds = lastAttr(in: attrs, with: NSAttributedStringKey.paragraphStyle.rawValue) {
| `- error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'paragraphStyle'
511 | style.setParagraphStyle(_olds as! NSParagraphStyle)
512 | } else {
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:511:59: error: cannot find type 'NSParagraphStyle' in scope
509 | let style = NSMutableParagraphStyle()
510 | if let _olds = lastAttr(in: attrs, with: NSAttributedStringKey.paragraphStyle.rawValue) {
511 | style.setParagraphStyle(_olds as! NSParagraphStyle)
| `- error: cannot find type 'NSParagraphStyle' in scope
512 | } else {
513 | #if os(iOS)
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:524:52: error: cannot infer contextual base in reference to member 'left'
522 | switch _position {
523 | case "left":
524 | style.alignment = .left
| `- error: cannot infer contextual base in reference to member 'left'
525 | case "center":
526 | style.alignment = .center
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:526:52: error: cannot infer contextual base in reference to member 'center'
524 | style.alignment = .left
525 | case "center":
526 | style.alignment = .center
| `- error: cannot infer contextual base in reference to member 'center'
527 | case "right":
528 | style.alignment = .right
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:528:52: error: cannot infer contextual base in reference to member 'right'
526 | style.alignment = .center
527 | case "right":
528 | style.alignment = .right
| `- error: cannot infer contextual base in reference to member 'right'
529 | default:
530 | break
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:536:48: error: cannot infer contextual base in reference to member 'left'
534 | switch _commandName {
535 | case "left":
536 | style.alignment = .left
| `- error: cannot infer contextual base in reference to member 'left'
537 | case "center":
538 | style.alignment = .center
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:538:48: error: cannot infer contextual base in reference to member 'center'
536 | style.alignment = .left
537 | case "center":
538 | style.alignment = .center
| `- error: cannot infer contextual base in reference to member 'center'
539 | case "right":
540 | style.alignment = .right
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:540:48: error: cannot infer contextual base in reference to member 'right'
538 | style.alignment = .center
539 | case "right":
540 | style.alignment = .right
| `- error: cannot infer contextual base in reference to member 'right'
541 | default:
542 | break
/host/spi-builder-workspace/.build/checkouts/TextFormater/Sources/TextFormater.swift:545:57: error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'paragraphStyle'
543 | }
544 | }
545 | attrs.append((NSAttributedStringKey.paragraphStyle.rawValue, style))
| `- error: type 'NSAttributedStringKey' (aka 'NSAttributedString.Key') has no member 'paragraphStyle'
546 |
547 | default:
BUILD FAILURE 6.3 linux