The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build ResearchKitOnFHIR, reference main (c07664), with Swift 6.1 for Wasm on 6 Aug 2025 06:59:30 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.65.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/StanfordBDHG/ResearchKitOnFHIR.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/StanfordBDHG/ResearchKitOnFHIR
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c076643 Convert unit tests to Swift Testing (#95)
Cloned https://github.com/StanfordBDHG/ResearchKitOnFHIR.git
Revision (git rev-parse @):
c076643a69654ce19e3a8fba8eb0b893c710923a
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/StanfordBDHG/ResearchKitOnFHIR.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/StanfordBDHG/ResearchKitOnFHIR.git
https://github.com/StanfordBDHG/ResearchKitOnFHIR.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "researchkit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.1.1",
            "upper_bound" : "3.2.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/StanfordBDHG/ResearchKit.git"
    },
    {
      "identity" : "fhirmodels",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.7.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/FHIRModels.git"
    },
    {
      "identity" : "antlr4",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.13.1",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/antlr/antlr4.git"
    }
  ],
  "manifest_display_name" : "ResearchKitOnFHIR",
  "name" : "ResearchKitOnFHIR",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "watchos",
      "version" : "10.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    },
    {
      "name" : "macos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "ResearchKitOnFHIR",
      "targets" : [
        "ResearchKitOnFHIR"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "FHIRQuestionnaires",
      "targets" : [
        "FHIRQuestionnaires"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ResearchKitOnFHIRTests",
      "module_type" : "SwiftTarget",
      "name" : "ResearchKitOnFHIRTests",
      "path" : "Tests/ResearchKitOnFHIRTests",
      "sources" : [
        "FHIRToResearchKitTests.swift",
        "NavigationRulesTests.swift",
        "ResearchKitToFHIRTests.swift"
      ],
      "target_dependencies" : [
        "ResearchKitOnFHIR",
        "FHIRQuestionnaires"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ResearchKitOnFHIR",
      "module_type" : "SwiftTarget",
      "name" : "ResearchKitOnFHIR",
      "path" : "Sources/ResearchKitOnFHIR",
      "product_dependencies" : [
        "ResearchKit",
        "ResearchKitSwiftUI",
        "ModelsR4"
      ],
      "product_memberships" : [
        "ResearchKitOnFHIR"
      ],
      "sources" : [
        "FHIRExtensions/FHIRExtensions.swift",
        "FHIRToResearchKit/FHIRToResearchKitConversionError.swift",
        "FHIRToResearchKit/NavigationRules.swift",
        "FHIRToResearchKit/ORKNavigableOrderedTask+FHIR.swift",
        "FHIRToResearchKit/Questionnaire+ValueSets.swift",
        "FHIRToResearchKit/QuestionnaireItem+ResearchKit.swift",
        "ResearchKitToFHIR/ORKTaskResult+FHIR.swift",
        "ValueCoding/ValueCoding.swift"
      ],
      "target_dependencies" : [
        "FHIRPathParser"
      ],
      "type" : "library"
    },
    {
      "c99name" : "FHIRQuestionnaires",
      "module_type" : "SwiftTarget",
      "name" : "FHIRQuestionnaires",
      "path" : "Sources/FHIRQuestionnaires",
      "product_dependencies" : [
        "ModelsR4"
      ],
      "product_memberships" : [
        "FHIRQuestionnaires"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/ContainedValueSetExample.json",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/DateTimeExample.json",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/FormExample.json",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/GAD-7.json",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/GCS.json",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/IPSS.json",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/ImageCapture.json",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/MultipleEnableWhen.json",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/NumberExample.json",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/PHQ-9.json",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/SkipLogicExample.json",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/SliderExample.json",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/TextValidationExample.json",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Questionnaire+Resources.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "FHIRPathParserTests",
      "module_type" : "SwiftTarget",
      "name" : "FHIRPathParserTests",
      "path" : "Tests/FHIRPathParserTests",
      "sources" : [
        "FHIRPathParserTests.swift"
      ],
      "target_dependencies" : [
        "FHIRPathParser"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FHIRPathParser",
      "module_type" : "SwiftTarget",
      "name" : "FHIRPathParser",
      "path" : "Sources/FHIRPathParser",
      "product_dependencies" : [
        "Antlr4"
      ],
      "product_memberships" : [
        "ResearchKitOnFHIR"
      ],
      "sources" : [
        "Date+FHIRPathValue.swift",
        "DateComponents+Operations.swift",
        "DateExpressionError.swift",
        "DateExpressionEvaluation.swift",
        "DateTimeLiteralParser.swift",
        "ExpressionError.swift",
        "FHIRPathExpression.swift",
        "Generated/FHIRPathBaseVisitor.swift",
        "Generated/FHIRPathLexer.swift",
        "Generated/FHIRPathParser.swift",
        "Generated/FHIRPathVisitor.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:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/FHIRModels.git
Fetching https://github.com/antlr/antlr4.git
Fetching https://github.com/StanfordBDHG/ResearchKit.git
[1/6077] Fetching fhirmodels
[2372/173864] Fetching fhirmodels, antlr4
[48025/214633] Fetching fhirmodels, antlr4, researchkit
Fetched https://github.com/apple/FHIRModels.git from cache (16.41s)
Fetched https://github.com/antlr/antlr4.git from cache (17.13s)
Fetched https://github.com/StanfordBDHG/ResearchKit.git from cache (17.25s)
Computing version for https://github.com/apple/FHIRModels.git
Computed https://github.com/apple/FHIRModels.git at 0.7.0 (19.49s)
Computing version for https://github.com/antlr/antlr4.git
Computed https://github.com/antlr/antlr4.git at 4.13.2 (0.59s)
Computing version for https://github.com/StanfordBDHG/ResearchKit.git
Computed https://github.com/StanfordBDHG/ResearchKit.git at 3.1.2 (0.67s)
Creating working copy for https://github.com/StanfordBDHG/ResearchKit.git
Working copy of https://github.com/StanfordBDHG/ResearchKit.git resolved at 3.1.2
Creating working copy for https://github.com/antlr/antlr4.git
Working copy of https://github.com/antlr/antlr4.git resolved at 4.13.2
Creating working copy for https://github.com/apple/FHIRModels.git
Working copy of https://github.com/apple/FHIRModels.git resolved at 0.7.0
warning: 'spi-builder-workspace': found 13 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/SliderExample.json.license
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/ImageCapture.json.license
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/TextValidationExample.json.license
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/PHQ-9.json.license
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/ContainedValueSetExample.json.license
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/SkipLogicExample.json.license
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/FormExample.json.license
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/DateTimeExample.json.license
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/IPSS.json.license
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/GAD-7.json.license
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/MultipleEnableWhen.json.license
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/NumberExample.json.license
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/GCS.json.license
warning: 'spi-builder-workspace': found 4 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/FHIRPathParser/Generated/FHIRPathVisitor.swift.license
    /host/spi-builder-workspace/Sources/FHIRPathParser/Generated/FHIRPathLexer.swift.license
    /host/spi-builder-workspace/Sources/FHIRPathParser/Generated/FHIRPathParser.swift.license
    /host/spi-builder-workspace/Sources/FHIRPathParser/Generated/FHIRPathBaseVisitor.swift.license
Building for debugging...
[0/21] Write sources
[0/21] Copying GAD-7.json
[0/21] Copying GCS.json
[0/21] Copying FormExample.json
[0/21] Copying ContainedValueSetExample.json
[0/21] Copying DateTimeExample.json
[0/21] Write sources
[0/21] Copying IPSS.json
[0/21] Copying MultipleEnableWhen.json
[0/21] Copying NumberExample.json
[0/21] Copying ImageCapture.json
[0/21] Copying PHQ-9.json
[0/21] Copying SliderExample.json
[0/21] Copying TextValidationExample.json
[3/21] Write sources
[13/21] Copying SkipLogicExample.json
[19/21] Write sources
[20/21] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[22/172] Emitting module Antlr4
/host/spi-builder-workspace/.build/checkouts/antlr4/runtime/Swift/Sources/Antlr4/misc/utils/Mutex.swift:12:29: error: cannot find 'DispatchSemaphore' in scope
10 |     /// The mutex instance.
11 |     ///
12 |     private let semaphore = DispatchSemaphore(value: 1)
   |                             `- error: cannot find 'DispatchSemaphore' in scope
13 |
14 |     ///
[23/191] Compiling FMCore FHIRIntegerRepresentable.swift
[24/191] Compiling FMCore FHIRType.swift
[25/192] Compiling ResearchKitSwiftUI CancelBehavior.swift
/host/spi-builder-workspace/.build/checkouts/ResearchKit/Sources/ResearchKitSwiftUI/Export.swift:9:19: error: no such module 'ResearchKit'
 7 | //
 8 |
 9 | @_exported import ResearchKit
   |                   `- error: no such module 'ResearchKit'
10 | @_exported import ResearchKitUI
11 | #if os(iOS)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[26/192] Emitting module ResearchKitSwiftUI
/host/spi-builder-workspace/.build/checkouts/ResearchKit/Sources/ResearchKitSwiftUI/Export.swift:9:19: error: no such module 'ResearchKit'
 7 | //
 8 |
 9 | @_exported import ResearchKit
   |                   `- error: no such module 'ResearchKit'
10 | @_exported import ResearchKitUI
11 | #if os(iOS)
[27/192] Compiling ResearchKitSwiftUI TaskResult.swift
/host/spi-builder-workspace/.build/checkouts/ResearchKit/Sources/ResearchKitSwiftUI/Export.swift:9:19: error: no such module 'ResearchKit'
 7 | //
 8 |
 9 | @_exported import ResearchKit
   |                   `- error: no such module 'ResearchKit'
10 | @_exported import ResearchKitUI
11 | #if os(iOS)
[28/192] Compiling ResearchKitSwiftUI ORKOrderedTaskView.swift
/host/spi-builder-workspace/.build/checkouts/ResearchKit/Sources/ResearchKitSwiftUI/Export.swift:9:19: error: no such module 'ResearchKit'
 7 | //
 8 |
 9 | @_exported import ResearchKit
   |                   `- error: no such module 'ResearchKit'
10 | @_exported import ResearchKitUI
11 | #if os(iOS)
[29/192] Compiling ResearchKitSwiftUI ORKLifecycle.swift
/host/spi-builder-workspace/.build/checkouts/ResearchKit/Sources/ResearchKitSwiftUI/Export.swift:9:19: error: no such module 'ResearchKit'
 7 | //
 8 |
 9 | @_exported import ResearchKit
   |                   `- error: no such module 'ResearchKit'
10 | @_exported import ResearchKitUI
11 | #if os(iOS)
[30/192] Compiling ResearchKitSwiftUI Export.swift
/host/spi-builder-workspace/.build/checkouts/ResearchKit/Sources/ResearchKitSwiftUI/Export.swift:9:19: error: no such module 'ResearchKit'
 7 | //
 8 |
 9 | @_exported import ResearchKit
   |                   `- error: no such module 'ResearchKit'
10 | @_exported import ResearchKitUI
11 | #if os(iOS)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: 'spi-builder-workspace': found 13 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/DateTimeExample.json.license
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/ContainedValueSetExample.json.license
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/MultipleEnableWhen.json.license
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/SkipLogicExample.json.license
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/TextValidationExample.json.license
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/FormExample.json.license
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/GCS.json.license
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/NumberExample.json.license
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/SliderExample.json.license
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/ImageCapture.json.license
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/PHQ-9.json.license
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/GAD-7.json.license
    /host/spi-builder-workspace/Sources/FHIRQuestionnaires/Resources/IPSS.json.license
warning: 'spi-builder-workspace': found 4 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/FHIRPathParser/Generated/FHIRPathBaseVisitor.swift.license
    /host/spi-builder-workspace/Sources/FHIRPathParser/Generated/FHIRPathVisitor.swift.license
    /host/spi-builder-workspace/Sources/FHIRPathParser/Generated/FHIRPathLexer.swift.license
    /host/spi-builder-workspace/Sources/FHIRPathParser/Generated/FHIRPathParser.swift.license
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/150] Compiling ResearchKitSwiftUI Export.swift
/host/spi-builder-workspace/.build/checkouts/ResearchKit/Sources/ResearchKitSwiftUI/Export.swift:9:19: error: no such module 'ResearchKit'
 7 | //
 8 |
 9 | @_exported import ResearchKit
   |                   `- error: no such module 'ResearchKit'
10 | @_exported import ResearchKitUI
11 | #if os(iOS)
[3/152] Compiling ResearchKitSwiftUI CancelBehavior.swift
/host/spi-builder-workspace/.build/checkouts/ResearchKit/Sources/ResearchKitSwiftUI/Export.swift:9:19: error: no such module 'ResearchKit'
 7 | //
 8 |
 9 | @_exported import ResearchKit
   |                   `- error: no such module 'ResearchKit'
10 | @_exported import ResearchKitUI
11 | #if os(iOS)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/152] Emitting module ResearchKitSwiftUI
/host/spi-builder-workspace/.build/checkouts/ResearchKit/Sources/ResearchKitSwiftUI/Export.swift:9:19: error: no such module 'ResearchKit'
 7 | //
 8 |
 9 | @_exported import ResearchKit
   |                   `- error: no such module 'ResearchKit'
10 | @_exported import ResearchKitUI
11 | #if os(iOS)
[5/152] Compiling ResearchKitSwiftUI ORKLifecycle.swift
/host/spi-builder-workspace/.build/checkouts/ResearchKit/Sources/ResearchKitSwiftUI/Export.swift:9:19: error: no such module 'ResearchKit'
 7 | //
 8 |
 9 | @_exported import ResearchKit
   |                   `- error: no such module 'ResearchKit'
10 | @_exported import ResearchKitUI
11 | #if os(iOS)
[6/152] Compiling ResearchKitSwiftUI ORKOrderedTaskView.swift
/host/spi-builder-workspace/.build/checkouts/ResearchKit/Sources/ResearchKitSwiftUI/Export.swift:9:19: error: no such module 'ResearchKit'
 7 | //
 8 |
 9 | @_exported import ResearchKit
   |                   `- error: no such module 'ResearchKit'
10 | @_exported import ResearchKitUI
11 | #if os(iOS)
[7/152] Compiling ResearchKitSwiftUI TaskResult.swift
/host/spi-builder-workspace/.build/checkouts/ResearchKit/Sources/ResearchKitSwiftUI/Export.swift:9:19: error: no such module 'ResearchKit'
 7 | //
 8 |
 9 | @_exported import ResearchKit
   |                   `- error: no such module 'ResearchKit'
10 | @_exported import ResearchKitUI
11 | #if os(iOS)
[8/152] Compiling FMCore FHIRIntegerRepresentable.swift
BUILD FAILURE 6.1 wasm