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 GAppAuth, reference master (6124bc), with Swift 6.0 for macOS (SPM) on 15 Sep 2024 03:36:30 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/benlmyers/GAppAuth.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/benlmyers/GAppAuth
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 6124bcd 💻 Bump macOS compatability
Cloned https://github.com/benlmyers/GAppAuth.git
Revision (git rev-parse @):
6124bcd8a5e4576a485aa70d92e50e32c587223d
SUCCESS checkout https://github.com/benlmyers/GAppAuth.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/benlmyers/GAppAuth.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/18] Write swift-version-117DEE11B69C53C9.txt
[0/18] Write sources
[3/18] Compiling GTMKeychain_iOS.m
[3/18] Compiling OIDExternalUserAgentIOSCustomBrowser.m
[5/18] Compiling OIDExternalUserAgentIOS.m
[6/18] Compiling OIDExternalUserAgentCatalyst.m
[7/18] Compiling OIDAuthorizationService+IOS.m
[8/18] Compiling OIDAuthState+IOS.m
[9/18] Compiling OIDAuthorizationService+Mac.m
[10/18] Compiling OIDLoopbackHTTPServer.m
[11/18] Compiling GTMKeychain_macOS.m
[12/18] Compiling GTMAppAuth GTMAppAuthFetcherAuthorization.m
[13/18] Compiling OIDRedirectHTTPHandler.m
[14/18] Compiling OIDAuthState+Mac.m
[15/18] Compiling GTMAppAuth GTMOAuth2KeychainCompatibility.m
[16/18] Compiling GTMAppAuth GTMAppAuthFetcherAuthorization+Keychain.m
[17/18] Compiling OIDExternalUserAgentMac.m
[19/22] Compiling GAppAuth_iOS GAppAuth.swift
[20/22] Emitting module GAppAuth_iOS
[21/22] Compiling GAppAuth_macOS GAppAuth.swift
/Users/admin/builder/spi-builder-workspace/Sources/macOS/GAppAuth.swift:61:22: warning: static property 'singletonInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 59 |   // MARK: - Singleton
 60 |
 61 |   private static var singletonInstance: GAppAuth?
    |                      |- warning: static property 'singletonInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: convert 'singletonInstance' to a 'let' constant to make 'Sendable' shared state immutable
    |                      |- note: annotate 'singletonInstance' 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
 62 |   public static var shared: GAppAuth {
 63 |     if singletonInstance == nil {
[22/22] Emitting module GAppAuth_macOS
/Users/admin/builder/spi-builder-workspace/Sources/macOS/GAppAuth.swift:61:22: warning: static property 'singletonInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 59 |   // MARK: - Singleton
 60 |
 61 |   private static var singletonInstance: GAppAuth?
    |                      |- warning: static property 'singletonInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: convert 'singletonInstance' to a 'let' constant to make 'Sendable' shared state immutable
    |                      |- note: annotate 'singletonInstance' 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
 62 |   public static var shared: GAppAuth {
 63 |     if singletonInstance == nil {
Build complete! (14.01s)
Fetching https://github.com/google/gtm-session-fetcher.git
Fetching https://github.com/openid/AppAuth-iOS.git
Fetching https://github.com/google/GTMAppAuth.git
[1/3696] Fetching gtmappauth
[445/7535] Fetching gtmappauth, gtm-session-fetcher
[520/16342] Fetching gtmappauth, gtm-session-fetcher, appauth-ios
Fetched https://github.com/google/GTMAppAuth.git from cache (1.09s)
[3732/12646] Fetching gtm-session-fetcher, appauth-ios
Fetched https://github.com/openid/AppAuth-iOS.git from cache (1.36s)
Fetched https://github.com/google/gtm-session-fetcher.git from cache (1.36s)
Computing version for https://github.com/openid/AppAuth-iOS.git
Computed https://github.com/openid/AppAuth-iOS.git at 1.4.0 (0.65s)
Computing version for https://github.com/google/GTMAppAuth.git
Computed https://github.com/google/GTMAppAuth.git at 1.2.2 (0.65s)
Computing version for https://github.com/google/gtm-session-fetcher.git
Computed https://github.com/google/gtm-session-fetcher.git at 1.7.0 (0.67s)
Creating working copy for https://github.com/google/gtm-session-fetcher.git
Working copy of https://github.com/google/gtm-session-fetcher.git resolved at 1.7.0
Creating working copy for https://github.com/openid/AppAuth-iOS.git
Working copy of https://github.com/openid/AppAuth-iOS.git resolved at 1.4.0
Creating working copy for https://github.com/google/GTMAppAuth.git
Working copy of https://github.com/google/GTMAppAuth.git resolved at 1.2.2
Build complete.
{
  "dependencies" : [
    {
      "identity" : "gtmappauth",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/google/GTMAppAuth.git"
    },
    {
      "identity" : "appauth-ios",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/openid/AppAuth-iOS.git"
    }
  ],
  "manifest_display_name" : "GAppAuth",
  "name" : "GAppAuth",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "ios",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "GAppAuth-iOS",
      "targets" : [
        "GAppAuth-iOS"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "GAppAuth-macOS",
      "targets" : [
        "GAppAuth-macOS"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GAppAuth_macOS",
      "module_type" : "SwiftTarget",
      "name" : "GAppAuth-macOS",
      "path" : "Sources/macOS",
      "product_dependencies" : [
        "GTMAppAuth",
        "AppAuth"
      ],
      "product_memberships" : [
        "GAppAuth-macOS"
      ],
      "sources" : [
        "GAppAuth.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "GAppAuth_iOS",
      "module_type" : "SwiftTarget",
      "name" : "GAppAuth-iOS",
      "path" : "Sources/iOS",
      "product_dependencies" : [
        "GTMAppAuth",
        "AppAuth"
      ],
      "product_memberships" : [
        "GAppAuth-iOS"
      ],
      "sources" : [
        "GAppAuth.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.