Build Information
Failed to build VFont with Swift 6.0 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dufflink/vfont.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dufflink/vfont
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 373e97d Update README.md
Cloned https://github.com/dufflink/vfont.git
Revision (git rev-parse @):
373e97dcc59c6662eb5b0fca1bbf5d2116c1525b
SUCCESS checkout https://github.com/dufflink/vfont.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/dufflink/vfont.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Compiling VFont Axis.swift
[4/5] Emitting module VFont
/Users/admin/builder/spi-builder-workspace/Source/Framework/VFont.swift:12:37: error: cannot find type 'UIFont' in scope
10 | open class VFont {
11 |
12 | private(set) public var uiFont: UIFont
| `- error: cannot find type 'UIFont' in scope
13 |
14 | private(set) public var name: String
/Users/admin/builder/spi-builder-workspace/Source/Framework/VFont.swift:19:27: error: cannot find type 'UIFont' in scope
17 | private(set) public var axes: [Int: Axis]
18 |
19 | public var updated: ((UIFont?) -> Void)?
| `- error: cannot find type 'UIFont' in scope
20 |
21 | public var variableFontName: String {
[5/5] Compiling VFont VFont.swift
/Users/admin/builder/spi-builder-workspace/Source/Framework/VFont.swift:12:37: error: cannot find type 'UIFont' in scope
10 | open class VFont {
11 |
12 | private(set) public var uiFont: UIFont
| `- error: cannot find type 'UIFont' in scope
13 |
14 | private(set) public var name: String
/Users/admin/builder/spi-builder-workspace/Source/Framework/VFont.swift:19:27: error: cannot find type 'UIFont' in scope
17 | private(set) public var axes: [Int: Axis]
18 |
19 | public var updated: ((UIFont?) -> Void)?
| `- error: cannot find type 'UIFont' in scope
20 |
21 | public var variableFontName: String {
/Users/admin/builder/spi-builder-workspace/Source/Framework/VFont.swift:28:28: error: cannot find 'UIFont' in scope
26 |
27 | public init?(name: String, size: CGFloat) {
28 | guard let uiFont = UIFont(name: name, size: size) else {
| `- error: cannot find 'UIFont' in scope
29 | print("Couldn't init font \(name). Make sure you've added this font to the project. Please, check the font name is correct.")
30 | return nil
/Users/admin/builder/spi-builder-workspace/Source/Framework/VFont.swift:112:48: error: cannot find type 'UIFontDescriptor' in scope
110 | }
111 |
112 | let key = kCTFontVariationAttribute as UIFontDescriptor.AttributeName
| `- error: cannot find type 'UIFontDescriptor' in scope
113 | let uiFontDescriptor = UIFontDescriptor(fontAttributes: [.name: variableFontName, key: variations])
114 |
/Users/admin/builder/spi-builder-workspace/Source/Framework/VFont.swift:113:32: error: cannot find 'UIFontDescriptor' in scope
111 |
112 | let key = kCTFontVariationAttribute as UIFontDescriptor.AttributeName
113 | let uiFontDescriptor = UIFontDescriptor(fontAttributes: [.name: variableFontName, key: variations])
| `- error: cannot find 'UIFontDescriptor' in scope
114 |
115 | uiFont = UIFont(descriptor: uiFontDescriptor, size: uiFont.pointSize)
/Users/admin/builder/spi-builder-workspace/Source/Framework/VFont.swift:113:67: error: reference to member 'name' cannot be resolved without a contextual type
111 |
112 | let key = kCTFontVariationAttribute as UIFontDescriptor.AttributeName
113 | let uiFontDescriptor = UIFontDescriptor(fontAttributes: [.name: variableFontName, key: variations])
| `- error: reference to member 'name' cannot be resolved without a contextual type
114 |
115 | uiFont = UIFont(descriptor: uiFontDescriptor, size: uiFont.pointSize)
/Users/admin/builder/spi-builder-workspace/Source/Framework/VFont.swift:115:18: error: cannot find 'UIFont' in scope
113 | let uiFontDescriptor = UIFontDescriptor(fontAttributes: [.name: variableFontName, key: variations])
114 |
115 | uiFont = UIFont(descriptor: uiFontDescriptor, size: uiFont.pointSize)
| `- error: cannot find 'UIFont' in scope
116 | }
117 |
BUILD FAILURE 6.0 macosSpm