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 IdylleClient, reference master (92dc33), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 01:53:08 UTC.

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/Digipolitan/idylle-client-swift.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Digipolitan/idylle-client-swift
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 92dc330 Merge branch 'release/1.0.5'
Cloned https://github.com/Digipolitan/idylle-client-swift.git
Revision (git rev-parse @):
92dc3302b7ce6fd4a5e391f5fb9da1914be39a2d
SUCCESS checkout https://github.com/Digipolitan/idylle-client-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": "idylle-client-swift",
      "name": "IdylleClient",
      "url": "https://github.com/Digipolitan/idylle-client-swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/idylle-client-swift",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Digipolitan/idylle-client-swift.git
[1/243] Fetching idylle-client-swift
Fetched https://github.com/Digipolitan/idylle-client-swift.git from cache (0.76s)
Creating working copy for https://github.com/Digipolitan/idylle-client-swift.git
Working copy of https://github.com/Digipolitan/idylle-client-swift.git resolved at master (92dc330)
warning: '.resolve-product-dependencies': dependency 'idylle-client-swift' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Digipolitan/idylle-client-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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/4] Emitting module IdylleClient
[4/4] Compiling IdylleClient CriteriaBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/IdylleClient/CriteriaBuilder.swift:53:37: error: cannot find 'JSONSerialization' in scope
 51 |         }
 52 |         guard criteriaClause.count > 0,
 53 |             let criteriaData = try? JSONSerialization.data(withJSONObject: criteriaClause),
    |                                     `- error: cannot find 'JSONSerialization' in scope
 54 |             let criteria = String(data: criteriaData, encoding: .utf8) else {
 55 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/IdylleClient/CriteriaBuilder.swift:54:66: error: extra argument 'encoding' in call
 52 |         guard criteriaClause.count > 0,
 53 |             let criteriaData = try? JSONSerialization.data(withJSONObject: criteriaClause),
 54 |             let criteria = String(data: criteriaData, encoding: .utf8) else {
    |                                                                  `- error: extra argument 'encoding' in call
 55 |                 return nil
 56 |         }
/Users/admin/builder/spi-builder-workspace/Sources/IdylleClient/CriteriaBuilder.swift:54:66: error: cannot infer contextual base in reference to member 'utf8'
 52 |         guard criteriaClause.count > 0,
 53 |             let criteriaData = try? JSONSerialization.data(withJSONObject: criteriaClause),
 54 |             let criteria = String(data: criteriaData, encoding: .utf8) else {
    |                                                                  `- error: cannot infer contextual base in reference to member 'utf8'
 55 |                 return nil
 56 |         }
BUILD FAILURE 6.0 macosSpm