The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build EffectiveNovelCore, reference main (68ba8d), with Swift 6.0 for macOS (SPM) on 16 Feb 2025 20:16:52 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mui-z/EffectiveNovelCore.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mui-z/EffectiveNovelCore
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 68ba8d4 Swift6 (#26)
Cloned https://github.com/mui-z/EffectiveNovelCore.git
Revision (git rev-parse @):
68ba8d49afa210cc20ebfeb720d5578d4b275d6f
SUCCESS checkout https://github.com/mui-z/EffectiveNovelCore.git at main
Fetching https://github.com/hmlongco/Factory
[1/13728] Fetching factory
Fetched https://github.com/hmlongco/Factory from cache (1.33s)
Computing version for https://github.com/hmlongco/Factory
Computed https://github.com/hmlongco/Factory at 2.1.5 (2.80s)
Creating working copy for https://github.com/hmlongco/Factory
Working copy of https://github.com/hmlongco/Factory resolved at 2.1.5
========================================
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": "effectivenovelcore",
      "name": "EffectiveNovelCore",
      "url": "https://github.com/mui-z/EffectiveNovelCore.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/EffectiveNovelCore",
      "dependencies": [
        {
          "identity": "factory",
          "name": "Factory",
          "url": "https://github.com/hmlongco/Factory",
          "version": "2.1.5",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Factory",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/mui-z/EffectiveNovelCore.git
[1/1267] Fetching effectivenovelcore
Fetched https://github.com/mui-z/EffectiveNovelCore.git from cache (0.84s)
Fetching https://github.com/hmlongco/Factory from cache
Fetched https://github.com/hmlongco/Factory from cache (0.44s)
Computing version for https://github.com/hmlongco/Factory
Computed https://github.com/hmlongco/Factory at 2.1.5 (0.02s)
Creating working copy for https://github.com/hmlongco/Factory
Working copy of https://github.com/hmlongco/Factory resolved at 2.1.5
Creating working copy for https://github.com/mui-z/EffectiveNovelCore.git
Working copy of https://github.com/mui-z/EffectiveNovelCore.git resolved at main (68ba8d4)
warning: '.resolve-product-dependencies': dependency 'effectivenovelcore' is not used by any target
Found 1 product dependencies
  - Factory
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/mui-z/EffectiveNovelCore.git
https://github.com/mui-z/EffectiveNovelCore.git
{
  "dependencies" : [
    {
      "identity" : "factory",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.5",
            "upper_bound" : "2.2.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/hmlongco/Factory"
    }
  ],
  "manifest_display_name" : "EffectiveNovelCore",
  "name" : "EffectiveNovelCore",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "EffectiveNovelCore",
      "targets" : [
        "EffectiveNovelCore"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "EffectiveNovelCoreTests",
      "module_type" : "SwiftTarget",
      "name" : "EffectiveNovelCoreTests",
      "path" : "Tests/EffectiveNovelCoreTests",
      "product_dependencies" : [
        "Factory"
      ],
      "sources" : [
        "Application/UseCase/ValidateScriptUseCaseTest.swift",
        "Controller/ControllerTest.swift",
        "Domain/Parser/PreProcessor/CommentRemoverTest.swift",
        "Domain/Parser/PreProcessor/NewlineCharacterRemoverTest.swift",
        "Domain/Parser/ScriptParserTests.swift",
        "Domain/Validator/BracketsPairValidatorTest.swift",
        "Domain/Validator/MustContainsIncludeTagsValidatorTest.swift",
        "Domain/Validator/ParseToDisplayEventsValidatorTest.swift"
      ],
      "target_dependencies" : [
        "EffectiveNovelCore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "EffectiveNovelCore",
      "module_type" : "SwiftTarget",
      "name" : "EffectiveNovelCore",
      "path" : "Sources/EffectiveNovelCore",
      "product_dependencies" : [
        "Factory"
      ],
      "product_memberships" : [
        "EffectiveNovelCore"
      ],
      "sources" : [
        "Application/UseCase/UseCaseContainer.swift",
        "Application/UseCase/ValidateScriptUseCase.swift",
        "Controller/EFNovelController.swift",
        "Domain/DomainContainer.swift",
        "Domain/Entity/EFNovelScript.swift",
        "Domain/Parser/PreProcessor/CommentOutRemover.swift",
        "Domain/Parser/PreProcessor/NewlineCharacterRemover.swift",
        "Domain/Parser/PreProcessor/PreProcessor.swift",
        "Domain/Parser/ScriptParser.swift",
        "Domain/Syntax/NovelSyntax.swift",
        "Domain/Validator/AllStringSyntaxValidatorProtocol.swift",
        "Domain/Validator/BracketsPairValidator.swift",
        "Domain/Validator/LineSyntaxValidatorProtocol.swift",
        "Domain/Validator/MustContainsIncludeTagsValidator.swift",
        "Domain/Validator/ParseToDisplayEventsValidator.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-5BDAB9E9C0126B9D.txt
[4/12] Compiling Factory Modifiers.swift
[5/12] Compiling Factory Scopes.swift
[6/12] Compiling Factory Registrations.swift
[7/12] Compiling Factory Contexts.swift
[8/12] Compiling Factory Factory.swift
[9/12] Compiling Factory Injections.swift
[10/12] Compiling Factory Containers.swift
[11/12] Compiling Factory Globals.swift
[12/12] Emitting module Factory
[13/27] Compiling EffectiveNovelCore MustContainsIncludeTagsValidator.swift
[14/27] Compiling EffectiveNovelCore NewlineCharacterRemover.swift
[15/27] Compiling EffectiveNovelCore PreProcessor.swift
[16/27] Compiling EffectiveNovelCore LineSyntaxValidatorProtocol.swift
[17/27] Compiling EffectiveNovelCore BracketsPairValidator.swift
[18/27] Compiling EffectiveNovelCore EFNovelScript.swift
[19/27] Compiling EffectiveNovelCore CommentOutRemover.swift
[20/27] Compiling EffectiveNovelCore AllStringSyntaxValidatorProtocol.swift
[21/27] Compiling EffectiveNovelCore ScriptParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectiveNovelCore/Domain/Syntax/NovelSyntax.swift:8:8: error: associated value 'notFoundMustIncludeTag(notFoundTags:)' of 'Sendable'-conforming enum 'ValidationError' has non-sendable type 'DisplayEvent'
 6 |   case unknownTag(lineNo: Int, tagName: String)
 7 |   case invalidBracketsPair(lineNo: Int)
 8 |   case notFoundMustIncludeTag(notFoundTags: [DisplayEvent])
   |        `- error: associated value 'notFoundMustIncludeTag(notFoundTags:)' of 'Sendable'-conforming enum 'ValidationError' has non-sendable type 'DisplayEvent'
 9 | }
10 |
   :
13 | }
14 |
15 | public enum DisplayEvent: Equatable {
   |             `- note: consider making enum 'DisplayEvent' conform to the 'Sendable' protocol
16 |   case character(char: Character)
17 |   case setDefaultDelay(speed: Double)
[22/27] Compiling EffectiveNovelCore NovelSyntax.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectiveNovelCore/Domain/Syntax/NovelSyntax.swift:8:8: error: associated value 'notFoundMustIncludeTag(notFoundTags:)' of 'Sendable'-conforming enum 'ValidationError' has non-sendable type 'DisplayEvent'
 6 |   case unknownTag(lineNo: Int, tagName: String)
 7 |   case invalidBracketsPair(lineNo: Int)
 8 |   case notFoundMustIncludeTag(notFoundTags: [DisplayEvent])
   |        `- error: associated value 'notFoundMustIncludeTag(notFoundTags:)' of 'Sendable'-conforming enum 'ValidationError' has non-sendable type 'DisplayEvent'
 9 | }
10 |
   :
13 | }
14 |
15 | public enum DisplayEvent: Equatable {
   |             `- note: consider making enum 'DisplayEvent' conform to the 'Sendable' protocol
16 |   case character(char: Character)
17 |   case setDefaultDelay(speed: Double)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[23/28] Compiling EffectiveNovelCore UseCaseContainer.swift
[24/28] Compiling EffectiveNovelCore ValidateScriptUseCase.swift
[25/28] Emitting module EffectiveNovelCore
/Users/admin/builder/spi-builder-workspace/Sources/EffectiveNovelCore/Domain/Syntax/NovelSyntax.swift:8:8: error: associated value 'notFoundMustIncludeTag(notFoundTags:)' of 'Sendable'-conforming enum 'ValidationError' has non-sendable type 'DisplayEvent'
 6 |   case unknownTag(lineNo: Int, tagName: String)
 7 |   case invalidBracketsPair(lineNo: Int)
 8 |   case notFoundMustIncludeTag(notFoundTags: [DisplayEvent])
   |        `- error: associated value 'notFoundMustIncludeTag(notFoundTags:)' of 'Sendable'-conforming enum 'ValidationError' has non-sendable type 'DisplayEvent'
 9 | }
10 |
   :
13 | }
14 |
15 | public enum DisplayEvent: Equatable {
   |             `- note: consider making enum 'DisplayEvent' conform to the 'Sendable' protocol
16 |   case character(char: Character)
17 |   case setDefaultDelay(speed: Double)
[26/28] Compiling EffectiveNovelCore EFNovelController.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectiveNovelCore/Controller/EFNovelController.swift:145:10: error: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure
143 |
144 |   private func startLoop() {
145 |     Task {
    |          `- error: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure
146 |       // NOTE: wait for preparing subscribe stream client.
147 |       try! await Task.sleep(nanoseconds: 100000)
148 |
149 |       while true {
150 |         switch state {
    |                `- note: closure captures 'self' which is accessible to code in the current task
151 |           case .running:
152 |             if displayEvents.isEmpty {
[27/28] Compiling EffectiveNovelCore DomainContainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectiveNovelCore/Controller/EFNovelController.swift:145:10: error: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure
143 |
144 |   private func startLoop() {
145 |     Task {
    |          `- error: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure
146 |       // NOTE: wait for preparing subscribe stream client.
147 |       try! await Task.sleep(nanoseconds: 100000)
148 |
149 |       while true {
150 |         switch state {
    |                `- note: closure captures 'self' which is accessible to code in the current task
151 |           case .running:
152 |             if displayEvents.isEmpty {
[28/28] Compiling EffectiveNovelCore ParseToDisplayEventsValidator.swift
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-5BDAB9E9C0126B9D.txt
[2/10] Compiling Factory Scopes.swift
[3/10] Compiling Factory Injections.swift
[4/10] Compiling Factory Modifiers.swift
[5/10] Compiling Factory Globals.swift
[6/10] Compiling Factory Contexts.swift
[7/10] Compiling Factory Factory.swift
[8/10] Compiling Factory Containers.swift
[9/10] Emitting module Factory
[10/10] Compiling Factory Registrations.swift
[11/25] Compiling EffectiveNovelCore BracketsPairValidator.swift
[12/25] Compiling EffectiveNovelCore AllStringSyntaxValidatorProtocol.swift
[13/25] Compiling EffectiveNovelCore MustContainsIncludeTagsValidator.swift
[14/25] Compiling EffectiveNovelCore ScriptParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectiveNovelCore/Domain/Syntax/NovelSyntax.swift:8:8: error: associated value 'notFoundMustIncludeTag(notFoundTags:)' of 'Sendable'-conforming enum 'ValidationError' has non-sendable type 'DisplayEvent'
 6 |   case unknownTag(lineNo: Int, tagName: String)
 7 |   case invalidBracketsPair(lineNo: Int)
 8 |   case notFoundMustIncludeTag(notFoundTags: [DisplayEvent])
   |        `- error: associated value 'notFoundMustIncludeTag(notFoundTags:)' of 'Sendable'-conforming enum 'ValidationError' has non-sendable type 'DisplayEvent'
 9 | }
10 |
   :
13 | }
14 |
15 | public enum DisplayEvent: Equatable {
   |             `- note: consider making enum 'DisplayEvent' conform to the 'Sendable' protocol
16 |   case character(char: Character)
17 |   case setDefaultDelay(speed: Double)
[15/25] Compiling EffectiveNovelCore NovelSyntax.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectiveNovelCore/Domain/Syntax/NovelSyntax.swift:8:8: error: associated value 'notFoundMustIncludeTag(notFoundTags:)' of 'Sendable'-conforming enum 'ValidationError' has non-sendable type 'DisplayEvent'
 6 |   case unknownTag(lineNo: Int, tagName: String)
 7 |   case invalidBracketsPair(lineNo: Int)
 8 |   case notFoundMustIncludeTag(notFoundTags: [DisplayEvent])
   |        `- error: associated value 'notFoundMustIncludeTag(notFoundTags:)' of 'Sendable'-conforming enum 'ValidationError' has non-sendable type 'DisplayEvent'
 9 | }
10 |
   :
13 | }
14 |
15 | public enum DisplayEvent: Equatable {
   |             `- note: consider making enum 'DisplayEvent' conform to the 'Sendable' protocol
16 |   case character(char: Character)
17 |   case setDefaultDelay(speed: Double)
[16/26] Compiling EffectiveNovelCore NewlineCharacterRemover.swift
[17/26] Compiling EffectiveNovelCore PreProcessor.swift
[18/26] Compiling EffectiveNovelCore LineSyntaxValidatorProtocol.swift
[19/26] Compiling EffectiveNovelCore EFNovelScript.swift
[20/26] Compiling EffectiveNovelCore CommentOutRemover.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[21/26] Compiling EffectiveNovelCore UseCaseContainer.swift
[22/26] Compiling EffectiveNovelCore ValidateScriptUseCase.swift
[23/26] Emitting module EffectiveNovelCore
/Users/admin/builder/spi-builder-workspace/Sources/EffectiveNovelCore/Domain/Syntax/NovelSyntax.swift:8:8: error: associated value 'notFoundMustIncludeTag(notFoundTags:)' of 'Sendable'-conforming enum 'ValidationError' has non-sendable type 'DisplayEvent'
 6 |   case unknownTag(lineNo: Int, tagName: String)
 7 |   case invalidBracketsPair(lineNo: Int)
 8 |   case notFoundMustIncludeTag(notFoundTags: [DisplayEvent])
   |        `- error: associated value 'notFoundMustIncludeTag(notFoundTags:)' of 'Sendable'-conforming enum 'ValidationError' has non-sendable type 'DisplayEvent'
 9 | }
10 |
   :
13 | }
14 |
15 | public enum DisplayEvent: Equatable {
   |             `- note: consider making enum 'DisplayEvent' conform to the 'Sendable' protocol
16 |   case character(char: Character)
17 |   case setDefaultDelay(speed: Double)
[24/26] Compiling EffectiveNovelCore EFNovelController.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectiveNovelCore/Controller/EFNovelController.swift:145:10: error: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure
143 |
144 |   private func startLoop() {
145 |     Task {
    |          `- error: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure
146 |       // NOTE: wait for preparing subscribe stream client.
147 |       try! await Task.sleep(nanoseconds: 100000)
148 |
149 |       while true {
150 |         switch state {
    |                `- note: closure captures 'self' which is accessible to code in the current task
151 |           case .running:
152 |             if displayEvents.isEmpty {
[25/26] Compiling EffectiveNovelCore DomainContainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectiveNovelCore/Controller/EFNovelController.swift:145:10: error: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure
143 |
144 |   private func startLoop() {
145 |     Task {
    |          `- error: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure
146 |       // NOTE: wait for preparing subscribe stream client.
147 |       try! await Task.sleep(nanoseconds: 100000)
148 |
149 |       while true {
150 |         switch state {
    |                `- note: closure captures 'self' which is accessible to code in the current task
151 |           case .running:
152 |             if displayEvents.isEmpty {
[26/26] Compiling EffectiveNovelCore ParseToDisplayEventsValidator.swift
BUILD FAILURE 6.0 macosSpm