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 YPersistence with Swift 5.8 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.23.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/codeandtheory/ypersistence-ios.git
Reference: main
Cloned https://github.com/codeandtheory/ypersistence-ios.git into spi-builder-workspace
SPI manifest file found: spi-builder-workspace/.spi.yml
SUCCESS checkout https://github.com/codeandtheory/ypersistence-ios.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.8
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Tests/YPersistenceTests/Assets/YPersistence.xcdatamodeld
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/17] Emitting module YPersistence
/host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectContext+SaveChanges.swift:9:8: error: no such module 'CoreData'
import CoreData
       ^
[2/19] Compiling YPersistence SortColumn.swift
/host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectContext+SaveChanges.swift:9:8: error: no such module 'CoreData'
import CoreData
       ^
[3/19] Compiling YPersistence SortInfo.swift
/host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectContext+SaveChanges.swift:9:8: error: no such module 'CoreData'
import CoreData
       ^
[4/19] Compiling YPersistence DispatchQueue+executeOnMain.swift
/host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectContext+SaveChanges.swift:9:8: error: no such module 'CoreData'
import CoreData
       ^
[5/19] Compiling YPersistence NSManagedObjectContext+SaveChanges.swift
/host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectContext+SaveChanges.swift:9:8: error: no such module 'CoreData'
import CoreData
       ^
[6/19] Compiling YPersistence NSManagedObjectModel+init.swift
/host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectContext+SaveChanges.swift:9:8: error: no such module 'CoreData'
import CoreData
       ^
error: compile command failed due to signal 11 (use -v to see invocation)
[7/19] Compiling YPersistence RecordToModel.swift
/host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectContext+SaveChanges.swift:9:8: error: no such module 'CoreData'
import CoreData
       ^
[8/19] Compiling YPersistence SyncRecord.swift
/host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectContext+SaveChanges.swift:9:8: error: no such module 'CoreData'
import CoreData
       ^
[9/19] Compiling YPersistence ModelRepresentable.swift
/host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectContext+SaveChanges.swift:9:8: error: no such module 'CoreData'
import CoreData
       ^
[10/19] Compiling YPersistence RecordFromModel.swift
/host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectContext+SaveChanges.swift:9:8: error: no such module 'CoreData'
import CoreData
       ^
[11/19] Compiling YPersistence CoreModel.swift
/host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectContext+SaveChanges.swift:9:8: error: no such module 'CoreData'
import CoreData
       ^
[12/19] Compiling YPersistence DataRecord.swift
/host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectContext+SaveChanges.swift:9:8: error: no such module 'CoreData'
import CoreData
       ^
[13/19] Compiling YPersistence PersistenceManager+Fetch.swift
/host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectContext+SaveChanges.swift:9:8: error: no such module 'CoreData'
import CoreData
       ^
[14/19] Compiling YPersistence PersistenceManager+Save.swift
/host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectContext+SaveChanges.swift:9:8: error: no such module 'CoreData'
import CoreData
       ^
/host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectContext+SaveChanges.swift:9:8: error: no such module 'CoreData'
import CoreData
       ^
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.	Program arguments: /usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/YPersistence/Extensions/DispatchQueue+executeOnMain.swift /host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectContext+SaveChanges.swift /host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectModel+init.swift /host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager+BulkDelete.swift /host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager+Clear.swift /host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager+Delete.swift /host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager+Fetch.swift /host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager+Save.swift -primary-file /host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager+Sync.swift -primary-file /host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager.swift /host/spi-builder-workspace/Sources/YPersistence/Protocols/CoreModel.swift /host/spi-builder-workspace/Sources/YPersistence/Protocols/DataRecord.swift /host/spi-builder-workspace/Sources/YPersistence/Protocols/ModelRepresentable.swift /host/spi-builder-workspace/Sources/YPersistence/Protocols/RecordFromModel.swift /host/spi-builder-workspace/Sources/YPersistence/Protocols/RecordToModel.swift /host/spi-builder-workspace/Sources/YPersistence/Protocols/SyncRecord.swift /host/spi-builder-workspace/Sources/YPersistence/SortColumn.swift /host/spi-builder-workspace/Sources/YPersistence/SortInfo.swift -emit-dependencies-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/YPersistence.build/Manager/PersistenceManager+Sync.d -emit-reference-dependencies-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/YPersistence.build/Manager/PersistenceManager+Sync.swiftdeps -emit-dependencies-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/YPersistence.build/Manager/PersistenceManager.d -emit-reference-dependencies-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/YPersistence.build/Manager/PersistenceManager.swiftdeps -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug -enable-testing -g -module-cache-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/ModuleCache -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -new-driver-path /usr/bin/swift-driver -empty-abi-descriptor -resource-dir /usr/lib/swift -enable-anonymous-context-mangled-names -module-name YPersistence -parse-as-library -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/YPersistence.build/Manager/PersistenceManager+Sync.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/YPersistence.build/Manager/PersistenceManager.swift.o -index-store-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/index/store -index-system-modules
1.	Swift version 5.8 (swift-5.8-RELEASE)
2.	Compiling with the current language version
3.	While evaluating request TypeCheckSourceFileRequest(source_file "/host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager+Sync.swift")
4.	While evaluating request TypeCheckFunctionBodyRequest(YPersistence.(file).PersistenceManager extension.fetchRecordsToUpload(context:)@/host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager+Sync.swift:21:17)
5.	While type-checking statement at [/host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager+Sync.swift:23:21 - line:30:5] RangeText="{
        let predicate = NSPredicate(format: "\(T.isUploadedKey) == false")
        return try fetchRecords(
            predicate: predicate,
            sortDescriptors: T.sort?.descriptors,
            context: context
        )
    "
6.	While type-checking declaration 0x5618d0b39208 (at /host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager+Sync.swift:24:9)
7.	While evaluating request PatternBindingEntryRequest((unknown decl), 0, 0)
8.	While type-checking expression at [/host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager+Sync.swift:24:25 - line:24:74] RangeText="NSPredicate(format: "\(T.isUploadedKey) == false""
9.	While type-checking-target starting at /host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager+Sync.swift:24:25
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):
/usr/bin/swift-frontend(+0x59da5f3)[0x5618cc4005f3]
/usr/bin/swift-frontend(+0x59d850e)[0x5618cc3fe50e]
/usr/bin/swift-frontend(+0x59da97a)[0x5618cc40097a]
/lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7fda2f3cb520]
/lib/x86_64-linux-gnu/libc.so.6(free+0x1e)[0x7fda2f42e47e]
/usr/bin/swift-frontend(+0x1a41905)[0x5618c8467905]
/usr/bin/swift-frontend(+0x1a424f8)[0x5618c84684f8]
/usr/bin/swift-frontend(+0x1a43fad)[0x5618c8469fad]
/usr/bin/swift-frontend(+0x1a4b67c)[0x5618c847167c]
/usr/bin/swift-frontend(+0x1a4a4ec)[0x5618c84704ec]
/usr/bin/swift-frontend(+0x1e29fee)[0x5618c884ffee]
/usr/bin/swift-frontend(+0x1e271e8)[0x5618c884d1e8]
/usr/bin/swift-frontend(+0x1e29e48)[0x5618c884fe48]
/usr/bin/swift-frontend(+0x1e271ca)[0x5618c884d1ca]
/usr/bin/swift-frontend(+0x1e26a02)[0x5618c884ca02]
/usr/bin/swift-frontend(+0x1a44c0e)[0x5618c846ac0e]
/usr/bin/swift-frontend(+0x19df76e)[0x5618c840576e]
/usr/bin/swift-frontend(+0x1a6b245)[0x5618c8491245]
/usr/bin/swift-frontend(+0x1a6af84)[0x5618c8490f84]
/usr/bin/swift-frontend(+0x1a6c538)[0x5618c8492538]
/usr/bin/swift-frontend(+0x1a6c727)[0x5618c8492727]
/usr/bin/swift-frontend(+0x1b3c441)[0x5618c8562441]
/usr/bin/swift-frontend(+0x1a8a122)[0x5618c84b0122]
/usr/bin/swift-frontend(+0x1a7cb47)[0x5618c84a2b47]
/usr/bin/swift-frontend(+0x1aa1d18)[0x5618c84c7d18]
/usr/bin/swift-frontend(+0x1aa0fa7)[0x5618c84c6fa7]
/usr/bin/swift-frontend(+0x1b3787c)[0x5618c855d87c]
/usr/bin/swift-frontend(+0x1b3699c)[0x5618c855c99c]
/usr/bin/swift-frontend(+0x1b35bba)[0x5618c855bbba]
/usr/bin/swift-frontend(+0x1ef6cd5)[0x5618c891ccd5]
/usr/bin/swift-frontend(+0x1e7a247)[0x5618c88a0247]
/usr/bin/swift-frontend(+0x1e7a1e9)[0x5618c88a01e9]
/usr/bin/swift-frontend(+0x1b6de79)[0x5618c8593e79]
/usr/bin/swift-frontend(+0x1b6fb24)[0x5618c8595b24]
/usr/bin/swift-frontend(+0x1b6f9a2)[0x5618c85959a2]
/usr/bin/swift-frontend(+0x1b6dd19)[0x5618c8593d19]
/usr/bin/swift-frontend(+0xd1ece9)[0x5618c7744ce9]
/usr/bin/swift-frontend(+0xb57a2d)[0x5618c757da2d]
/usr/bin/swift-frontend(+0xb56d95)[0x5618c757cd95]
/usr/bin/swift-frontend(+0x99c73f)[0x5618c73c273f]
/lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7fda2f3b2d90]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7fda2f3b2e40]
/usr/bin/swift-frontend(+0x99bf35)[0x5618c73c1f35]
BUILD FAILURE 5.8 linux