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 Smile, reference master (2afe34), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 18:03:04 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/onmyway133/Smile.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/onmyway133/Smile
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 2afe344 Merge pull request #29 from xcuYao/dev_xcuYao2
Cloned https://github.com/onmyway133/Smile.git
Revision (git rev-parse @):
2afe344d17f30dee646ef4c54a6926b6dd021e7d
SUCCESS checkout https://github.com/onmyway133/Smile.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": "smile",
      "name": "Smile",
      "url": "https://github.com/onmyway133/Smile.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Smile",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/onmyway133/Smile.git
[1/666] Fetching smile
Fetched https://github.com/onmyway133/Smile.git from cache (0.96s)
Creating working copy for https://github.com/onmyway133/Smile.git
Working copy of https://github.com/onmyway133/Smile.git resolved at master (2afe344)
warning: '.resolve-product-dependencies': dependency 'smile' 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/onmyway133/Smile.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/8] Compiling Smile Utils.swift
[4/8] Compiling Smile Sequence.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sequence.swift:36:23: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
34 |     public static let end: String = emoji(unicodeValues: [0xFE0F])
35 |
36 |     public static var all: [String] =
   |                       |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'all' 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
37 |       Array(start.unicodeScalars.first!.value...end.unicodeScalars.first!.value)
38 |       .map({ emoji(unicodeValues: [Int($0)]) })
[5/8] Compiling Smile Smile.swift
[6/8] Compiling Smile Emoji.swift
[7/8] Emitting module Smile
/Users/admin/builder/spi-builder-workspace/Sources/Sequence.swift:36:23: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
34 |     public static let end: String = emoji(unicodeValues: [0xFE0F])
35 |
36 |     public static var all: [String] =
   |                       |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'all' 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
37 |       Array(start.unicodeScalars.first!.value...end.unicodeScalars.first!.value)
38 |       .map({ emoji(unicodeValues: [Int($0)]) })
[8/8] Compiling Smile Categories.swift
Build complete! (8.33s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Smile",
  "name" : "Smile",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Smile",
      "targets" : [
        "Smile"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SmileTests",
      "module_type" : "SwiftTarget",
      "name" : "SmileTests",
      "path" : "SmileTests",
      "sources" : [
        "Tests.swift"
      ],
      "target_dependencies" : [
        "Smile"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Smile",
      "module_type" : "SwiftTarget",
      "name" : "Smile",
      "path" : "Sources",
      "product_memberships" : [
        "Smile"
      ],
      "sources" : [
        "Categories.swift",
        "Emoji.swift",
        "Sequence.swift",
        "Smile.swift",
        "Utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.