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 SimpleMDM, reference master (539627), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 04:31:04 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/karlisl/simplemdm-swift.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/karlisl/simplemdm-swift
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 5396276 Initial commit
Cloned https://github.com/karlisl/simplemdm-swift.git
Revision (git rev-parse @):
5396276a49b0c2457ae2a72420081b566f043274
SUCCESS checkout https://github.com/karlisl/simplemdm-swift.git at master
Fetching https://github.com/Alamofire/Alamofire.git
Fetching https://github.com/SwiftyJSON/SwiftyJSON.git
[1/6114] Fetching swiftyjson
[1163/35903] Fetching swiftyjson, alamofire
Fetched https://github.com/SwiftyJSON/SwiftyJSON.git from cache (3.00s)
Fetched https://github.com/Alamofire/Alamofire.git from cache (3.00s)
Computing version for https://github.com/SwiftyJSON/SwiftyJSON.git
Computed https://github.com/SwiftyJSON/SwiftyJSON.git at 4.3.0 (2.76s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 4.9.1 (0.68s)
Creating working copy for https://github.com/SwiftyJSON/SwiftyJSON.git
Working copy of https://github.com/SwiftyJSON/SwiftyJSON.git resolved at 4.3.0
Creating working copy for https://github.com/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 4.9.1
========================================
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": "simplemdm-swift",
      "name": "SimpleMDM",
      "url": "https://github.com/karlisl/simplemdm-swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/simplemdm-swift",
      "dependencies": [
        {
          "identity": "swiftyjson",
          "name": "SwiftyJSON",
          "url": "https://github.com/SwiftyJSON/SwiftyJSON.git",
          "version": "4.3.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftyJSON",
          "dependencies": [
          ]
        },
        {
          "identity": "alamofire",
          "name": "Alamofire",
          "url": "https://github.com/Alamofire/Alamofire.git",
          "version": "4.9.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Alamofire",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/karlisl/simplemdm-swift.git
[1/13] Fetching simplemdm-swift
Fetched https://github.com/karlisl/simplemdm-swift.git from cache (0.55s)
Fetching https://github.com/Alamofire/Alamofire.git from cache
Fetching https://github.com/SwiftyJSON/SwiftyJSON.git from cache
Fetched https://github.com/SwiftyJSON/SwiftyJSON.git from cache (0.71s)
Fetched https://github.com/Alamofire/Alamofire.git from cache (0.71s)
Computing version for https://github.com/SwiftyJSON/SwiftyJSON.git
Computed https://github.com/SwiftyJSON/SwiftyJSON.git at 4.3.0 (0.03s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 4.9.1 (0.04s)
Creating working copy for https://github.com/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 4.9.1
Creating working copy for https://github.com/karlisl/simplemdm-swift.git
Working copy of https://github.com/karlisl/simplemdm-swift.git resolved at master (5396276)
Creating working copy for https://github.com/SwiftyJSON/SwiftyJSON.git
Working copy of https://github.com/SwiftyJSON/SwiftyJSON.git resolved at 4.3.0
warning: '.resolve-product-dependencies': dependency 'simplemdm-swift' is not used by any target
Found 2 product dependencies
  - SwiftyJSON
  - Alamofire
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/karlisl/simplemdm-swift.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/4] Write sources
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/23] Compiling Alamofire Response.swift
[6/23] Compiling Alamofire ResponseSerialization.swift
[7/24] Compiling Alamofire Result.swift
[8/24] Compiling Alamofire ServerTrustPolicy.swift
[9/24] Compiling Alamofire TaskDelegate.swift
[10/24] Compiling SwiftyJSON SwiftyJSON.swift
[11/24] Emitting module SwiftyJSON
[12/24] Compiling Alamofire SessionDelegate.swift
[13/24] Compiling Alamofire SessionManager.swift
[14/24] Compiling Alamofire Timeline.swift
[15/24] Compiling Alamofire AFError.swift
[16/24] Compiling Alamofire Alamofire.swift
[17/24] Compiling Alamofire DispatchQueue+Alamofire.swift
[18/24] Compiling Alamofire MultipartFormData.swift
[19/24] Emitting module Alamofire
[20/24] Compiling Alamofire Validation.swift
[21/24] Compiling Alamofire NetworkReachabilityManager.swift
[22/24] Compiling Alamofire Notifications.swift
[23/24] Compiling Alamofire ParameterEncoding.swift
[24/24] Compiling Alamofire Request.swift
[25/26] Compiling SimpleMDM SimpleMDM.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleMDM.swift:16:21: warning: enum element with associated values must have at least one associated value; this will be an error in the future version of Swift
 14 |     /// Router
 15 |     private enum Router {
 16 |         case account()
    |                     |- warning: enum element with associated values must have at least one associated value; this will be an error in the future version of Swift
    |                     |- note: did you mean to remove the empty associated value list?
    |                     `- note: did you mean to explicitly add a 'Void' associated value?
 17 |         case updateAccount(data: [String: Any])
 18 |         case apps()
/Users/admin/builder/spi-builder-workspace/Sources/SimpleMDM.swift:18:18: warning: enum element with associated values must have at least one associated value; this will be an error in the future version of Swift
 16 |         case account()
 17 |         case updateAccount(data: [String: Any])
 18 |         case apps()
    |                  |- warning: enum element with associated values must have at least one associated value; this will be an error in the future version of Swift
    |                  |- note: did you mean to remove the empty associated value list?
    |                  `- note: did you mean to explicitly add a 'Void' associated value?
 19 |         case app(appId: Int)
 20 |         case updateAppGroupApps(appGroupId: Int)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleMDM.swift:21:21: warning: enum element with associated values must have at least one associated value; this will be an error in the future version of Swift
 19 |         case app(appId: Int)
 20 |         case updateAppGroupApps(appGroupId: Int)
 21 |         case devices()
    |                     |- warning: enum element with associated values must have at least one associated value; this will be an error in the future version of Swift
    |                     |- note: did you mean to remove the empty associated value list?
    |                     `- note: did you mean to explicitly add a 'Void' associated value?
 22 |         case installedApps(deviceId: Int)
 23 |         case pushApps(deviceId: Int)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleMDM.swift:25:26: warning: enum element with associated values must have at least one associated value; this will be an error in the future version of Swift
 23 |         case pushApps(deviceId: Int)
 24 |         case refresh(deviceId: Int)
 25 |         case deviceGroups()
    |                          |- warning: enum element with associated values must have at least one associated value; this will be an error in the future version of Swift
    |                          |- note: did you mean to remove the empty associated value list?
    |                          `- note: did you mean to explicitly add a 'Void' associated value?
 26 |         case managedAppConfigs(appId: Int)
 27 |
/Users/admin/builder/spi-builder-workspace/Sources/SimpleMDM.swift:8:29: warning: static property 'baseUrl' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  6 | public class SimpleMDM {
  7 |     /// Base url
  8 |     private(set) static var baseUrl: String = "https://a.simplemdm.com"
    |                             |- warning: static property 'baseUrl' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                             |- note: convert 'baseUrl' to a 'let' constant to make 'Sendable' shared state immutable
    |                             |- note: annotate 'baseUrl' 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
  9 |     /// API key
 10 |     public static var apiKey: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/SimpleMDM.swift:10:23: warning: static property 'apiKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  8 |     private(set) static var baseUrl: String = "https://a.simplemdm.com"
  9 |     /// API key
 10 |     public static var apiKey: String = ""
    |                       |- warning: static property 'apiKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'apiKey' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'apiKey' 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
 11 |
 12 |     // MARK: - Router
[26/26] Emitting module SimpleMDM
/Users/admin/builder/spi-builder-workspace/Sources/SimpleMDM.swift:16:21: warning: enum element with associated values must have at least one associated value; this will be an error in the future version of Swift
 14 |     /// Router
 15 |     private enum Router {
 16 |         case account()
    |                     |- warning: enum element with associated values must have at least one associated value; this will be an error in the future version of Swift
    |                     |- note: did you mean to remove the empty associated value list?
    |                     `- note: did you mean to explicitly add a 'Void' associated value?
 17 |         case updateAccount(data: [String: Any])
 18 |         case apps()
/Users/admin/builder/spi-builder-workspace/Sources/SimpleMDM.swift:18:18: warning: enum element with associated values must have at least one associated value; this will be an error in the future version of Swift
 16 |         case account()
 17 |         case updateAccount(data: [String: Any])
 18 |         case apps()
    |                  |- warning: enum element with associated values must have at least one associated value; this will be an error in the future version of Swift
    |                  |- note: did you mean to remove the empty associated value list?
    |                  `- note: did you mean to explicitly add a 'Void' associated value?
 19 |         case app(appId: Int)
 20 |         case updateAppGroupApps(appGroupId: Int)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleMDM.swift:21:21: warning: enum element with associated values must have at least one associated value; this will be an error in the future version of Swift
 19 |         case app(appId: Int)
 20 |         case updateAppGroupApps(appGroupId: Int)
 21 |         case devices()
    |                     |- warning: enum element with associated values must have at least one associated value; this will be an error in the future version of Swift
    |                     |- note: did you mean to remove the empty associated value list?
    |                     `- note: did you mean to explicitly add a 'Void' associated value?
 22 |         case installedApps(deviceId: Int)
 23 |         case pushApps(deviceId: Int)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleMDM.swift:25:26: warning: enum element with associated values must have at least one associated value; this will be an error in the future version of Swift
 23 |         case pushApps(deviceId: Int)
 24 |         case refresh(deviceId: Int)
 25 |         case deviceGroups()
    |                          |- warning: enum element with associated values must have at least one associated value; this will be an error in the future version of Swift
    |                          |- note: did you mean to remove the empty associated value list?
    |                          `- note: did you mean to explicitly add a 'Void' associated value?
 26 |         case managedAppConfigs(appId: Int)
 27 |
/Users/admin/builder/spi-builder-workspace/Sources/SimpleMDM.swift:8:29: warning: static property 'baseUrl' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  6 | public class SimpleMDM {
  7 |     /// Base url
  8 |     private(set) static var baseUrl: String = "https://a.simplemdm.com"
    |                             |- warning: static property 'baseUrl' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                             |- note: convert 'baseUrl' to a 'let' constant to make 'Sendable' shared state immutable
    |                             |- note: annotate 'baseUrl' 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
  9 |     /// API key
 10 |     public static var apiKey: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/SimpleMDM.swift:10:23: warning: static property 'apiKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  8 |     private(set) static var baseUrl: String = "https://a.simplemdm.com"
  9 |     /// API key
 10 |     public static var apiKey: String = ""
    |                       |- warning: static property 'apiKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'apiKey' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'apiKey' 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
 11 |
 12 |     // MARK: - Router
Build complete! (21.60s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swiftyjson",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.0.0",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/SwiftyJSON/SwiftyJSON.git"
    },
    {
      "identity" : "alamofire",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.5.0",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Alamofire/Alamofire.git"
    }
  ],
  "manifest_display_name" : "SimpleMDM",
  "name" : "SimpleMDM",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SimpleMDM",
      "targets" : [
        "SimpleMDM"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SimpleMDM",
      "module_type" : "SwiftTarget",
      "name" : "SimpleMDM",
      "path" : "Sources",
      "product_dependencies" : [
        "Alamofire",
        "SwiftyJSON"
      ],
      "product_memberships" : [
        "SimpleMDM"
      ],
      "sources" : [
        "SimpleMDM.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.