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 SwiftUI-Haptics, reference 2.0.0 (3f150a), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 14:14:31 UTC.

Swift 6 data race errors: 0

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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/LiYanan2004/SwiftUI-Haptics.git
Reference: 2.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/LiYanan2004/SwiftUI-Haptics
 * tag               2.0.0      -> FETCH_HEAD
HEAD is now at 3f150a4 Add more documentations
Cloned https://github.com/LiYanan2004/SwiftUI-Haptics.git
Revision (git rev-parse @):
3f150a46e01b5ebb40324dc28c0062c52b0e94da
SUCCESS checkout https://github.com/LiYanan2004/SwiftUI-Haptics.git at 2.0.0
========================================
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": "swiftui-haptics",
      "name": "SwiftUI-Haptics",
      "url": "https://github.com/LiYanan2004/SwiftUI-Haptics.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftUI-Haptics",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/LiYanan2004/SwiftUI-Haptics.git
[1/70] Fetching swiftui-haptics
Fetched https://github.com/LiYanan2004/SwiftUI-Haptics.git from cache (0.65s)
Creating working copy for https://github.com/LiYanan2004/SwiftUI-Haptics.git
Working copy of https://github.com/LiYanan2004/SwiftUI-Haptics.git resolved at 2.0.0 (3f150a4)
warning: '.resolve-product-dependencies': dependency 'swiftui-haptics' 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/LiYanan2004/SwiftUI-Haptics.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftUI-Haptics",
  "name" : "SwiftUI-Haptics",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "Haptics",
      "targets" : [
        "Haptics"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Haptics",
      "module_type" : "SwiftTarget",
      "name" : "Haptics",
      "path" : "Sources/Haptics",
      "product_memberships" : [
        "Haptics"
      ],
      "sources" : [
        "HapticFeedback+SwiftUI.swift",
        "HapticFeedback.swift",
        "HapticGenerator.swift",
        "Presets.swift",
        "XcodeLibrary.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
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 -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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/8] Compiling Haptics Presets.swift
[4/8] Compiling Haptics XcodeLibrary.swift
/Users/admin/builder/spi-builder-workspace/Sources/Haptics/XcodeLibrary.swift:11:18: warning: call to main actor-isolated instance method 'hapticFeedback(_:trigger:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 9 |     public func modifiers(base: any View) -> [LibraryItem] {
10 |         LibraryItem(
11 |             base.hapticFeedback(.impact, trigger: status),
   |                  `- warning: call to main actor-isolated instance method 'hapticFeedback(_:trigger:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
12 |             title: "Haptic Feedback"
13 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Haptics/HapticFeedback+SwiftUI.swift:30:17: note: calls to instance method 'hapticFeedback(_:trigger:)' from outside of its actor context are implicitly asynchronous
 28 |     /// }
 29 |     /// ```
 30 |     public func hapticFeedback<T: Equatable>(
    |                 `- note: calls to instance method 'hapticFeedback(_:trigger:)' from outside of its actor context are implicitly asynchronous
 31 |         _ feedback: HapticFeedback,
 32 |         trigger: T
/Users/admin/builder/spi-builder-workspace/Sources/Haptics/XcodeLibrary.swift:15:18: warning: call to main actor-isolated instance method 'hapticFeedback(trigger:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
13 |         )
14 |         LibraryItem(
15 |             base.hapticFeedback(trigger: status) { _, newValue in
   |                  `- warning: call to main actor-isolated instance method 'hapticFeedback(trigger:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
16 |                 return switch newValue {
17 |                 case .success: .success
/Users/admin/builder/spi-builder-workspace/Sources/Haptics/HapticFeedback+SwiftUI.swift:77:17: note: calls to instance method 'hapticFeedback(trigger:_:)' from outside of its actor context are implicitly asynchronous
 75 |     /// }
 76 |     /// ```
 77 |     public func hapticFeedback<T: Equatable>(
    |                 `- note: calls to instance method 'hapticFeedback(trigger:_:)' from outside of its actor context are implicitly asynchronous
 78 |         trigger: T,
 79 |         _ feedback: @escaping (T, T) -> HapticFeedback?
[5/8] Compiling Haptics HapticFeedback.swift
[6/8] Compiling Haptics HapticFeedback+SwiftUI.swift
[7/8] Compiling Haptics HapticGenerator.swift
[8/8] Emitting module Haptics
Build complete! (11.19s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftUI-Haptics",
  "name" : "SwiftUI-Haptics",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "Haptics",
      "targets" : [
        "Haptics"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Haptics",
      "module_type" : "SwiftTarget",
      "name" : "Haptics",
      "path" : "Sources/Haptics",
      "product_memberships" : [
        "Haptics"
      ],
      "sources" : [
        "HapticFeedback+SwiftUI.swift",
        "HapticFeedback.swift",
        "HapticGenerator.swift",
        "Presets.swift",
        "XcodeLibrary.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.