Build Information
Successful build of MacroKit, reference main (9c9f59
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 13:45:06 UTC.
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/IanKeen/MacroKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/IanKeen/MacroKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 9c9f59c Merge pull request #4 from bsrz/bs/improvements
Cloned https://github.com/IanKeen/MacroKit.git
Revision (git rev-parse @):
9c9f59cc06c28432cccd306d49ec9c56ea8902b6
SUCCESS checkout https://github.com/IanKeen/MacroKit.git at main
Fetching https://github.com/pointfreeco/swift-macro-testing
Fetching https://github.com/pointfreeco/swift-snapshot-testing
Fetching https://github.com/swiftlang/swift-syntax
[1/631] Fetching swift-macro-testing
[84/13077] Fetching swift-macro-testing, swift-snapshot-testing
[2126/79485] Fetching swift-macro-testing, swift-snapshot-testing, swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (3.73s)
[10713/13077] Fetching swift-macro-testing, swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-macro-testing from cache (4.03s)
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (4.03s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 510.0.2 (3.27s)
Computing version for https://github.com/pointfreeco/swift-macro-testing
Computed https://github.com/pointfreeco/swift-macro-testing at 0.5.1 (0.51s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.17.2 (0.69s)
Creating working copy for https://github.com/pointfreeco/swift-macro-testing
Working copy of https://github.com/pointfreeco/swift-macro-testing resolved at 0.5.1
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.17.2
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 510.0.2
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "macrokit",
"name": "MacroKit",
"url": "https://github.com/IanKeen/MacroKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/MacroKit",
"dependencies": [
{
"identity": "swift-syntax",
"name": "swift-syntax",
"url": "https://github.com/swiftlang/swift-syntax",
"version": "510.0.3",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-syntax",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/IanKeen/MacroKit.git
[1/190] Fetching macrokit
Fetched https://github.com/IanKeen/MacroKit.git from cache (0.80s)
Fetching https://github.com/swiftlang/swift-syntax from cache
Fetched https://github.com/swiftlang/swift-syntax from cache (0.95s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 510.0.3 (0.03s)
Creating working copy for https://github.com/IanKeen/MacroKit.git
Working copy of https://github.com/IanKeen/MacroKit.git resolved at main (9c9f59c)
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 510.0.3
Found 1 product dependencies
- swift-syntax
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/IanKeen/MacroKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/23] Write sources
[16/23] Write MacroKitClient-entitlement.plist
[17/23] Write swift-version--7754E27361AE5C74.txt
[19/27] Emitting module SwiftSyntax509
[20/27] Compiling SwiftSyntax509 Empty.swift
[21/27] Compiling SwiftSyntax510 Empty.swift
[22/27] Emitting module SwiftSyntax510
[23/89] Compiling SwiftSyntax AbsolutePosition.swift
[24/89] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[25/89] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[26/89] Compiling SwiftSyntax Assert.swift
[27/89] Compiling SwiftSyntax BumpPtrAllocator.swift
[28/89] Compiling SwiftSyntax CommonAncestor.swift
[29/89] Compiling SwiftSyntax Convenience.swift
[30/95] Compiling SwiftSyntax SyntaxHashable.swift
[31/95] Compiling SwiftSyntax SyntaxIdentifier.swift
[32/95] Compiling SwiftSyntax SyntaxNodeStructure.swift
[33/95] Compiling SwiftSyntax SyntaxProtocol.swift
[34/95] Compiling SwiftSyntax SyntaxText.swift
[35/95] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[36/95] Compiling SwiftSyntax TokenDiagnostic.swift
[37/95] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[38/95] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[39/95] Compiling SwiftSyntax SyntaxBaseNodes.swift
[40/95] Compiling SwiftSyntax SyntaxCollections.swift
[41/95] Compiling SwiftSyntax SyntaxEnum.swift
[42/95] Compiling SwiftSyntax SyntaxKind.swift
[43/95] Compiling SwiftSyntax SyntaxRewriter.swift
[44/95] Compiling SwiftSyntax RawSyntaxNodesC.swift
[45/95] Compiling SwiftSyntax RawSyntaxNodesD.swift
[46/95] Compiling SwiftSyntax RawSyntaxNodesEF.swift
[47/95] Compiling SwiftSyntax RawSyntaxNodesGHI.swift
[48/95] Compiling SwiftSyntax RawSyntaxNodesJKLMN.swift
[49/95] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[50/95] Compiling SwiftSyntax MemoryLayout.swift
[51/95] Compiling SwiftSyntax MissingNodeInitializers.swift
[52/95] Compiling SwiftSyntax RawSyntax.swift
[53/95] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[54/95] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[55/95] Compiling SwiftSyntax RawSyntaxTokenView.swift
[56/95] Compiling SwiftSyntax SourceLength.swift
[57/95] Compiling SwiftSyntax SourceLocation.swift
[58/95] Compiling SwiftSyntax SourcePresence.swift
[59/95] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[60/95] Compiling SwiftSyntax Syntax.swift
[61/95] Compiling SwiftSyntax SyntaxArena.swift
[62/95] Compiling SwiftSyntax SyntaxChildren.swift
[63/95] Compiling SwiftSyntax SyntaxCollection.swift
[64/95] Compiling SwiftSyntax SyntaxTraits.swift
[65/95] Compiling SwiftSyntax SyntaxTransform.swift
[66/95] Compiling SwiftSyntax SyntaxVisitor.swift
[67/95] Compiling SwiftSyntax TokenKind.swift
[68/95] Compiling SwiftSyntax Tokens.swift
[69/95] Compiling SwiftSyntax TriviaPieces.swift
[70/95] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[71/95] Emitting module SwiftSyntax
[72/95] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[73/95] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[74/95] Compiling SwiftSyntax RawSyntaxValidation.swift
[75/95] Compiling SwiftSyntax SyntaxNodesAB.swift
[76/95] Compiling SwiftSyntax SyntaxNodesC.swift
[77/95] Compiling SwiftSyntax SyntaxNodesD.swift
[78/95] Compiling SwiftSyntax TokenSequence.swift
[79/95] Compiling SwiftSyntax TokenSyntax.swift
[80/95] Compiling SwiftSyntax Trivia.swift
[81/95] Compiling SwiftSyntax Utils.swift
[82/95] Compiling SwiftSyntax ChildNameForKeyPath.swift
[83/95] Compiling SwiftSyntax Keyword.swift
[84/95] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[85/95] Compiling SwiftSyntax SyntaxNodesEF.swift
[86/95] Compiling SwiftSyntax SyntaxNodesGHI.swift
[87/95] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[88/95] Compiling SwiftSyntax SyntaxNodesOP.swift
[89/95] Compiling SwiftSyntax SyntaxNodesQRS.swift
[90/95] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[91/147] Compiling SwiftDiagnostics Note.swift
[92/147] Compiling SwiftDiagnostics Message.swift
[93/147] Compiling SwiftBasicFormat Syntax+Extensions.swift
[94/147] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[95/147] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[96/147] Compiling SwiftDiagnostics Diagnostic.swift
[97/147] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[98/147] Compiling SwiftDiagnostics FixIt.swift
[99/147] Emitting module SwiftDiagnostics
[100/147] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[101/147] Compiling SwiftDiagnostics Convenience.swift
[102/147] Emitting module SwiftBasicFormat
[103/147] Compiling SwiftBasicFormat BasicFormat.swift
[104/147] Compiling SwiftParser Statements.swift
[105/147] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[106/147] Compiling SwiftParser StringLiterals.swift
[107/147] Compiling SwiftParser SwiftParserCompatibility.swift
[108/151] Compiling SwiftParser Names.swift
[109/151] Compiling SwiftParser Nominals.swift
[110/151] Compiling SwiftParser Parameters.swift
[111/151] Compiling SwiftParser ParseSourceFile.swift
[112/151] Compiling SwiftParser SyntaxUtils.swift
[113/151] Compiling SwiftParser TokenConsumer.swift
[114/151] Compiling SwiftParser TokenPrecedence.swift
[115/151] Compiling SwiftParser TokenSpec.swift
[116/151] Compiling SwiftParser Attributes.swift
[117/151] Compiling SwiftParser Availability.swift
[118/151] Compiling SwiftParser CharacterInfo.swift
[119/151] Compiling SwiftParser CollectionNodes+Parsable.swift
[120/151] Compiling SwiftParser Declarations.swift
[121/151] Emitting module SwiftParser
[122/151] Compiling SwiftParser UnicodeScalarExtensions.swift
[123/151] Compiling SwiftParser Lookahead.swift
[124/151] Compiling SwiftParser LoopProgressCondition.swift
[125/151] Compiling SwiftParser Modifiers.swift
[126/151] Compiling SwiftParser TokenSpecSet.swift
[127/151] Compiling SwiftParser TopLevel.swift
[128/151] Compiling SwiftParser TriviaParser.swift
[129/151] Compiling SwiftParser Types.swift
[130/151] Compiling SwiftParser Lexeme.swift
[131/151] Compiling SwiftParser LexemeSequence.swift
[132/151] Compiling SwiftParser Lexer.swift
[133/151] Compiling SwiftParser RegexLiteralLexer.swift
[134/151] Compiling SwiftParser Parser.swift
[135/151] Compiling SwiftParser Patterns.swift
[136/151] Compiling SwiftParser Recovery.swift
[137/151] Compiling SwiftParser Specifiers.swift
[138/151] Compiling SwiftParser Directives.swift
[139/151] Compiling SwiftParser ExperimentalFeatures.swift
[140/151] Compiling SwiftParser Expressions.swift
[141/151] Compiling SwiftParser IncrementalParseTransition.swift
[142/151] Compiling SwiftParser Cursor.swift
[143/151] Compiling SwiftParser IsLexerClassified.swift
[144/151] Compiling SwiftParser LayoutNodes+Parsable.swift
[145/151] Compiling SwiftParser Parser+TokenSpecSet.swift
[146/151] Compiling SwiftParser TokenSpecStaticMembers.swift
[147/174] Compiling SwiftOperators PrecedenceGroup.swift
[148/175] Compiling SwiftOperators PrecedenceGraph.swift
[149/175] Compiling SwiftOperators OperatorTable.swift
[150/175] Compiling SwiftOperators SyntaxSynthesis.swift
[151/175] Compiling SwiftOperators OperatorTable+Semantics.swift
[152/175] Compiling SwiftOperators OperatorError.swift
[153/175] Compiling SwiftOperators Operator.swift
[154/175] Compiling SwiftOperators OperatorTable+Defaults.swift
[155/175] Emitting module SwiftOperators
[156/175] Compiling SwiftOperators OperatorError+Diagnostics.swift
[157/175] Compiling SwiftOperators OperatorTable+Folding.swift
[158/175] Compiling SwiftParserDiagnostics Utils.swift
[159/175] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[160/175] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[161/175] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[162/176] Compiling SwiftParserDiagnostics PresenceUtils.swift
[163/176] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[164/176] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[165/176] Compiling SwiftParserDiagnostics MissingNodesError.swift
[166/176] Compiling SwiftParserDiagnostics MissingTokenError.swift
[167/176] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[168/176] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[169/176] Emitting module SwiftParserDiagnostics
[170/176] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[171/176] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[172/190] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[173/190] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[174/191] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[175/191] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[176/191] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[177/191] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[178/191] Compiling SwiftSyntaxBuilder Indenter.swift
[179/191] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[180/191] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[181/191] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[182/191] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[183/191] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[184/191] Emitting module SwiftSyntaxBuilder
[185/191] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[186/191] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[187/205] Compiling SwiftSyntaxMacros Macro.swift
[188/205] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[189/205] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[190/206] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[191/206] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[192/206] Compiling SwiftSyntaxMacros Macro+Format.swift
[193/206] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[194/206] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[195/206] Compiling SwiftSyntaxMacros MemberMacro.swift
[196/206] Compiling SwiftSyntaxMacros AccessorMacro.swift
[197/206] Compiling SwiftSyntaxMacros AttachedMacro.swift
[198/206] Emitting module SwiftSyntaxMacros
[199/206] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[200/206] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[201/206] Compiling SwiftSyntaxMacros PeerMacro.swift
[202/214] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[203/214] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[204/214] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[205/214] Emitting module SwiftSyntaxMacroExpansion
[206/214] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[207/214] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[208/214] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[209/214] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[210/221] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[211/221] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[212/221] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[213/221] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[214/221] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[215/221] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[216/221] Emitting module SwiftCompilerPluginMessageHandling
[217/223] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[218/223] Emitting module SwiftCompilerPlugin
[219/233] Compiling MacroKitMacros StaticMemberIterableMacro.swift
[220/233] Compiling MacroKitMacros Extensions.swift
[221/233] Compiling MacroKitMacros PublicInitMacro.swift
[222/233] Compiling MacroKitMacros KeyPathIterableMacro.swift
[223/233] Compiling MacroKitMacros VariableDeclSyntax+Extensions.swift
[224/233] Compiling MacroKitMacros AccessLevelSyntax.swift
[225/233] Compiling MacroKitMacros UnkeyedCodableMacro.swift
[226/234] Compiling MacroKitMacros DefaultMacro.swift
[227/234] Compiling MacroKitMacros GenerateMockMacro.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroKitMacros/GenerateMockMacro.swift:117:35: warning: 'appending' is deprecated: Create a new array of elements and construct a new collection type from those elements
115 |
116 | accessors = []
117 | accessors = accessors.appending("\(raw: getter.description) { \(raw: getter.effectSpecifiers?.throwsSpecifier != nil ? "try " : "")mocks.\(raw: newProperty.identifier.text).getter() }")
| `- warning: 'appending' is deprecated: Create a new array of elements and construct a new collection type from those elements
118 | if getter.effectSpecifiers == nil {
119 | accessors = accessors.appending("set { mocks.\(raw: identifier.text).setter(newValue) }")
/Users/admin/builder/spi-builder-workspace/Sources/MacroKitMacros/GenerateMockMacro.swift:119:39: warning: 'appending' is deprecated: Create a new array of elements and construct a new collection type from those elements
117 | accessors = accessors.appending("\(raw: getter.description) { \(raw: getter.effectSpecifiers?.throwsSpecifier != nil ? "try " : "")mocks.\(raw: newProperty.identifier.text).getter() }")
118 | if getter.effectSpecifiers == nil {
119 | accessors = accessors.appending("set { mocks.\(raw: identifier.text).setter(newValue) }")
| `- warning: 'appending' is deprecated: Create a new array of elements and construct a new collection type from those elements
120 | }
121 | accessors = accessors.trimmed
/Users/admin/builder/spi-builder-workspace/Sources/MacroKitMacros/GenerateMockMacro.swift:148:95: warning: 'replacing(childAt:with:)' is deprecated: Use .with(\.[index], newValue) instead
146 | var newParam = param
147 | newParam.secondName = "arg\(raw: x)"
148 | newSignature.parameterClause.parameters = newSignature.parameterClause.parameters.replacing(childAt: x, with: newParam)
| `- warning: 'replacing(childAt:with:)' is deprecated: Use .with(\.[index], newValue) instead
149 | params.append("arg\(x)")
150 | }
[228/234] Emitting module MacroKitMacros
[229/234] Compiling MacroKitMacros _MacroKitMacro.swift
[229/234] Write Objects.LinkFileList
[230/234] Linking MacroKitMacros-tool
[232/242] Compiling MacroKit StaticMemberIterable.swift
[233/242] Compiling MacroKit UnkeyedCodable.swift
[234/242] Compiling MacroKit _MacroKit.swift
[235/242] Compiling MacroKit PublicInit.swift
[236/242] Compiling MacroKit KeyPathIterable.swift
[237/242] Compiling MacroKit GenerateMock.swift
[238/242] Emitting module MacroKit
[239/242] Compiling MacroKit Default.swift
[240/249] Compiling MacroKitClient main.swift
[241/249] Compiling MacroKitClient PublicInit.swift
[242/249] Compiling MacroKitClient KeyPathIterable.swift
[243/249] Compiling MacroKitClient StaticMemberIterable.swift
macro expansion @StaticMemberIterable:1:21: warning: static property 'allStaticMembers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/MacroKitClient/StaticMemberIterable.swift:11:1: note: expanded code originates here
9 |
10 | var value: String
11 | }
+--- macro expansion @StaticMemberIterable --------------------------
|1 | internal static var allStaticMembers = [foo, bar, baz]
| | |- warning: static property 'allStaticMembers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| | |- note: convert 'allStaticMembers' to a 'let' constant to make 'Sendable' shared state immutable
| | |- note: annotate 'allStaticMembers' with '@MainActor' if property should only be accessed from the main actor
| | `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
+--------------------------------------------------------------------
12 |
13 | func testStaticMemberIterable() {
[244/249] Compiling MacroKitClient UnkeyedCodable.swift
[245/249] Compiling MacroKitClient GenerateMock.swift
[246/249] Emitting module MacroKitClient
macro expansion @StaticMemberIterable:1:21: warning: static property 'allStaticMembers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/MacroKitClient/StaticMemberIterable.swift:11:1: note: expanded code originates here
9 |
10 | var value: String
11 | }
+--- macro expansion @StaticMemberIterable --------------------------
|1 | internal static var allStaticMembers = [foo, bar, baz]
| | |- warning: static property 'allStaticMembers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| | |- note: convert 'allStaticMembers' to a 'let' constant to make 'Sendable' shared state immutable
| | |- note: annotate 'allStaticMembers' with '@MainActor' if property should only be accessed from the main actor
| | `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
+--------------------------------------------------------------------
12 |
13 | func testStaticMemberIterable() {
[246/249] Write Objects.LinkFileList
[247/249] Linking MacroKitClient
[248/249] Applying MacroKitClient
Build complete! (51.21s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-macro-testing",
"requirement" : {
"range" : [
{
"lower_bound" : "0.5.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/swift-macro-testing"
},
{
"identity" : "swift-syntax",
"requirement" : {
"range" : [
{
"lower_bound" : "509.0.0",
"upper_bound" : "511.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftlang/swift-syntax"
}
],
"manifest_display_name" : "MacroKit",
"name" : "MacroKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "MacroKit",
"targets" : [
"MacroKit"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MacroKitClient",
"targets" : [
"MacroKitClient"
],
"type" : {
"executable" : null
}
},
{
"name" : "MacroKitMacros",
"targets" : [
"MacroKitMacros"
],
"type" : {
"macro" : null
}
}
],
"targets" : [
{
"c99name" : "MacroKitTests",
"module_type" : "SwiftTarget",
"name" : "MacroKitTests",
"path" : "Tests/MacroKitTests",
"product_dependencies" : [
"SwiftSyntaxMacrosTestSupport",
"MacroTesting"
],
"sources" : [
"DefaultMacroTests.swift",
"GenerateMockMacroTests.swift",
"KeyPathIterableMacroTests.swift",
"PublicInitMacroTests.swift",
"StaticMemberIterableTests.swift",
"Support/Assertions.swift",
"SupportTests.swift",
"UnkeyedCodableMacroTests.swift"
],
"target_dependencies" : [
"MacroKitMacros"
],
"type" : "test"
},
{
"c99name" : "MacroKitMacros",
"module_type" : "SwiftTarget",
"name" : "MacroKitMacros",
"path" : "Sources/MacroKitMacros",
"product_dependencies" : [
"SwiftSyntaxMacros",
"SwiftCompilerPlugin"
],
"product_memberships" : [
"MacroKit",
"MacroKitClient",
"MacroKitMacros"
],
"sources" : [
"DefaultMacro.swift",
"GenerateMockMacro.swift",
"KeyPathIterableMacro.swift",
"PublicInitMacro.swift",
"StaticMemberIterableMacro.swift",
"Support/AccessLevelSyntax.swift",
"Support/Extensions.swift",
"Support/VariableDeclSyntax+Extensions.swift",
"UnkeyedCodableMacro.swift",
"_MacroKitMacro.swift"
],
"type" : "macro"
},
{
"c99name" : "MacroKitClient",
"module_type" : "SwiftTarget",
"name" : "MacroKitClient",
"path" : "Sources/MacroKitClient",
"product_memberships" : [
"MacroKitClient"
],
"sources" : [
"GenerateMock.swift",
"KeyPathIterable.swift",
"PublicInit.swift",
"StaticMemberIterable.swift",
"UnkeyedCodable.swift",
"main.swift"
],
"target_dependencies" : [
"MacroKit"
],
"type" : "executable"
},
{
"c99name" : "MacroKit",
"module_type" : "SwiftTarget",
"name" : "MacroKit",
"path" : "Sources/MacroKit",
"product_memberships" : [
"MacroKit",
"MacroKitClient"
],
"sources" : [
"Default.swift",
"GenerateMock.swift",
"KeyPathIterable.swift",
"PublicInit.swift",
"StaticMemberIterable.swift",
"UnkeyedCodable.swift",
"_MacroKit.swift"
],
"target_dependencies" : [
"MacroKitMacros"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Done.