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 BetterSafariView, reference main (884533), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 19:11:56 UTC.

Swift 6 data race errors: 2

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/stleamist/BetterSafariView.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/stleamist/BetterSafariView
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 8845337 Bump to v2.4.2
Cloned https://github.com/stleamist/BetterSafariView.git
Revision (git rev-parse @):
884533749e55949b2566030948c6fdbe2873ed0c
SUCCESS checkout https://github.com/stleamist/BetterSafariView.git at main
========================================
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": "bettersafariview",
      "name": "BetterSafariView",
      "url": "https://github.com/stleamist/BetterSafariView.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BetterSafariView",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/stleamist/BetterSafariView.git
[1/1299] Fetching bettersafariview
Fetched https://github.com/stleamist/BetterSafariView.git from cache (1.21s)
Creating working copy for https://github.com/stleamist/BetterSafariView.git
Working copy of https://github.com/stleamist/BetterSafariView.git resolved at main (8845337)
warning: '.resolve-product-dependencies': dependency 'bettersafariview' 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/stleamist/BetterSafariView.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/12] Compiling BetterSafariView WebAuthenticationSession.swift
[4/12] Compiling BetterSafariView Identifiables.swift
/Users/admin/builder/spi-builder-workspace/Sources/BetterSafariView/Shared/Identifiables.swift:3:1: warning: extension declares a conformance of imported type 'Bool' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 1 | import Foundation
 2 |
 3 | extension Bool: Identifiable {
   | |- warning: extension declares a conformance of imported type 'Bool' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 4 |     public var id: Bool { self }
 5 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSafariView/Shared/Identifiables.swift:7:1: warning: extension declares a conformance of imported type 'URL' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
 5 | }
 6 |
 7 | extension URL: Identifiable {
   | |- warning: extension declares a conformance of imported type 'URL' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 8 |     public var id: String { self.absoluteString }
 9 | }
[5/12] Compiling BetterSafariView SafariView.swift
[6/12] Compiling BetterSafariView WebAuthenticationPresentationModifier.swift
[7/12] Compiling BetterSafariView UIWindow+farthestPresentedViewController.swift
[8/12] Compiling BetterSafariView SafariViewPresentationModifier.swift
[9/12] Compiling BetterSafariView SafariViewPresenter.swift
[10/12] Emitting module BetterSafariView
/Users/admin/builder/spi-builder-workspace/Sources/BetterSafariView/Shared/Identifiables.swift:3:1: warning: extension declares a conformance of imported type 'Bool' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 1 | import Foundation
 2 |
 3 | extension Bool: Identifiable {
   | |- warning: extension declares a conformance of imported type 'Bool' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 4 |     public var id: Bool { self }
 5 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSafariView/Shared/Identifiables.swift:7:1: warning: extension declares a conformance of imported type 'URL' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
 5 | }
 6 |
 7 | extension URL: Identifiable {
   | |- warning: extension declares a conformance of imported type 'URL' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 8 |     public var id: String { self.absoluteString }
 9 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSafariView/WebAuthenticationSession/WebAuthenticationPresenter.swift:101:13: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
 99 |         // MARK: View Controller Holding
100 |
101 |         let view = ViewType()
    |             `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
102 |         private weak var session: ASWebAuthenticationSession?
103 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterSafariView/WebAuthenticationSession/WebAuthenticationPresenter.swift:169:26: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
167 |         // by calling `present(_:animated:completion:)` method from a root view controller of the window.
168 |
169 |         private lazy var presentationContextProvider = PresentationContextProvider(coordinator: self)
    |                          `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
170 |
171 |         class PresentationContextProvider: NSObject, ASWebAuthenticationPresentationContextProviding {
[11/12] Compiling BetterSafariView WebAuthenticationPresenter.swift
/Users/admin/builder/spi-builder-workspace/Sources/BetterSafariView/WebAuthenticationSession/WebAuthenticationPresenter.swift:101:13: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
 99 |         // MARK: View Controller Holding
100 |
101 |         let view = ViewType()
    |             `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
102 |         private weak var session: ASWebAuthenticationSession?
103 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterSafariView/WebAuthenticationSession/WebAuthenticationPresenter.swift:169:26: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
167 |         // by calling `present(_:animated:completion:)` method from a root view controller of the window.
168 |
169 |         private lazy var presentationContextProvider = PresentationContextProvider(coordinator: self)
    |                          `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
170 |
171 |         class PresentationContextProvider: NSObject, ASWebAuthenticationPresentationContextProviding {
/Users/admin/builder/spi-builder-workspace/Sources/BetterSafariView/WebAuthenticationSession/WebAuthenticationPresenter.swift:130:41: warning: main actor-isolated property 'representationBuilder' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 25 |
 26 |     @Binding var item: Item?
 27 |     var representationBuilder: (Item) -> WebAuthenticationSession
    |         `- note: property declared here
 28 |
 29 |     // MARK: ViewRepresentable
    :
127 |         // MARK: Presentation Handlers
128 |
129 |         private func startWebAuthenticationSession(with item: Item) {
    |                      `- note: add '@MainActor' to make instance method 'startWebAuthenticationSession(with:)' part of global actor 'MainActor'
130 |             let representation = parent.representationBuilder(item)
    |                                         `- warning: main actor-isolated property 'representationBuilder' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
131 |             let session = ASWebAuthenticationSession(
132 |                 url: representation.url,
/Users/admin/builder/spi-builder-workspace/Sources/BetterSafariView/WebAuthenticationSession/WebAuthenticationPresenter.swift:158:20: warning: main actor-isolated property 'item' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 24 |     // MARK: Representation
 25 |
 26 |     @Binding var item: Item?
    |                  `- note: mutation of this property is only permitted within the actor
 27 |     var representationBuilder: (Item) -> WebAuthenticationSession
 28 |
    :
155 |         // MARK: Dismissal Handlers
156 |
157 |         private func resetItemBinding() {
    |                      `- note: add '@MainActor' to make instance method 'resetItemBinding()' part of global actor 'MainActor'
158 |             parent.item = nil
    |                    `- warning: main actor-isolated property 'item' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
159 |         }
160 |
[12/12] Compiling BetterSafariView SafariView+View.swift
Build complete! (15.03s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "BetterSafariView",
  "name" : "BetterSafariView",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "watchos",
      "version" : "6.2"
    }
  ],
  "products" : [
    {
      "name" : "BetterSafariView",
      "targets" : [
        "BetterSafariView"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BetterSafariView",
      "module_type" : "SwiftTarget",
      "name" : "BetterSafariView",
      "path" : "Sources/BetterSafariView",
      "product_memberships" : [
        "BetterSafariView"
      ],
      "sources" : [
        "SafariView/SafariView+View.swift",
        "SafariView/SafariView.swift",
        "SafariView/SafariViewPresentationModifier.swift",
        "SafariView/SafariViewPresenter.swift",
        "Shared/Identifiables.swift",
        "Shared/UIWindow+farthestPresentedViewController.swift",
        "WebAuthenticationSession/WebAuthenticationPresentationModifier.swift",
        "WebAuthenticationSession/WebAuthenticationPresenter.swift",
        "WebAuthenticationSession/WebAuthenticationSession.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.