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 Mercato, reference 1.1.0 (afefae), with Swift 6.2 (beta) for Android on 27 Aug 2025 00:49:04 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tikhop/Mercato.git
Reference: 1.1.0
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/tikhop/Mercato
 * tag               1.1.0      -> FETCH_HEAD
HEAD is now at afefae2 feat: Advanced Commerce
Cloned https://github.com/tikhop/Mercato.git
Revision (git rev-parse @):
afefae2009117ad17b92006204d9691c485d90b9
SUCCESS checkout https://github.com/tikhop/Mercato.git at 1.1.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/tikhop/Mercato.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-8C5A4AE7A8CE2BA.txt
[4/14] Compiling Mercato Purchase.swift
/host/spi-builder-workspace/Sources/Mercato/Mercato+Extras.swift:23:8: error: no such module 'StoreKit'
 21 | // SOFTWARE.
 22 |
 23 | import StoreKit
    |        `- error: no such module 'StoreKit'
 24 |
 25 | extension Mercato {
[5/15] Compiling Mercato PeriodFormatter.swift
/host/spi-builder-workspace/Sources/Mercato/Mercato+Extras.swift:23:8: error: no such module 'StoreKit'
 21 | // SOFTWARE.
 22 |
 23 | import StoreKit
    |        `- error: no such module 'StoreKit'
 24 |
 25 | extension Mercato {
[6/15] Compiling Mercato PriceFormatter.swift
/host/spi-builder-workspace/Sources/Mercato/Mercato+Extras.swift:23:8: error: no such module 'StoreKit'
 21 | // SOFTWARE.
 22 |
 23 | import StoreKit
    |        `- error: no such module 'StoreKit'
 24 |
 25 | extension Mercato {
error: compile command failed due to signal 6 (use -v to see invocation)
Unhandled coercion:
(dependent_member_type assoc_type="Mercato.(file).ProductService.ProductItem@/host/spi-builder-workspace/Sources/Mercato/ProductService.swift:28:20"
  (base=existential_archetype_type address=0x563a621a8730 conforms_to="Mercato.(file).StoreKitProductService@/host/spi-builder-workspace/Sources/Mercato/ProductService.swift:43:17" opened_existential_id="9551AC7C-82DF-11F0-96AD-0242AC110003"
    (interface_type=generic_type_param_type depth=0 index=0 param_kind=type)
    (opened_existential=existential_type
      (protocol_type decl="Mercato.(file).StoreKitProductService@/host/spi-builder-workspace/Sources/Mercato/ProductService.swift:43:17"))))
(dependent_member_type assoc_type="Mercato.(file).ProductService.ProductItem@/host/spi-builder-workspace/Sources/Mercato/ProductService.swift:28:20"
  (base=existential_type
    (protocol_type decl="Mercato.(file).StoreKitProductService@/host/spi-builder-workspace/Sources/Mercato/ProductService.swift:43:17")))
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.	Program arguments: /root/.local/share/swiftly/toolchains/6.2-snapshot-2025-05-15/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/Mercato/Mercato+Extras.swift /host/spi-builder-workspace/Sources/Mercato/Mercato+StoreKit.swift -primary-file /host/spi-builder-workspace/Sources/Mercato/Mercato.swift -primary-file /host/spi-builder-workspace/Sources/Mercato/MercatoError.swift /host/spi-builder-workspace/Sources/Mercato/Models/PromotionalOffer.swift /host/spi-builder-workspace/Sources/Mercato/ProductService.swift /host/spi-builder-workspace/Sources/Mercato/Purchase.swift /host/spi-builder-workspace/Sources/Mercato/Utils/CurrencySymbolsLibrary.swift /host/spi-builder-workspace/Sources/Mercato/Utils/Lock.swift /host/spi-builder-workspace/Sources/Mercato/Utils/PeriodFormatter.swift /host/spi-builder-workspace/Sources/Mercato/Utils/PriceFormatter.swift -emit-dependencies-path /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/debug/Mercato.build/Mercato.d -emit-reference-dependencies-path /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/debug/Mercato.build/Mercato.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/debug/Mercato.build/Mercato.dia -emit-dependencies-path /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/debug/Mercato.build/MercatoError.d -emit-reference-dependencies-path /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/debug/Mercato.build/MercatoError.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/debug/Mercato.build/MercatoError.dia -target aarch64-unknown-linux-android28 -Xllvm -aarch64-use-tbi -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot -I /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/debug/Modules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/debug/ModuleCache -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -empty-abi-descriptor -resource-dir /root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/swift-resources/usr/lib/swift-aarch64 -enable-anonymous-context-mangled-names -file-compilation-dir /host/spi-builder-workspace -Xcc --sysroot -Xcc /root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot -Xcc -fPIC -Xcc -g -Xcc -fno-omit-frame-pointer -no-auto-bridging-header-chaining -module-name Mercato -package-name spi_builder_workspace -in-process-plugin-server-path /root/.local/share/swiftly/toolchains/6.2-snapshot-2025-05-15/usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /root/.local/share/swiftly/toolchains/6.2-snapshot-2025-05-15/usr/lib/swift/host/plugins -plugin-path /root/.local/share/swiftly/toolchains/6.2-snapshot-2025-05-15/usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/debug/Mercato.build/Mercato.swift.o -o /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/debug/Mercato.build/MercatoError.swift.o -index-store-path /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/debug/index/store -index-system-modules
1.	Swift version 6.2-dev (LLVM 74f18b3ab32b72c, Swift 245514cab31b823)
2.	Compiling with the current language version
3.	While evaluating request TypeCheckPrimaryFileRequest(source_file "/host/spi-builder-workspace/Sources/Mercato/Mercato.swift")
4.	While evaluating request TypeCheckFunctionBodyRequest(Mercato.(file).Mercato.isEligibleForIntroOffer(for:)@/host/spi-builder-workspace/Sources/Mercato/Mercato.swift:172:17)
5.	While type-checking statement at [/host/spi-builder-workspace/Sources/Mercato/Mercato.swift:172:105 - line:186:5] RangeText="{
        let products = try await productService.retrieveProducts(productIds: productIds)
        guard let product = products.first else {
            throw MercatoError.purchase(error: .productUnavailable)
        }
        guard let subscription = product.subscription else {
            return false
        }
        let subscriptionGroupID = subscription.subscriptionGroupID
        return await Product.SubscriptionInfo.isEligibleForIntroOffer(for: subscriptionGroupID)
    "
6.	While type-checking declaration 0x563a61f92c70 (at /host/spi-builder-workspace/Sources/Mercato/Mercato.swift:173:9)
7.	While evaluating request PatternBindingEntryRequest((unknown decl)@/host/spi-builder-workspace/Sources/Mercato/Mercato.swift:173:9, 0)
8.	While type-checking expression at [/host/spi-builder-workspace/Sources/Mercato/Mercato.swift:173:24 - line:173:88] RangeText="try await productService.retrieveProducts(productIds: productIds"
9.	While type-checking-target starting at /host/spi-builder-workspace/Sources/Mercato/Mercato.swift:173:28
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  swift-frontend 0x0000563a5a9f5c58
1  swift-frontend 0x0000563a5a9f377e
2  swift-frontend 0x0000563a5a9f62f1
3  libc.so.6      0x00007f3156388520
4  libc.so.6      0x00007f31563dc9fc pthread_kill + 300
5  libc.so.6      0x00007f3156388476 raise + 22
6  libc.so.6      0x00007f315636e7f3 abort + 211
7  swift-frontend 0x0000563a5460dbf0
8  swift-frontend 0x0000563a5463247c
9  swift-frontend 0x0000563a5463177d
10 swift-frontend 0x0000563a5460ab3a
11 swift-frontend 0x0000563a546267f5
12 swift-frontend 0x0000563a54629d07
13 swift-frontend 0x0000563a5462f5bc
14 swift-frontend 0x0000563a5460f28d
15 swift-frontend 0x0000563a549f4da6
16 swift-frontend 0x0000563a549f4d70
17 swift-frontend 0x0000563a549f4d70
18 swift-frontend 0x0000563a549f4cb3
19 swift-frontend 0x0000563a54608fbb
20 swift-frontend 0x0000563a54608992
21 swift-frontend 0x0000563a5443df87
22 swift-frontend 0x0000563a5443dda1
23 swift-frontend 0x0000563a5443f786
24 swift-frontend 0x0000563a5443fa86
25 swift-frontend 0x0000563a5454aefe
26 swift-frontend 0x0000563a54ab7998
27 swift-frontend 0x0000563a54a79560
28 swift-frontend 0x0000563a5448a8a7
29 swift-frontend 0x0000563a5448a694
30 swift-frontend 0x0000563a54540b8d
31 swift-frontend 0x0000563a5453e7dc
32 swift-frontend 0x0000563a5453e024
33 swift-frontend 0x0000563a5453dbbe
34 swift-frontend 0x0000563a54b3d702
35 swift-frontend 0x0000563a54a95219
36 swift-frontend 0x0000563a54c1b168
37 swift-frontend 0x0000563a545ab5d2
38 swift-frontend 0x0000563a545ad5bb
39 swift-frontend 0x0000563a545ab4b5
40 swift-frontend 0x0000563a531046d9
41 swift-frontend 0x0000563a530fa98a
42 swift-frontend 0x0000563a530fa77b
43 swift-frontend 0x0000563a52da2772
44 swift-frontend 0x0000563a52d93bbe
45 swift-frontend 0x0000563a52d92c5c
46 swift-frontend 0x0000563a52b0e5ab
47 libc.so.6      0x00007f315636fd90
48 libc.so.6      0x00007f315636fe40 __libc_start_main + 128
49 swift-frontend 0x0000563a52b0d5a5
BUILD FAILURE 6.2 android