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

Failed to build ProvisioningProfile, reference v1.0.2 (a54afd), with Swift 6.0 for Linux on 28 Feb 2025 16:16:57 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ChrisMash/ProvisioningProfile.git
Reference: v1.0.2
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/ChrisMash/ProvisioningProfile
 * tag               v1.0.2     -> FETCH_HEAD
HEAD is now at a54afd5 Fixed failure to Stringify profile on loading
Cloned https://github.com/ChrisMash/ProvisioningProfile.git
Revision (git rev-parse @):
a54afd5a8f1445da50109d498fba91fe4259ac3e
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ChrisMash/ProvisioningProfile.git at v1.0.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/ChrisMash/ProvisioningProfile.git
https://github.com/ChrisMash/ProvisioningProfile.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ProvisioningProfile",
  "name" : "ProvisioningProfile",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "9.0"
    },
    {
      "name" : "tvos",
      "version" : "9.0"
    },
    {
      "name" : "watchos",
      "version" : "2.0"
    },
    {
      "name" : "macos",
      "version" : "10.14"
    }
  ],
  "products" : [
    {
      "name" : "ProvisioningProfile",
      "targets" : [
        "ProvisioningProfile"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ProvisioningProfileTests",
      "module_type" : "SwiftTarget",
      "name" : "ProvisioningProfileTests",
      "path" : "Tests/ProvisioningProfileTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/ProvisioningProfileTests/Resources/embedded.mobileprovision",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/ProvisioningProfileTests/Resources/embedded.provisionprofile",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/ProvisioningProfileTests/Resources/invaliddate.mobileprovision",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/ProvisioningProfileTests/Resources/missingdate.mobileprovision",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/ProvisioningProfileTests/Resources/test.txt",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "FileLoaderTests.swift",
        "ProvisioningProfileParserTests.swift",
        "ProvisioningProfileTests.swift",
        "TestLogger.swift",
        "TestUtils.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "ProvisioningProfile"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ProvisioningProfile",
      "module_type" : "SwiftTarget",
      "name" : "ProvisioningProfile",
      "path" : "Sources/ProvisioningProfile",
      "product_memberships" : [
        "ProvisioningProfile"
      ],
      "sources" : [
        "FileLoader.swift",
        "Logger.swift",
        "ProvisioningProfile.swift",
        "ProvisioningProfileParser.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/7] Compiling ProvisioningProfile ProvisioningProfile.swift
/host/spi-builder-workspace/Sources/ProvisioningProfile/ProvisioningProfile.swift:14:23: warning: static property 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 12 |     /// Custom `DateFormatter` for generating `formattedExpiryDate`, defaults to `nil`.
 13 |     /// If required, ensure you set this property before accessing `profile()`.
 14 |     public static var dateFormatter: DateFormatter?
    |                       |- warning: static property 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'dateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'dateFormatter' 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
 15 |     /// Custom `Logger` implementation for receiving logged messages, defaults to `nil`.
 16 |     /// If required, ensure you set this property before accessing `profile()`.
/host/spi-builder-workspace/Sources/ProvisioningProfile/ProvisioningProfile.swift:17:23: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |     /// Custom `Logger` implementation for receiving logged messages, defaults to `nil`.
 16 |     /// If required, ensure you set this property before accessing `profile()`.
 17 |     public static var logger: Logger?
    |                       |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'logger' 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
 18 |
 19 |     /// The name of the provisioning profile, if successfully parsed.
/host/spi-builder-workspace/Sources/ProvisioningProfile/ProvisioningProfile.swift:28:25: warning: static property 'cachedProfile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 26 |     public let formattedExpiryDate: String?
 27 |
 28 |     internal static var cachedProfile: ProvisioningProfile?
    |                         |- warning: static property 'cachedProfile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'cachedProfile' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: annotate 'cachedProfile' 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
 29 |     internal static var bundleToLoadFrom: Bundle?
 30 |
/host/spi-builder-workspace/Sources/ProvisioningProfile/ProvisioningProfile.swift:29:25: warning: static property 'bundleToLoadFrom' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 27 |
 28 |     internal static var cachedProfile: ProvisioningProfile?
 29 |     internal static var bundleToLoadFrom: Bundle?
    |                         |- warning: static property 'bundleToLoadFrom' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'bundleToLoadFrom' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: annotate 'bundleToLoadFrom' 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
 30 |
 31 |     /// The provisioning profile for the current app, if available.
[4/7] Compiling ProvisioningProfile ProvisioningProfileParser.swift
/host/spi-builder-workspace/Sources/ProvisioningProfile/ProvisioningProfileParser.swift:62:21: warning: 'scanUpTo(_:into:)' is deprecated: renamed to 'scanUpToString(_:)'
60 |         let scanner = Scanner(string: string)
61 |         // Find the line with, e.g. <key>ExpirationDate</key>
62 |         _ = scanner.scanUpTo("<key>\(key)</key>", into: nil)
   |                     |- warning: 'scanUpTo(_:into:)' is deprecated: renamed to 'scanUpToString(_:)'
   |                     `- note: use 'scanUpToString(_:)' instead
63 |         // Scan up to the next, e.g. <date> tag (should be the next line)
64 |         _ = scanner.scanUpTo("<\(type)>", into: nil)
/host/spi-builder-workspace/Sources/ProvisioningProfile/ProvisioningProfileParser.swift:64:21: warning: 'scanUpTo(_:into:)' is deprecated: renamed to 'scanUpToString(_:)'
62 |         _ = scanner.scanUpTo("<key>\(key)</key>", into: nil)
63 |         // Scan up to the next, e.g. <date> tag (should be the next line)
64 |         _ = scanner.scanUpTo("<\(type)>", into: nil)
   |                     |- warning: 'scanUpTo(_:into:)' is deprecated: renamed to 'scanUpToString(_:)'
   |                     `- note: use 'scanUpToString(_:)' instead
65 |         // Scan over the, e.g. <date> tag to get to the start of the expiry date string
66 |         scanner.scanString("<\(type)>", into: nil)
/host/spi-builder-workspace/Sources/ProvisioningProfile/ProvisioningProfileParser.swift:66:17: warning: 'scanString(_:into:)' is deprecated: renamed to 'scanString(_:)'
64 |         _ = scanner.scanUpTo("<\(type)>", into: nil)
65 |         // Scan over the, e.g. <date> tag to get to the start of the expiry date string
66 |         scanner.scanString("<\(type)>", into: nil)
   |                 |- warning: 'scanString(_:into:)' is deprecated: renamed to 'scanString(_:)'
   |                 `- note: use 'scanString(_:)' instead
67 |         // Scan up to the, e.g. </date> tag and return what laid between
68 |         var extractedNS: NSString?
/host/spi-builder-workspace/Sources/ProvisioningProfile/ProvisioningProfileParser.swift:69:46: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
67 |         // Scan up to the, e.g. </date> tag and return what laid between
68 |         var extractedNS: NSString?
69 |         scanner.scanUpTo("</\(type)>", into: &extractedNS)
   |                                              |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
   |                                              `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
70 |         guard let extracted = extractedNS as String? else {
71 |             throw Error.notFound
[5/7] Compiling ProvisioningProfile FileLoader.swift
[6/7] Emitting module ProvisioningProfile
/host/spi-builder-workspace/Sources/ProvisioningProfile/ProvisioningProfile.swift:14:23: warning: static property 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 12 |     /// Custom `DateFormatter` for generating `formattedExpiryDate`, defaults to `nil`.
 13 |     /// If required, ensure you set this property before accessing `profile()`.
 14 |     public static var dateFormatter: DateFormatter?
    |                       |- warning: static property 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'dateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'dateFormatter' 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
 15 |     /// Custom `Logger` implementation for receiving logged messages, defaults to `nil`.
 16 |     /// If required, ensure you set this property before accessing `profile()`.
/host/spi-builder-workspace/Sources/ProvisioningProfile/ProvisioningProfile.swift:17:23: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |     /// Custom `Logger` implementation for receiving logged messages, defaults to `nil`.
 16 |     /// If required, ensure you set this property before accessing `profile()`.
 17 |     public static var logger: Logger?
    |                       |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'logger' 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
 18 |
 19 |     /// The name of the provisioning profile, if successfully parsed.
/host/spi-builder-workspace/Sources/ProvisioningProfile/ProvisioningProfile.swift:28:25: warning: static property 'cachedProfile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 26 |     public let formattedExpiryDate: String?
 27 |
 28 |     internal static var cachedProfile: ProvisioningProfile?
    |                         |- warning: static property 'cachedProfile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'cachedProfile' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: annotate 'cachedProfile' 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
 29 |     internal static var bundleToLoadFrom: Bundle?
 30 |
/host/spi-builder-workspace/Sources/ProvisioningProfile/ProvisioningProfile.swift:29:25: warning: static property 'bundleToLoadFrom' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 27 |
 28 |     internal static var cachedProfile: ProvisioningProfile?
 29 |     internal static var bundleToLoadFrom: Bundle?
    |                         |- warning: static property 'bundleToLoadFrom' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'bundleToLoadFrom' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: annotate 'bundleToLoadFrom' 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
 30 |
 31 |     /// The provisioning profile for the current app, if available.
[7/7] Compiling ProvisioningProfile Logger.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/6] Compiling ProvisioningProfile ProvisioningProfileParser.swift
/host/spi-builder-workspace/Sources/ProvisioningProfile/ProvisioningProfileParser.swift:62:21: warning: 'scanUpTo(_:into:)' is deprecated: renamed to 'scanUpToString(_:)'
60 |         let scanner = Scanner(string: string)
61 |         // Find the line with, e.g. <key>ExpirationDate</key>
62 |         _ = scanner.scanUpTo("<key>\(key)</key>", into: nil)
   |                     |- warning: 'scanUpTo(_:into:)' is deprecated: renamed to 'scanUpToString(_:)'
   |                     `- note: use 'scanUpToString(_:)' instead
63 |         // Scan up to the next, e.g. <date> tag (should be the next line)
64 |         _ = scanner.scanUpTo("<\(type)>", into: nil)
/host/spi-builder-workspace/Sources/ProvisioningProfile/ProvisioningProfileParser.swift:64:21: warning: 'scanUpTo(_:into:)' is deprecated: renamed to 'scanUpToString(_:)'
62 |         _ = scanner.scanUpTo("<key>\(key)</key>", into: nil)
63 |         // Scan up to the next, e.g. <date> tag (should be the next line)
64 |         _ = scanner.scanUpTo("<\(type)>", into: nil)
   |                     |- warning: 'scanUpTo(_:into:)' is deprecated: renamed to 'scanUpToString(_:)'
   |                     `- note: use 'scanUpToString(_:)' instead
65 |         // Scan over the, e.g. <date> tag to get to the start of the expiry date string
66 |         scanner.scanString("<\(type)>", into: nil)
/host/spi-builder-workspace/Sources/ProvisioningProfile/ProvisioningProfileParser.swift:66:17: warning: 'scanString(_:into:)' is deprecated: renamed to 'scanString(_:)'
64 |         _ = scanner.scanUpTo("<\(type)>", into: nil)
65 |         // Scan over the, e.g. <date> tag to get to the start of the expiry date string
66 |         scanner.scanString("<\(type)>", into: nil)
   |                 |- warning: 'scanString(_:into:)' is deprecated: renamed to 'scanString(_:)'
   |                 `- note: use 'scanString(_:)' instead
67 |         // Scan up to the, e.g. </date> tag and return what laid between
68 |         var extractedNS: NSString?
/host/spi-builder-workspace/Sources/ProvisioningProfile/ProvisioningProfileParser.swift:69:46: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
67 |         // Scan up to the, e.g. </date> tag and return what laid between
68 |         var extractedNS: NSString?
69 |         scanner.scanUpTo("</\(type)>", into: &extractedNS)
   |                                              |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
   |                                              `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
70 |         guard let extracted = extractedNS as String? else {
71 |             throw Error.notFound
[3/6] Emitting module ProvisioningProfile
[4/6] Compiling ProvisioningProfile FileLoader.swift
[5/6] Compiling ProvisioningProfile ProvisioningProfile.swift
[6/6] Compiling ProvisioningProfile Logger.swift
BUILD FAILURE 6.0 linux