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 SpeziMedication, reference main (8c160a), with Swift 6.1 for Linux on 29 Apr 2025 20:42:47 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/StanfordSpezi/SpeziMedication.git
Reference: main
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/StanfordSpezi/SpeziMedication
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 8c160af Enable Swift 6 Language Mode (#14)
Cloned https://github.com/StanfordSpezi/SpeziMedication.git
Revision (git rev-parse @):
8c160afbeb20fea296947cbf9255fe1dfefaf33c
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/StanfordSpezi/SpeziMedication.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/StanfordSpezi/SpeziMedication.git
https://github.com/StanfordSpezi/SpeziMedication.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "default_localization" : "en",
  "dependencies" : [
    {
      "identity" : "speziviews",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.7.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/StanfordSpezi/SpeziViews.git"
    }
  ],
  "manifest_display_name" : "SpeziMedication",
  "name" : "SpeziMedication",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "17.0"
    }
  ],
  "products" : [
    {
      "name" : "SpeziMedication",
      "targets" : [
        "SpeziMedication"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SpeziMedicationTests",
      "module_type" : "SwiftTarget",
      "name" : "SpeziMedicationTests",
      "path" : "Tests/SpeziMedicationTests",
      "sources" : [
        "SpeziMedicationTests.swift"
      ],
      "target_dependencies" : [
        "SpeziMedication"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SpeziMedication",
      "module_type" : "SwiftTarget",
      "name" : "SpeziMedication",
      "path" : "Sources/SpeziMedication",
      "product_dependencies" : [
        "SpeziViews"
      ],
      "product_memberships" : [
        "SpeziMedication"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Sources/SpeziMedication/Resources/Localizable.xcstrings",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/SpeziMedication/Resources/Localizable.xcstrings.license",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Extensions/String+LocalizedError.swift",
        "Extensions/UIDatePicker+SwiftUI.swift",
        "InternalMedicationSettingsViewModel.swift",
        "MedicationList.swift",
        "MedicationSettings.swift",
        "MedicationSettingsViewModel.swift",
        "Models/Dosage.swift",
        "Models/Frequency.swift",
        "Models/Medication.swift",
        "Models/MedicationInstance.swift",
        "Models/MedicationInstanceInitializable.swift",
        "Models/Schedule.swift",
        "Models/ScheduledTime.swift",
        "Models/Weekdays.swift",
        "ModifyMedication/AddMedication.swift",
        "ModifyMedication/AddMedicationDosage.swift",
        "ModifyMedication/AddMedicationSchedule.swift",
        "ModifyMedication/EditDosage.swift",
        "ModifyMedication/EditFrequency.swift",
        "ModifyMedication/EditMedication.swift",
        "ModifyMedication/EditScheduleTime.swift",
        "ModifyMedication/EditScheduleTimeRow.swift",
        "ModifyMedication/ScheduleFrequency.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/StanfordSpezi/SpeziViews.git
[1/3236] Fetching speziviews
Fetched https://github.com/StanfordSpezi/SpeziViews.git from cache (0.86s)
Computing version for https://github.com/StanfordSpezi/SpeziViews.git
Computed https://github.com/StanfordSpezi/SpeziViews.git at 1.10.1 (2.22s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/StanfordSpezi/Spezi.git
Fetching https://github.com/StanfordSpezi/SpeziFoundation.git
[1/9122] Fetching spezi
[1826/9892] Fetching spezi, spezifoundation
[7795/26161] Fetching spezi, spezifoundation, swift-collections
Fetched https://github.com/StanfordSpezi/SpeziFoundation.git from cache (0.50s)
[8314/25391] Fetching spezi, swift-collections
Fetched https://github.com/StanfordSpezi/Spezi.git from cache (0.77s)
[2929/16269] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (2.11s)
Computing version for https://github.com/StanfordSpezi/Spezi.git
Computed https://github.com/StanfordSpezi/Spezi.git at 1.8.1 (4.90s)
Fetching https://github.com/StanfordBDHG/XCTRuntimeAssertions.git
[1/534] Fetching xctruntimeassertions
Fetched https://github.com/StanfordBDHG/XCTRuntimeAssertions.git from cache (0.42s)
Computing version for https://github.com/StanfordSpezi/SpeziFoundation.git
Computed https://github.com/StanfordSpezi/SpeziFoundation.git at 2.1.5 (1.82s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-algorithms.git
[1/5903] Fetching swift-algorithms
[120/7608] Fetching swift-algorithms, swift-atomics
Fetched https://github.com/apple/swift-algorithms.git from cache (0.90s)
Fetched https://github.com/apple/swift-atomics.git from cache (0.92s)
Computing version for https://github.com/StanfordBDHG/XCTRuntimeAssertions.git
Computed https://github.com/StanfordBDHG/XCTRuntimeAssertions.git at 1.1.3 (5.35s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (1.09s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (1.14s)
Fetching https://github.com/apple/swift-numerics.git
[1/5674] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.70s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (2.29s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.3 (1.19s)
Creating working copy for https://github.com/StanfordSpezi/SpeziViews.git
Working copy of https://github.com/StanfordSpezi/SpeziViews.git resolved at 1.10.1
Creating working copy for https://github.com/StanfordBDHG/XCTRuntimeAssertions.git
Working copy of https://github.com/StanfordBDHG/XCTRuntimeAssertions.git resolved at 1.1.3
Creating working copy for https://github.com/StanfordSpezi/SpeziFoundation.git
Working copy of https://github.com/StanfordSpezi/SpeziFoundation.git resolved at 2.1.5
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Creating working copy for https://github.com/StanfordSpezi/Spezi.git
Working copy of https://github.com/StanfordSpezi/Spezi.git resolved at 1.8.1
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.0.3
Building for debugging...
[0/23] Write sources
[0/23] Copying Localizable.xcstrings
[0/23] Write sources
[0/23] Copying Localizable.xcstrings.license
[0/23] Copying Localizable.xcstrings
[0/23] Copying Info.plist
[0/23] Write sources
[8/23] Copying Localizable.xcstrings.license
[8/23] Copying Info.plist
[8/23] Copying Localizable.xcstrings.license
[8/23] Copying Localizable.xcstrings
[9/23] Copying Info.plist
[14/23] Write sources
[19/23] Compiling _NumericsShims _NumericsShims.c
In file included from /host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundationObjC/ObjCExceptionHandling.m:9:
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundationObjC/include/ObjCExceptionHandling.h:12:10: fatal error: 'Foundation/NSObjCRuntime.h' file not found
   12 | #include <Foundation/NSObjCRuntime.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[20/23] Compiling SpeziFoundationObjC ObjCExceptionHandling.m
[20/23] Compiling _AtomicsShims.c
[20/23] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
In file included from /host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundationObjC/ObjCExceptionHandling.m:9:
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundationObjC/include/ObjCExceptionHandling.h:12:10: fatal error: 'Foundation/NSObjCRuntime.h' file not found
   12 | #include <Foundation/NSObjCRuntime.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[0/3] Compiling _AtomicsShims.c
[1/3] Compiling SpeziFoundationObjC ObjCExceptionHandling.m
[1/3] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 linux