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 jsonlogic, reference master (9088ee), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 00:30:00 UTC.

Swift 6 data race errors: 1

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/advantagefse/json-logic-swift.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/advantagefse/json-logic-swift
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 9088eed bump version to for json-enum to 1.2.4
Cloned https://github.com/advantagefse/json-logic-swift.git
Revision (git rev-parse @):
9088eed1b26937fe13d248aa24d7632a51be28e2
SUCCESS checkout https://github.com/advantagefse/json-logic-swift.git at master
========================================
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": "json-logic-swift",
      "name": "jsonlogic",
      "url": "https://github.com/advantagefse/json-logic-swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/json-logic-swift",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/advantagefse/json-logic-swift.git
[1/1107] Fetching json-logic-swift
Fetched https://github.com/advantagefse/json-logic-swift.git from cache (0.92s)
Creating working copy for https://github.com/advantagefse/json-logic-swift.git
Working copy of https://github.com/advantagefse/json-logic-swift.git resolved at master (9088eed)
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/advantagefse/json-logic-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/8] Write sources
[3/8] Write jsonlogic-cli-entitlement.plist
[4/8] Write swift-version--7754E27361AE5C74.txt
[6/10] Compiling JSON JSON.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSON/JSON.swift:49:14: warning: associated value 'notSubscriptableType' of 'Sendable'-conforming enum 'JSON2Error' has non-sendable type 'JSON.ContentType'; this is an error in the Swift 6 language mode
 19 |     case Error(JSON2Error)
 20 |
 21 |     public enum ContentType {
    |                 `- note: consider making enum 'ContentType' conform to the 'Sendable' protocol
 22 |         case error, null, bool, number, string, array, object
 23 |     }
    :
 47 |         case indexOutOfRange(Int)
 48 |         case keyNotFound(String)
 49 |         case notSubscriptableType(ContentType)
    |              `- warning: associated value 'notSubscriptableType' of 'Sendable'-conforming enum 'JSON2Error' has non-sendable type 'JSON.ContentType'; this is an error in the Swift 6 language mode
 50 |         case NSError(NSError)
 51 |     }
/Users/admin/builder/spi-builder-workspace/Sources/JSON/JSON.swift:87:34: warning: type 'Any' is not optional, value can never be nil; this is an error in the Swift 6 language mode
 85 |                 self = .Error(.notJSONValue)
 86 |             }
 87 |         case Optional<Any>.none, nil, is NSNull:
    |                                  `- warning: type 'Any' is not optional, value can never be nil; this is an error in the Swift 6 language mode
 88 |             self = .Null
 89 |         case let bool as Bool:
[7/10] Emitting module JSON
/Users/admin/builder/spi-builder-workspace/Sources/JSON/JSON.swift:49:14: warning: associated value 'notSubscriptableType' of 'Sendable'-conforming enum 'JSON2Error' has non-sendable type 'JSON.ContentType'; this is an error in the Swift 6 language mode
 19 |     case Error(JSON2Error)
 20 |
 21 |     public enum ContentType {
    |                 `- note: consider making enum 'ContentType' conform to the 'Sendable' protocol
 22 |         case error, null, bool, number, string, array, object
 23 |     }
    :
 47 |         case indexOutOfRange(Int)
 48 |         case keyNotFound(String)
 49 |         case notSubscriptableType(ContentType)
    |              `- warning: associated value 'notSubscriptableType' of 'Sendable'-conforming enum 'JSON2Error' has non-sendable type 'JSON.ContentType'; this is an error in the Swift 6 language mode
 50 |         case NSError(NSError)
 51 |     }
[8/13] Emitting module jsonlogic
[9/13] Compiling jsonlogic Parser.swift
[10/13] Compiling jsonlogic JsonLogic.swift
[11/15] Compiling jsonlogic_cli main.swift
[12/15] Emitting module jsonlogic_cli
[12/15] Write Objects.LinkFileList
[13/15] Linking jsonlogic-cli
[14/15] Applying jsonlogic-cli
Build complete! (7.68s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "jsonlogic",
  "name" : "jsonlogic",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "9.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    }
  ],
  "products" : [
    {
      "name" : "jsonlogic",
      "targets" : [
        "jsonlogic"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "JSON",
      "targets" : [
        "JSON"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "jsonlogic-cli",
      "targets" : [
        "jsonlogic-cli"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "swift_languages_versions" : [
    "5",
    "4.2",
    "4"
  ],
  "targets" : [
    {
      "c99name" : "jsonlogicTests",
      "module_type" : "SwiftTarget",
      "name" : "jsonlogicTests",
      "path" : "Tests/jsonlogicTests",
      "sources" : [
        "AccessingDataOperations/AllTests.swift",
        "AccessingDataOperations/ArrayMapTests.swift",
        "AccessingDataOperations/MergeArrayTests.swift",
        "AccessingDataOperations/MissingTests.swift",
        "AccessingDataOperations/NoneTests.swift",
        "AccessingDataOperations/SomeTests.swift",
        "AccessingDataOperations/VarTests.swift",
        "ArithmeticTests.swift",
        "CompoundTests.swift",
        "CustomOperatorTests.swift",
        "JsonLogicTests.swift",
        "LogicAndBooleanOperations/AndTests.swift",
        "LogicAndBooleanOperations/DoubleNegationTests.swift",
        "LogicAndBooleanOperations/EqualsTests.swift",
        "LogicAndBooleanOperations/IfTests.swift",
        "LogicAndBooleanOperations/NotStrictEqualsTests.swift",
        "LogicAndBooleanOperations/OrTests.swift",
        "MinMaxTests.swift",
        "NumericalOperations/BetweenTests.swift",
        "NumericalOperations/GreaterThanOrEqualTests.swift",
        "NumericalOperations/GreaterThanTests.swift",
        "NumericalOperations/LessThanOrEqualTests.swift",
        "NumericalOperations/LessThanTests.swift",
        "StringOperations/CatTests.swift",
        "StringOperations/InTests.swift",
        "StringOperations/LogTests.swift",
        "StringOperations/SubstringTests.swift",
        "TestUtils.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "jsonlogic"
      ],
      "type" : "test"
    },
    {
      "c99name" : "jsonlogic_cli",
      "module_type" : "SwiftTarget",
      "name" : "jsonlogic-cli",
      "path" : "Sources/jsonlogic-cli",
      "product_memberships" : [
        "jsonlogic-cli"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "jsonlogic"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "jsonlogic",
      "module_type" : "SwiftTarget",
      "name" : "jsonlogic",
      "path" : "Sources/jsonlogic",
      "product_memberships" : [
        "jsonlogic",
        "jsonlogic-cli"
      ],
      "sources" : [
        "JsonLogic.swift",
        "Parser.swift"
      ],
      "target_dependencies" : [
        "JSON"
      ],
      "type" : "library"
    },
    {
      "c99name" : "JSONTests",
      "module_type" : "SwiftTarget",
      "name" : "JSONTests",
      "path" : "Tests/JSONTests",
      "sources" : [
        "JSONTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "JSON"
      ],
      "type" : "test"
    },
    {
      "c99name" : "JSON",
      "module_type" : "SwiftTarget",
      "name" : "JSON",
      "path" : "Sources/JSON",
      "product_memberships" : [
        "jsonlogic",
        "JSON",
        "jsonlogic-cli"
      ],
      "sources" : [
        "JSON.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.