Build Information
Successful build of DocX, reference master (58fa7f), with Swift 6.1 for macOS (SPM) on 20 Apr 2026 00:34:41 UTC.
Swift 6 data race errors: 5
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCapturesBuild Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/shinjukunian/DocX.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/shinjukunian/DocX
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 58fa7fc Merge pull request #59 from shinjukunian/fix_import
Cloned https://github.com/shinjukunian/DocX.git
Revision (git rev-parse @):
58fa7fc10a4f311874c15e70e05a833b5ede1627
SUCCESS checkout https://github.com/shinjukunian/DocX.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/shinjukunian/DocX.git
https://github.com/shinjukunian/DocX.git
{
"dependencies" : [
{
"identity" : "aexml",
"requirement" : {
"range" : [
{
"lower_bound" : "4.6.0",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/shinjukunian/AEXML.git"
},
{
"identity" : "zipfoundation",
"requirement" : {
"range" : [
{
"lower_bound" : "0.9.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/weichsel/ZIPFoundation.git"
}
],
"manifest_display_name" : "DocX",
"name" : "DocX",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "tvos",
"version" : "9.0"
},
{
"name" : "watchos",
"version" : "3.0"
}
],
"products" : [
{
"name" : "DocX",
"targets" : [
"DocX"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "DocXTests",
"module_type" : "SwiftTarget",
"name" : "DocXTests",
"path" : "DocXTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/DocXTests/Picture1.png",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/DocXTests/blank.docx",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/DocXTests/lenna.md",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/DocXTests/lenna.png",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/DocXTests/styles.xml",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"DocXTests.swift",
"ImageGeneration.swift"
],
"target_dependencies" : [
"DocX"
],
"type" : "test"
},
{
"c99name" : "DocX_iOS_Tests",
"module_type" : "SwiftTarget",
"name" : "DocX-iOS-Tests",
"path" : "DocX-iOS-Tests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/DocX-iOS-Tests/Picture1.png",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/DocX-iOS-Tests/lenna.md",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/DocX-iOS-Tests/lenna.png",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"DocX_iOS_Tests.swift",
"ImageGeneration.swift"
],
"target_dependencies" : [
"DocX"
],
"type" : "test"
},
{
"c99name" : "DocX",
"module_type" : "SwiftTarget",
"name" : "DocX",
"path" : "DocX",
"product_dependencies" : [
"AEXML",
"ZIPFoundation"
],
"product_memberships" : [
"DocX"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/DocX/blank",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"AttributeElements.swift",
"AttributedString.swift",
"Bundle+Extensions.swift",
"DocX.swift",
"DocXImageAttachment.swift",
"DocXNotes.swift",
"DocXNumbering.swift",
"DocXOptions.swift",
"DocXPageDefinition.swift",
"DocXStyleConfiguration.swift",
"DocXWriter.swift",
"DocXWriting.swift",
"DocumentRoot.swift",
"FontElements.swift",
"ImageRelationship.swift",
"NSAttributedString+DocX-macOS.swift",
"NSAttributedString+DocX.swift",
"NSAttributedString+Extensions.swift",
"NSAttributedString+Writing.swift",
"NSParagraphStyle+Elements.swift",
"NSTextAttachement+Extensions.swift",
"NSUnderlineStyle+Elements.swift",
"ParagraphElement.swift",
"PlatformSpecific-iOS.swift",
"PlatformSpecific-macOS.swift",
"RubyAnnotationElement.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/6] Write sources
[2/6] Copying PrivacyInfo.xcprivacy
[2/6] Write sources
[4/6] Copying blank
[5/6] Write swift-version-2F0A5646E1D333AE.txt
[7/34] Emitting module ZIPFoundation
[8/36] Compiling ZIPFoundation URL+ZIP.swift
[9/36] Compiling ZIPFoundation resource_bundle_accessor.swift
[10/36] Compiling ZIPFoundation Archive+MemoryFile.swift
[11/36] Compiling ZIPFoundation Archive+Progress.swift
[12/36] Compiling ZIPFoundation Archive+Reading.swift
[13/36] Compiling ZIPFoundation Date+ZIP.swift
[14/36] Compiling ZIPFoundation Entry+Serialization.swift
[15/36] Compiling ZIPFoundation Archive.swift
[16/36] Compiling ZIPFoundation Data+Compression.swift
[17/36] Compiling ZIPFoundation Entry+ZIP64.swift
[18/36] Compiling ZIPFoundation Entry.swift
[19/36] Compiling ZIPFoundation FileManager+ZIP.swift
[20/36] Compiling ZIPFoundation FileManager+ZIPDeprecated.swift
[21/36] Compiling ZIPFoundation Data+CompressionDeprecated.swift
[22/36] Compiling ZIPFoundation Data+Serialization.swift
[23/36] Compiling AEXML Error.swift
[24/36] Compiling AEXML Parser.swift
[25/36] Compiling AEXML Options.swift
[26/36] Compiling ZIPFoundation Archive+BackingConfiguration.swift
[27/36] Compiling ZIPFoundation Archive+Deprecated.swift
[28/36] Compiling ZIPFoundation Archive+Helpers.swift
[29/36] Compiling ZIPFoundation Archive+WritingDeprecated.swift
[30/36] Compiling ZIPFoundation Archive+ZIP64.swift
[31/36] Compiling ZIPFoundation Archive+ReadingDeprecated.swift
[32/36] Compiling ZIPFoundation Archive+Writing.swift
[33/36] Compiling AEXML Document.swift
[34/36] Compiling AEXML Builders.swift
[35/36] Emitting module AEXML
[36/36] Compiling AEXML Element.swift
[37/62] Emitting module DocX
/Users/admin/builder/spi-builder-workspace/DocX/DocXNumbering.swift:55:24: warning: static property 'markerFormatMapping' is not concurrency-safe because non-'Sendable' type '[(NSTextList.MarkerFormat, DocXListStyle)]' may have shared mutable state; this is an error in the Swift 6 language mode
17 | /// Each case must be a valid `numFmt`, as specified in the OOXML spec
18 | /// (though this is not everything that OOXML supports)
19 | public enum DocXListStyle: Int, Hashable, Comparable {
| `- note: consider making enum 'DocXListStyle' conform to the 'Sendable' protocol
20 | /// Bulleted list (•, ◦, ▪, repeating...)
21 | case bullet
:
53 |
54 | // Defines a mapping from NSParagraphStyle attributes to DocX ones
55 | private static let markerFormatMapping: [(NSTextList.MarkerFormat, DocXListStyle)] = [
| |- warning: static property 'markerFormatMapping' is not concurrency-safe because non-'Sendable' type '[(NSTextList.MarkerFormat, DocXListStyle)]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'markerFormatMapping' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | (.decimal, .decimal),
57 | (.lowercaseLatin, .lowerLetter),
/Users/admin/builder/spi-builder-workspace/DocX/DocXPageDefinition.swift:58:27: warning: static property 'A4' is not concurrency-safe because non-'Sendable' type 'PageDefinition.PageSize' may have shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// The size of a page
20 | public struct PageSize:Equatable, CustomStringConvertible, Hashable{
| `- note: consider making struct 'PageSize' conform to the 'Sendable' protocol
21 |
22 | ///Page width in twips
:
56 |
57 | /// An A4 page
58 | public static let A4:PageSize = PageSize(size: .init(width: 595, height: 842))
| |- warning: static property 'A4' is not concurrency-safe because non-'Sendable' type 'PageDefinition.PageSize' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'A4' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | /// A Letter page
/Users/admin/builder/spi-builder-workspace/DocX/DocXPageDefinition.swift:61:27: warning: static property 'letter' is not concurrency-safe because non-'Sendable' type 'PageDefinition.PageSize' may have shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// The size of a page
20 | public struct PageSize:Equatable, CustomStringConvertible, Hashable{
| `- note: consider making struct 'PageSize' conform to the 'Sendable' protocol
21 |
22 | ///Page width in twips
:
59 |
60 | /// A Letter page
61 | public static let letter:PageSize = PageSize(size: .init(width: 612, height: 792))
| |- warning: static property 'letter' is not concurrency-safe because non-'Sendable' type 'PageDefinition.PageSize' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'letter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | var pageSizeElement:AEXMLElement{
/Users/admin/builder/spi-builder-workspace/DocX/DocXPageDefinition.swift:173:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PageDefinition.PageMargins' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// The margins of a page (insets of the printable area).
81 | public struct PageMargins:Equatable, CustomStringConvertible, Hashable{
| `- note: consider making struct 'PageMargins' conform to the 'Sendable' protocol
82 |
83 | /// Top margin in twips
:
171 |
172 | /// The default margins of a standard Word document (one inch).
173 | public static let `default` = PageMargins(top: CGFloat(72), bottom: 72, left: 72, right: 72, footer: 35.4, header: 35.4)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PageDefinition.PageMargins' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
174 |
175 | var marginElement:AEXMLElement{
/Users/admin/builder/spi-builder-workspace/DocX/DocXStyleConfiguration.swift:69:24: warning: static property 'xmlOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
67 |
68 | /// Returns the AEXML options used to create an AEXMLDocument
69 | private static var xmlOptions: AEXMLOptions = {
| |- warning: static property 'xmlOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'xmlOptions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'xmlOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | var options = AEXMLOptions()
71 | options.parserSettings.shouldTrimWhitespace=false
[38/64] Compiling DocX PlatformSpecific-iOS.swift
[39/64] Compiling DocX PlatformSpecific-macOS.swift
[40/64] Compiling DocX RubyAnnotationElement.swift
[41/64] Compiling DocX resource_bundle_accessor.swift
[42/64] Compiling DocX AttributeElements.swift
[43/64] Compiling DocX AttributedString.swift
[44/64] Compiling DocX Bundle+Extensions.swift
[45/64] Compiling DocX DocumentRoot.swift
[46/64] Compiling DocX FontElements.swift
[47/64] Compiling DocX ImageRelationship.swift
[48/64] Compiling DocX NSAttributedString+DocX-macOS.swift
[49/64] Compiling DocX NSAttributedString+DocX.swift
[50/64] Compiling DocX NSAttributedString+Extensions.swift
[51/64] Compiling DocX NSUnderlineStyle+Elements.swift
[52/64] Compiling DocX ParagraphElement.swift
[53/64] Compiling DocX DocX.swift
[54/64] Compiling DocX DocXImageAttachment.swift
[55/64] Compiling DocX DocXNotes.swift
[56/64] Compiling DocX DocXNumbering.swift
/Users/admin/builder/spi-builder-workspace/DocX/DocXNumbering.swift:55:24: warning: static property 'markerFormatMapping' is not concurrency-safe because non-'Sendable' type '[(NSTextList.MarkerFormat, DocXListStyle)]' may have shared mutable state; this is an error in the Swift 6 language mode
17 | /// Each case must be a valid `numFmt`, as specified in the OOXML spec
18 | /// (though this is not everything that OOXML supports)
19 | public enum DocXListStyle: Int, Hashable, Comparable {
| `- note: consider making enum 'DocXListStyle' conform to the 'Sendable' protocol
20 | /// Bulleted list (•, ◦, ▪, repeating...)
21 | case bullet
:
53 |
54 | // Defines a mapping from NSParagraphStyle attributes to DocX ones
55 | private static let markerFormatMapping: [(NSTextList.MarkerFormat, DocXListStyle)] = [
| |- warning: static property 'markerFormatMapping' is not concurrency-safe because non-'Sendable' type '[(NSTextList.MarkerFormat, DocXListStyle)]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'markerFormatMapping' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | (.decimal, .decimal),
57 | (.lowercaseLatin, .lowerLetter),
/Users/admin/builder/spi-builder-workspace/DocX/DocXPageDefinition.swift:58:27: warning: static property 'A4' is not concurrency-safe because non-'Sendable' type 'PageDefinition.PageSize' may have shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// The size of a page
20 | public struct PageSize:Equatable, CustomStringConvertible, Hashable{
| `- note: consider making struct 'PageSize' conform to the 'Sendable' protocol
21 |
22 | ///Page width in twips
:
56 |
57 | /// An A4 page
58 | public static let A4:PageSize = PageSize(size: .init(width: 595, height: 842))
| |- warning: static property 'A4' is not concurrency-safe because non-'Sendable' type 'PageDefinition.PageSize' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'A4' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | /// A Letter page
/Users/admin/builder/spi-builder-workspace/DocX/DocXPageDefinition.swift:61:27: warning: static property 'letter' is not concurrency-safe because non-'Sendable' type 'PageDefinition.PageSize' may have shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// The size of a page
20 | public struct PageSize:Equatable, CustomStringConvertible, Hashable{
| `- note: consider making struct 'PageSize' conform to the 'Sendable' protocol
21 |
22 | ///Page width in twips
:
59 |
60 | /// A Letter page
61 | public static let letter:PageSize = PageSize(size: .init(width: 612, height: 792))
| |- warning: static property 'letter' is not concurrency-safe because non-'Sendable' type 'PageDefinition.PageSize' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'letter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | var pageSizeElement:AEXMLElement{
/Users/admin/builder/spi-builder-workspace/DocX/DocXPageDefinition.swift:173:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PageDefinition.PageMargins' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// The margins of a page (insets of the printable area).
81 | public struct PageMargins:Equatable, CustomStringConvertible, Hashable{
| `- note: consider making struct 'PageMargins' conform to the 'Sendable' protocol
82 |
83 | /// Top margin in twips
:
171 |
172 | /// The default margins of a standard Word document (one inch).
173 | public static let `default` = PageMargins(top: CGFloat(72), bottom: 72, left: 72, right: 72, footer: 35.4, header: 35.4)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PageDefinition.PageMargins' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
174 |
175 | var marginElement:AEXMLElement{
[57/64] Compiling DocX DocXOptions.swift
/Users/admin/builder/spi-builder-workspace/DocX/DocXNumbering.swift:55:24: warning: static property 'markerFormatMapping' is not concurrency-safe because non-'Sendable' type '[(NSTextList.MarkerFormat, DocXListStyle)]' may have shared mutable state; this is an error in the Swift 6 language mode
17 | /// Each case must be a valid `numFmt`, as specified in the OOXML spec
18 | /// (though this is not everything that OOXML supports)
19 | public enum DocXListStyle: Int, Hashable, Comparable {
| `- note: consider making enum 'DocXListStyle' conform to the 'Sendable' protocol
20 | /// Bulleted list (•, ◦, ▪, repeating...)
21 | case bullet
:
53 |
54 | // Defines a mapping from NSParagraphStyle attributes to DocX ones
55 | private static let markerFormatMapping: [(NSTextList.MarkerFormat, DocXListStyle)] = [
| |- warning: static property 'markerFormatMapping' is not concurrency-safe because non-'Sendable' type '[(NSTextList.MarkerFormat, DocXListStyle)]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'markerFormatMapping' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | (.decimal, .decimal),
57 | (.lowercaseLatin, .lowerLetter),
/Users/admin/builder/spi-builder-workspace/DocX/DocXPageDefinition.swift:58:27: warning: static property 'A4' is not concurrency-safe because non-'Sendable' type 'PageDefinition.PageSize' may have shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// The size of a page
20 | public struct PageSize:Equatable, CustomStringConvertible, Hashable{
| `- note: consider making struct 'PageSize' conform to the 'Sendable' protocol
21 |
22 | ///Page width in twips
:
56 |
57 | /// An A4 page
58 | public static let A4:PageSize = PageSize(size: .init(width: 595, height: 842))
| |- warning: static property 'A4' is not concurrency-safe because non-'Sendable' type 'PageDefinition.PageSize' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'A4' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | /// A Letter page
/Users/admin/builder/spi-builder-workspace/DocX/DocXPageDefinition.swift:61:27: warning: static property 'letter' is not concurrency-safe because non-'Sendable' type 'PageDefinition.PageSize' may have shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// The size of a page
20 | public struct PageSize:Equatable, CustomStringConvertible, Hashable{
| `- note: consider making struct 'PageSize' conform to the 'Sendable' protocol
21 |
22 | ///Page width in twips
:
59 |
60 | /// A Letter page
61 | public static let letter:PageSize = PageSize(size: .init(width: 612, height: 792))
| |- warning: static property 'letter' is not concurrency-safe because non-'Sendable' type 'PageDefinition.PageSize' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'letter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | var pageSizeElement:AEXMLElement{
/Users/admin/builder/spi-builder-workspace/DocX/DocXPageDefinition.swift:173:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PageDefinition.PageMargins' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// The margins of a page (insets of the printable area).
81 | public struct PageMargins:Equatable, CustomStringConvertible, Hashable{
| `- note: consider making struct 'PageMargins' conform to the 'Sendable' protocol
82 |
83 | /// Top margin in twips
:
171 |
172 | /// The default margins of a standard Word document (one inch).
173 | public static let `default` = PageMargins(top: CGFloat(72), bottom: 72, left: 72, right: 72, footer: 35.4, header: 35.4)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PageDefinition.PageMargins' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
174 |
175 | var marginElement:AEXMLElement{
[58/64] Compiling DocX DocXPageDefinition.swift
/Users/admin/builder/spi-builder-workspace/DocX/DocXNumbering.swift:55:24: warning: static property 'markerFormatMapping' is not concurrency-safe because non-'Sendable' type '[(NSTextList.MarkerFormat, DocXListStyle)]' may have shared mutable state; this is an error in the Swift 6 language mode
17 | /// Each case must be a valid `numFmt`, as specified in the OOXML spec
18 | /// (though this is not everything that OOXML supports)
19 | public enum DocXListStyle: Int, Hashable, Comparable {
| `- note: consider making enum 'DocXListStyle' conform to the 'Sendable' protocol
20 | /// Bulleted list (•, ◦, ▪, repeating...)
21 | case bullet
:
53 |
54 | // Defines a mapping from NSParagraphStyle attributes to DocX ones
55 | private static let markerFormatMapping: [(NSTextList.MarkerFormat, DocXListStyle)] = [
| |- warning: static property 'markerFormatMapping' is not concurrency-safe because non-'Sendable' type '[(NSTextList.MarkerFormat, DocXListStyle)]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'markerFormatMapping' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | (.decimal, .decimal),
57 | (.lowercaseLatin, .lowerLetter),
/Users/admin/builder/spi-builder-workspace/DocX/DocXPageDefinition.swift:58:27: warning: static property 'A4' is not concurrency-safe because non-'Sendable' type 'PageDefinition.PageSize' may have shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// The size of a page
20 | public struct PageSize:Equatable, CustomStringConvertible, Hashable{
| `- note: consider making struct 'PageSize' conform to the 'Sendable' protocol
21 |
22 | ///Page width in twips
:
56 |
57 | /// An A4 page
58 | public static let A4:PageSize = PageSize(size: .init(width: 595, height: 842))
| |- warning: static property 'A4' is not concurrency-safe because non-'Sendable' type 'PageDefinition.PageSize' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'A4' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | /// A Letter page
/Users/admin/builder/spi-builder-workspace/DocX/DocXPageDefinition.swift:61:27: warning: static property 'letter' is not concurrency-safe because non-'Sendable' type 'PageDefinition.PageSize' may have shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// The size of a page
20 | public struct PageSize:Equatable, CustomStringConvertible, Hashable{
| `- note: consider making struct 'PageSize' conform to the 'Sendable' protocol
21 |
22 | ///Page width in twips
:
59 |
60 | /// A Letter page
61 | public static let letter:PageSize = PageSize(size: .init(width: 612, height: 792))
| |- warning: static property 'letter' is not concurrency-safe because non-'Sendable' type 'PageDefinition.PageSize' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'letter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | var pageSizeElement:AEXMLElement{
/Users/admin/builder/spi-builder-workspace/DocX/DocXPageDefinition.swift:173:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PageDefinition.PageMargins' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// The margins of a page (insets of the printable area).
81 | public struct PageMargins:Equatable, CustomStringConvertible, Hashable{
| `- note: consider making struct 'PageMargins' conform to the 'Sendable' protocol
82 |
83 | /// Top margin in twips
:
171 |
172 | /// The default margins of a standard Word document (one inch).
173 | public static let `default` = PageMargins(top: CGFloat(72), bottom: 72, left: 72, right: 72, footer: 35.4, header: 35.4)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PageDefinition.PageMargins' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
174 |
175 | var marginElement:AEXMLElement{
[59/64] Compiling DocX NSAttributedString+Writing.swift
[60/64] Compiling DocX NSParagraphStyle+Elements.swift
[61/64] Compiling DocX NSTextAttachement+Extensions.swift
[62/64] Compiling DocX DocXStyleConfiguration.swift
/Users/admin/builder/spi-builder-workspace/DocX/DocXStyleConfiguration.swift:69:24: warning: static property 'xmlOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
67 |
68 | /// Returns the AEXML options used to create an AEXMLDocument
69 | private static var xmlOptions: AEXMLOptions = {
| |- warning: static property 'xmlOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'xmlOptions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'xmlOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | var options = AEXMLOptions()
71 | options.parserSettings.shouldTrimWhitespace=false
[63/64] Compiling DocX DocXWriter.swift
/Users/admin/builder/spi-builder-workspace/DocX/DocXStyleConfiguration.swift:69:24: warning: static property 'xmlOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
67 |
68 | /// Returns the AEXML options used to create an AEXMLDocument
69 | private static var xmlOptions: AEXMLOptions = {
| |- warning: static property 'xmlOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'xmlOptions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'xmlOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | var options = AEXMLOptions()
71 | options.parserSettings.shouldTrimWhitespace=false
[64/64] Compiling DocX DocXWriting.swift
/Users/admin/builder/spi-builder-workspace/DocX/DocXStyleConfiguration.swift:69:24: warning: static property 'xmlOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
67 |
68 | /// Returns the AEXML options used to create an AEXMLDocument
69 | private static var xmlOptions: AEXMLOptions = {
| |- warning: static property 'xmlOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'xmlOptions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'xmlOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | var options = AEXMLOptions()
71 | options.parserSettings.shouldTrimWhitespace=false
Build complete! (15.70s)
Fetching https://github.com/shinjukunian/AEXML.git
Fetching https://github.com/weichsel/ZIPFoundation.git
[1/1594] Fetching aexml
[145/7557] Fetching aexml, zipfoundation
Fetched https://github.com/shinjukunian/AEXML.git from cache (1.32s)
Fetched https://github.com/weichsel/ZIPFoundation.git from cache (1.32s)
Computing version for https://github.com/shinjukunian/AEXML.git
Computed https://github.com/shinjukunian/AEXML.git at 4.7.0 (1.80s)
Computing version for https://github.com/weichsel/ZIPFoundation.git
Computed https://github.com/weichsel/ZIPFoundation.git at 0.9.20 (0.47s)
Creating working copy for https://github.com/shinjukunian/AEXML.git
Working copy of https://github.com/shinjukunian/AEXML.git resolved at 4.7.0
Creating working copy for https://github.com/weichsel/ZIPFoundation.git
Working copy of https://github.com/weichsel/ZIPFoundation.git resolved at 0.9.20
Build complete.
{
"dependencies" : [
{
"identity" : "aexml",
"requirement" : {
"range" : [
{
"lower_bound" : "4.6.0",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/shinjukunian/AEXML.git"
},
{
"identity" : "zipfoundation",
"requirement" : {
"range" : [
{
"lower_bound" : "0.9.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/weichsel/ZIPFoundation.git"
}
],
"manifest_display_name" : "DocX",
"name" : "DocX",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "tvos",
"version" : "9.0"
},
{
"name" : "watchos",
"version" : "3.0"
}
],
"products" : [
{
"name" : "DocX",
"targets" : [
"DocX"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "DocXTests",
"module_type" : "SwiftTarget",
"name" : "DocXTests",
"path" : "DocXTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/DocXTests/Picture1.png",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/DocXTests/blank.docx",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/DocXTests/lenna.md",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/DocXTests/lenna.png",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/DocXTests/styles.xml",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"DocXTests.swift",
"ImageGeneration.swift"
],
"target_dependencies" : [
"DocX"
],
"type" : "test"
},
{
"c99name" : "DocX_iOS_Tests",
"module_type" : "SwiftTarget",
"name" : "DocX-iOS-Tests",
"path" : "DocX-iOS-Tests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/DocX-iOS-Tests/Picture1.png",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/DocX-iOS-Tests/lenna.md",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/DocX-iOS-Tests/lenna.png",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"DocX_iOS_Tests.swift",
"ImageGeneration.swift"
],
"target_dependencies" : [
"DocX"
],
"type" : "test"
},
{
"c99name" : "DocX",
"module_type" : "SwiftTarget",
"name" : "DocX",
"path" : "DocX",
"product_dependencies" : [
"AEXML",
"ZIPFoundation"
],
"product_memberships" : [
"DocX"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/DocX/blank",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"AttributeElements.swift",
"AttributedString.swift",
"Bundle+Extensions.swift",
"DocX.swift",
"DocXImageAttachment.swift",
"DocXNotes.swift",
"DocXNumbering.swift",
"DocXOptions.swift",
"DocXPageDefinition.swift",
"DocXStyleConfiguration.swift",
"DocXWriter.swift",
"DocXWriting.swift",
"DocumentRoot.swift",
"FontElements.swift",
"ImageRelationship.swift",
"NSAttributedString+DocX-macOS.swift",
"NSAttributedString+DocX.swift",
"NSAttributedString+Extensions.swift",
"NSAttributedString+Writing.swift",
"NSParagraphStyle+Elements.swift",
"NSTextAttachement+Extensions.swift",
"NSUnderlineStyle+Elements.swift",
"ParagraphElement.swift",
"PlatformSpecific-iOS.swift",
"PlatformSpecific-macOS.swift",
"RubyAnnotationElement.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.