Build Information
Failed to build docc2html with Swift 5.10 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.41.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/DoccZz/docc2html.git
Reference: develop
Initialized empty Git repository in /Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/DoccZz/docc2html
* branch develop -> FETCH_HEAD
* [new branch] develop -> origin/develop
HEAD is now at 7d55a51 Merge pull request #27 from DavidBrunow/update/optionalAlt
Cloned https://github.com/DoccZz/docc2html.git
Revision (git rev-parse @):
7d55a51a28d3b9b06d550e949d96fd01a7749b86
SUCCESS checkout https://github.com/DoccZz/docc2html.git at develop
Fetching https://github.com/DoccZz/DocCArchive.git from cache
Fetching https://github.com/apple/swift-log.git from cache
Fetching https://github.com/AlwaysRightInstitute/mustache.git from cache
Fetched https://github.com/AlwaysRightInstitute/mustache.git from cache (0.21s)
Fetched https://github.com/DoccZz/DocCArchive.git from cache (0.24s)
Fetched https://github.com/apple/swift-log.git from cache (0.28s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.4 (0.11s)
Computing version for https://github.com/DoccZz/DocCArchive.git
Computed https://github.com/DoccZz/DocCArchive.git at 0.4.1 (0.43s)
Computing version for https://github.com/AlwaysRightInstitute/mustache.git
Computed https://github.com/AlwaysRightInstitute/mustache.git at 1.0.1 (0.36s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.5.4
Creating working copy for https://github.com/DoccZz/DocCArchive.git
Working copy of https://github.com/DoccZz/DocCArchive.git resolved at 0.4.1
Creating working copy for https://github.com/AlwaysRightInstitute/mustache.git
Working copy of https://github.com/AlwaysRightInstitute/mustache.git resolved at 1.0.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "docc2html",
"name": "docc2html",
"url": "https://github.com/DoccZz/docc2html.git",
"version": "unspecified",
"path": "/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/docc2html",
"dependencies": [
{
"identity": "mustache",
"name": "mustache",
"url": "https://github.com/AlwaysRightInstitute/mustache.git",
"version": "1.0.1",
"path": "/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/mustache",
"dependencies": [
]
},
{
"identity": "doccarchive",
"name": "DocCArchive",
"url": "https://github.com/DoccZz/DocCArchive.git",
"version": "0.4.1",
"path": "/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DocCArchive",
"dependencies": [
]
},
{
"identity": "swift-log",
"name": "swift-log",
"url": "https://github.com/apple/swift-log.git",
"version": "1.5.4",
"path": "/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/DoccZz/docc2html.git from cache
Fetched https://github.com/DoccZz/docc2html.git from cache (0.22s)
Fetching https://github.com/apple/swift-log.git from cache
Fetching https://github.com/DoccZz/DocCArchive.git from cache
Fetching https://github.com/AlwaysRightInstitute/mustache.git from cache
Fetched https://github.com/AlwaysRightInstitute/mustache.git from cache (0.19s)
Fetched https://github.com/DoccZz/DocCArchive.git from cache (0.22s)
Fetched https://github.com/apple/swift-log.git from cache (0.27s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.4 (0.02s)
Computing version for https://github.com/DoccZz/DocCArchive.git
Computed https://github.com/DoccZz/DocCArchive.git at 0.4.1 (0.02s)
Computing version for https://github.com/AlwaysRightInstitute/mustache.git
Computed https://github.com/AlwaysRightInstitute/mustache.git at 1.0.1 (0.01s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.5.4
Creating working copy for https://github.com/AlwaysRightInstitute/mustache.git
Working copy of https://github.com/AlwaysRightInstitute/mustache.git resolved at 1.0.1
Creating working copy for https://github.com/DoccZz/docc2html.git
Working copy of https://github.com/DoccZz/docc2html.git resolved at develop (7d55a51)
Creating working copy for https://github.com/DoccZz/DocCArchive.git
Working copy of https://github.com/DoccZz/DocCArchive.git resolved at 0.4.1
Found 3 product dependencies
- mustache
- DocCArchive
- swift-log
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.10
Building package at path: $workDir
https://github.com/DoccZz/docc2html.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/11] Write sources
[5/11] Write docc2html-entitlement.plist
[5/11] Write sources
[7/11] Write swift-version-33747A42983211AE.txt
[9/49] Compiling Logging LogHandler.swift
[10/49] Compiling Logging MetadataProvider.swift
[11/49] Compiling Logging Locks.swift
[12/49] Emitting module Logging
[13/49] Compiling Logging Logging.swift
[14/49] Compiling mustache Mustacheable.swift
[15/49] Compiling DocCArchive SchemaVersion.swift
[16/49] Compiling DocCArchive Declaration.swift
[17/49] Compiling DocCArchive HeroSection.swift
[18/52] Compiling DocCArchive Parameter.swift
[19/52] Compiling DocCArchive Section.swift
[20/52] Compiling DocCArchive Task.swift
[21/52] Compiling DocCArchive InlineContent.swift
[22/52] Compiling DocCArchive InterfaceLanguage.swift
[23/52] Compiling DocCArchive MetaData.swift
[24/52] Compiling DocCArchive Platform.swift
[25/52] Compiling DocCArchive Step.swift
[26/52] Compiling DocCArchive Document.swift
[27/52] Compiling DocCArchive Fragment.swift
[28/52] Compiling DocCArchive Identifier.swift
[29/52] Compiling mustache MustacheRenderingContext.swift
[30/52] Compiling mustache MustacheNode.swift
[31/52] Compiling mustache HTMLEscape.swift
[32/52] Compiling mustache Helpers.swift
[33/52] Compiling mustache MustacheParser.swift
[34/52] Compiling mustache SimpleKVC.swift
[35/52] Emitting module mustache
[36/52] Emitting module DocCArchive
[37/52] Compiling DocCArchive Reference.swift
[38/52] Compiling DocCArchive SectionReference.swift
[39/52] Compiling DocCArchive TopicReference.swift
[40/52] Compiling DocCArchive FileReference.swift
[41/52] Compiling DocCArchive ImageReference.swift
[42/52] Compiling DocCArchive LinkReference.swift
[43/52] Compiling DocCArchive VolumeSection.swift
[44/52] Compiling DocCArchive TypeIdentifier.swift
[45/52] Compiling DocCArchive Utilities.swift
[46/52] Compiling DocCArchive DocCArchive.swift
[47/52] Compiling DocCArchive Chapter.swift
[48/52] Compiling DocCArchive CodeListing.swift
[49/52] Compiling DocCArchive Content.swift
[50/76] Compiling DocCHTMLExporter Sections.swift
[51/76] Compiling DocCHTMLExporter StepContent.swift
[52/76] Compiling DocCHTMLExporter Stylesheet.swift
[53/76] Compiling DocCHTMLExporter Page.swift
[54/76] Compiling DocCHTMLExporter ParametersSection.swift
[55/76] Compiling DocCHTMLExporter PrimaryContent.swift
[56/76] Compiling DocCHTMLExporter Task.swift
[57/76] Compiling DocCHTMLExporter TopicTitle.swift
[58/76] Compiling DocCHTMLExporter Volume.swift
[59/76] Compiling DocCHTMLExporter DocumentContent.swift
[60/76] Compiling DocCHTMLExporter Hero.swift
[61/76] Compiling DocCHTMLExporter Navigation.swift
[62/76] Compiling DocCHTMLExporter SectionHTML.swift
[63/76] Compiling DocCHTMLExporter CodeListing.swift
[64/76] Compiling DocCHTMLExporter DeclarationSection.swift
[65/79] Compiling DocCHTMLExporter AnchorString.swift
[66/79] Compiling DocCHTMLExporter Console.swift
[67/79] Compiling DocCHTMLExporter HTMLEscape.swift
[68/79] Emitting module DocCHTMLExporter
[69/79] Compiling DocCHTMLExporter BuildDocument.swift
[70/79] Compiling DocCHTMLExporter BuildNavigation.swift
[71/79] Compiling DocCHTMLExporter DZRenderingContext.swift
[72/79] Compiling DocCHTMLExporter ExternalLinks.swift
[73/79] Compiling DocCHTMLExporter ContentHTML.swift
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/DocCHTMLExporter/HTML/ReferenceHTML.swift:93:23: error: cannot use optional chaining on non-optional value of type 'String'
return ref.alt?.htmlEscaped ?? ""
~~~~~~~^
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/DocCHTMLExporter/HTML/ReferenceHTML.swift:153:46: error: cannot use optional chaining on non-optional value of type 'String'
return "<!-- invalid image ref -->\(alt?.htmlEscaped ?? "")"
~~~^
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/DocCHTMLExporter/HTML/ReferenceHTML.swift:176:8: error: initializer for conditional binding must have Optional type, not 'String'
if let alt = alt, !alt.isEmpty { ms += " alt='\(alt.htmlEscaped)'" }
^ ~~~
[74/79] Compiling DocCHTMLExporter FragmentHTML.swift
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/DocCHTMLExporter/HTML/ReferenceHTML.swift:93:23: error: cannot use optional chaining on non-optional value of type 'String'
return ref.alt?.htmlEscaped ?? ""
~~~~~~~^
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/DocCHTMLExporter/HTML/ReferenceHTML.swift:153:46: error: cannot use optional chaining on non-optional value of type 'String'
return "<!-- invalid image ref -->\(alt?.htmlEscaped ?? "")"
~~~^
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/DocCHTMLExporter/HTML/ReferenceHTML.swift:176:8: error: initializer for conditional binding must have Optional type, not 'String'
if let alt = alt, !alt.isEmpty { ms += " alt='\(alt.htmlEscaped)'" }
^ ~~~
[75/79] Compiling DocCHTMLExporter InlineContentHTML.swift
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/DocCHTMLExporter/HTML/ReferenceHTML.swift:93:23: error: cannot use optional chaining on non-optional value of type 'String'
return ref.alt?.htmlEscaped ?? ""
~~~~~~~^
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/DocCHTMLExporter/HTML/ReferenceHTML.swift:153:46: error: cannot use optional chaining on non-optional value of type 'String'
return "<!-- invalid image ref -->\(alt?.htmlEscaped ?? "")"
~~~^
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/DocCHTMLExporter/HTML/ReferenceHTML.swift:176:8: error: initializer for conditional binding must have Optional type, not 'String'
if let alt = alt, !alt.isEmpty { ms += " alt='\(alt.htmlEscaped)'" }
^ ~~~
[76/79] Compiling DocCHTMLExporter ReferenceHTML.swift
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/DocCHTMLExporter/HTML/ReferenceHTML.swift:93:23: error: cannot use optional chaining on non-optional value of type 'String'
return ref.alt?.htmlEscaped ?? ""
~~~~~~~^
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/DocCHTMLExporter/HTML/ReferenceHTML.swift:153:46: error: cannot use optional chaining on non-optional value of type 'String'
return "<!-- invalid image ref -->\(alt?.htmlEscaped ?? "")"
~~~^
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/DocCHTMLExporter/HTML/ReferenceHTML.swift:176:8: error: initializer for conditional binding must have Optional type, not 'String'
if let alt = alt, !alt.isEmpty { ms += " alt='\(alt.htmlEscaped)'" }
^ ~~~
error: fatalError
BUILD FAILURE 5.10 macosSpm