This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/karlisl/simplemdm-swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[5/23] Compiling SwiftyJSON SwiftyJSON.swift
[6/23] Emitting module SwiftyJSON
[7/23] Compiling Alamofire ParameterEncoding.swift
[8/23] Compiling Alamofire Request.swift
[9/23] Compiling Alamofire Response.swift
[10/23] Compiling Alamofire ResponseSerialization.swift
[11/24] Compiling Alamofire SessionDelegate.swift
[12/24] Compiling Alamofire SessionManager.swift
[13/24] Compiling Alamofire TaskDelegate.swift
[14/24] Compiling Alamofire Timeline.swift
[15/24] Compiling Alamofire Result.swift
[16/24] Compiling Alamofire ServerTrustPolicy.swift
[17/24] Compiling Alamofire AFError.swift
[18/24] Compiling Alamofire Alamofire.swift
[19/24] Compiling Alamofire NetworkReachabilityManager.swift
[20/24] Compiling Alamofire Notifications.swift
[21/24] Emitting module Alamofire
[22/24] Compiling Alamofire DispatchQueue+Alamofire.swift
[23/24] Compiling Alamofire MultipartFormData.swift
[24/24] Compiling Alamofire Validation.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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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! (30.43s)
Fetching https://github.com/SwiftyJSON/SwiftyJSON.git
Fetching https://github.com/Alamofire/Alamofire.git
[1/6086] Fetching swiftyjson
[488/34866] Fetching swiftyjson, alamofire
Fetched https://github.com/SwiftyJSON/SwiftyJSON.git from cache (1.42s)
[3166/28780] Fetching alamofire
Fetched https://github.com/Alamofire/Alamofire.git from cache (2.65s)
Computing version for https://github.com/SwiftyJSON/SwiftyJSON.git
Computed https://github.com/SwiftyJSON/SwiftyJSON.git at 4.3.0 (0.70s)
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/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 4.9.1
Creating working copy for https://github.com/SwiftyJSON/SwiftyJSON.git
Working copy of https://github.com/SwiftyJSON/SwiftyJSON.git resolved at 4.3.0
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.