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

Successful build of PureMVC, reference master (c6749c), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 03:12:39 UTC.

Swift 6 data race errors: 4

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/puremvc/puremvc-swift-standard-framework.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/puremvc/puremvc-swift-standard-framework
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at c6749cc update
Cloned https://github.com/puremvc/puremvc-swift-standard-framework.git
Revision (git rev-parse @):
c6749ccd16ca9e0ea420fa06b4dcf81389a821e7
SUCCESS checkout https://github.com/puremvc/puremvc-swift-standard-framework.git at master
========================================
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": "puremvc-swift-standard-framework",
      "name": "PureMVC",
      "url": "https://github.com/puremvc/puremvc-swift-standard-framework.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/puremvc-swift-standard-framework",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/puremvc/puremvc-swift-standard-framework.git
[9/859] Fetching puremvc-swift-standard-framework
Fetched https://github.com/puremvc/puremvc-swift-standard-framework.git from cache (1.73s)
Creating working copy for https://github.com/puremvc/puremvc-swift-standard-framework.git
Working copy of https://github.com/puremvc/puremvc-swift-standard-framework.git resolved at master (c6749cc)
warning: '.resolve-product-dependencies': dependency 'puremvc-swift-standard-framework' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/puremvc/puremvc-swift-standard-framework.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/22] Emitting module PureMVC
/Users/admin/builder/spi-builder-workspace/Sources/PureMVC/core/Controller.swift:53:24: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 51 |
 52 |     // Singleton instance
 53 |     private static var instance: IController?
    |                        |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instance' 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
 54 |
 55 |     // Concurrent queue for singleton instance
/Users/admin/builder/spi-builder-workspace/Sources/PureMVC/core/Model.swift:42:24: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 40 |
 41 |     // Singleton instance
 42 |     private static var instance: IModel?
    |                        |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instance' 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
 43 |
 44 |     // Concurrent queue for singleton instance
/Users/admin/builder/spi-builder-workspace/Sources/PureMVC/core/View.swift:47:24: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 45 |
 46 |     // Singleton instance
 47 |     private static var instance: IView?
    |                        |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instance' 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
 48 |
 49 |     // Concurrent queue for singleton instance
/Users/admin/builder/spi-builder-workspace/Sources/PureMVC/patterns/facade/Facade.swift:42:24: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 40 |
 41 |     // The Singleton Facade instance
 42 |     private static var instance: IFacade?
    |                        |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instance' 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
 43 |
 44 |     // Concurrent queue for singleton instance
[4/24] Compiling PureMVC Notification.swift
[5/24] Compiling PureMVC Notifier.swift
[6/24] Compiling PureMVC Observer.swift
[7/24] Compiling PureMVC Proxy.swift
[8/24] Compiling PureMVC INotifier.swift
[9/24] Compiling PureMVC IObserver.swift
[10/24] Compiling PureMVC IProxy.swift
[11/24] Compiling PureMVC IView.swift
[12/24] Compiling PureMVC IFacade.swift
[13/24] Compiling PureMVC IMediator.swift
[14/24] Compiling PureMVC ICommand.swift
[15/24] Compiling PureMVC IController.swift
[16/24] Compiling PureMVC MacroCommand.swift
[17/24] Compiling PureMVC SimpleCommand.swift
[18/24] Compiling PureMVC Facade.swift
/Users/admin/builder/spi-builder-workspace/Sources/PureMVC/patterns/facade/Facade.swift:42:24: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 40 |
 41 |     // The Singleton Facade instance
 42 |     private static var instance: IFacade?
    |                        |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instance' 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
 43 |
 44 |     // Concurrent queue for singleton instance
[19/24] Compiling PureMVC Mediator.swift
/Users/admin/builder/spi-builder-workspace/Sources/PureMVC/patterns/facade/Facade.swift:42:24: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 40 |
 41 |     // The Singleton Facade instance
 42 |     private static var instance: IFacade?
    |                        |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instance' 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
 43 |
 44 |     // Concurrent queue for singleton instance
[20/24] Compiling PureMVC IModel.swift
[21/24] Compiling PureMVC INotification.swift
[22/24] Compiling PureMVC Controller.swift
/Users/admin/builder/spi-builder-workspace/Sources/PureMVC/core/Controller.swift:53:24: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 51 |
 52 |     // Singleton instance
 53 |     private static var instance: IController?
    |                        |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instance' 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
 54 |
 55 |     // Concurrent queue for singleton instance
/Users/admin/builder/spi-builder-workspace/Sources/PureMVC/core/Model.swift:42:24: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 40 |
 41 |     // Singleton instance
 42 |     private static var instance: IModel?
    |                        |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instance' 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
 43 |
 44 |     // Concurrent queue for singleton instance
/Users/admin/builder/spi-builder-workspace/Sources/PureMVC/core/View.swift:47:24: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 45 |
 46 |     // Singleton instance
 47 |     private static var instance: IView?
    |                        |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instance' 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
 48 |
 49 |     // Concurrent queue for singleton instance
[23/24] Compiling PureMVC Model.swift
/Users/admin/builder/spi-builder-workspace/Sources/PureMVC/core/Controller.swift:53:24: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 51 |
 52 |     // Singleton instance
 53 |     private static var instance: IController?
    |                        |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instance' 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
 54 |
 55 |     // Concurrent queue for singleton instance
/Users/admin/builder/spi-builder-workspace/Sources/PureMVC/core/Model.swift:42:24: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 40 |
 41 |     // Singleton instance
 42 |     private static var instance: IModel?
    |                        |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instance' 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
 43 |
 44 |     // Concurrent queue for singleton instance
/Users/admin/builder/spi-builder-workspace/Sources/PureMVC/core/View.swift:47:24: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 45 |
 46 |     // Singleton instance
 47 |     private static var instance: IView?
    |                        |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instance' 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
 48 |
 49 |     // Concurrent queue for singleton instance
[24/24] Compiling PureMVC View.swift
/Users/admin/builder/spi-builder-workspace/Sources/PureMVC/core/Controller.swift:53:24: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 51 |
 52 |     // Singleton instance
 53 |     private static var instance: IController?
    |                        |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instance' 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
 54 |
 55 |     // Concurrent queue for singleton instance
/Users/admin/builder/spi-builder-workspace/Sources/PureMVC/core/Model.swift:42:24: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 40 |
 41 |     // Singleton instance
 42 |     private static var instance: IModel?
    |                        |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instance' 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
 43 |
 44 |     // Concurrent queue for singleton instance
/Users/admin/builder/spi-builder-workspace/Sources/PureMVC/core/View.swift:47:24: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 45 |
 46 |     // Singleton instance
 47 |     private static var instance: IView?
    |                        |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instance' 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
 48 |
 49 |     // Concurrent queue for singleton instance
Build complete! (12.58s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PureMVC",
  "name" : "PureMVC",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "PureMVC",
      "targets" : [
        "PureMVC"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PureMVCTests",
      "module_type" : "SwiftTarget",
      "name" : "PureMVCTests",
      "path" : "Tests/PureMVCTests",
      "sources" : [
        "core/ControllerTest.swift",
        "core/ControllerTestCommand.swift",
        "core/ControllerTestCommand2.swift",
        "core/ControllerTestVO.swift",
        "core/ModelTest.swift",
        "core/ModelTestProxy.swift",
        "core/ViewTest.swift",
        "core/ViewTestMediator.swift",
        "core/ViewTestMediator2.swift",
        "core/ViewTestMediator3.swift",
        "core/ViewTestMediator4.swift",
        "core/ViewTestMediator5.swift",
        "core/ViewTestMediator6.swift",
        "core/ViewTestNote.swift",
        "core/ViewTestVO.swift",
        "patterns/command/MacroCommandTest.swift",
        "patterns/command/MacroCommandTestCommand.swift",
        "patterns/command/MacroCommandTestSub1Command.swift",
        "patterns/command/MacroCommandTestSub2Command.swift",
        "patterns/command/MacroCommandTestVO.swift",
        "patterns/command/SimpleCommandTest.swift",
        "patterns/command/SimpleCommandTestCommand.swift",
        "patterns/command/SimpleCommandTestVO.swift",
        "patterns/facade/FacadeTest.swift",
        "patterns/facade/FacadeTestCommand.swift",
        "patterns/facade/FacadeTestVO.swift",
        "patterns/mediator/MediatorTest.swift",
        "patterns/observer/NotificationTest.swift",
        "patterns/observer/NotifierTest.swift",
        "patterns/observer/ObserverTest.swift",
        "patterns/proxy/ProxyTest.swift"
      ],
      "target_dependencies" : [
        "PureMVC"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PureMVC",
      "module_type" : "SwiftTarget",
      "name" : "PureMVC",
      "path" : "Sources/PureMVC",
      "product_memberships" : [
        "PureMVC"
      ],
      "sources" : [
        "core/Controller.swift",
        "core/Model.swift",
        "core/View.swift",
        "interfaces/ICommand.swift",
        "interfaces/IController.swift",
        "interfaces/IFacade.swift",
        "interfaces/IMediator.swift",
        "interfaces/IModel.swift",
        "interfaces/INotification.swift",
        "interfaces/INotifier.swift",
        "interfaces/IObserver.swift",
        "interfaces/IProxy.swift",
        "interfaces/IView.swift",
        "patterns/command/MacroCommand.swift",
        "patterns/command/SimpleCommand.swift",
        "patterns/facade/Facade.swift",
        "patterns/mediator/Mediator.swift",
        "patterns/observer/Notification.swift",
        "patterns/observer/Notifier.swift",
        "patterns/observer/Observer.swift",
        "patterns/proxy/Proxy.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.