The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SearchAndSort, reference main (1205bb), with Swift 6.4 for macOS (SPM) on 21 Sep 2026 18:35:07 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mohammad-nej/SearchAndSort.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mohammad-nej/SearchAndSort
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 1205bb0 - addes support for nullable keys.
Cloned https://github.com/mohammad-nej/SearchAndSort.git
Revision (git rev-parse @):
1205bb07b90e31b6c70e1ebb8fb0d36df79a16f3
SUCCESS checkout https://github.com/mohammad-nej/SearchAndSort.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/mohammad-nej/SearchAndSort.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64
Building for debugging...
[Pre-planning 1 / 96]
[Planning deferred tasks]
[25 / 42]
[26 / 43] MyLogger
[36 / 82]
[41 / 82]
[45 / 82]
[46 / 82]
[50 / 82]
[52 / 82]
[55 / 82]
[59 / 82]
[61 / 82]
[62 / 82]
[65 / 82] MyLogger
[72 / 83] SearchAndSort
[82 / 94] SearchAndSort
[83 / 94] SearchAndSort
Fetching https://github.com/mohammad-nej/MyLogger
[1/35] Fetching mylogger
Fetched https://github.com/mohammad-nej/MyLogger (0.70s)
Computing version for https://github.com/mohammad-nej/MyLogger
Computed https://github.com/mohammad-nej/MyLogger at 1.0.3 (1.28s)
Creating working copy for https://github.com/mohammad-nej/MyLogger
Working copy of https://github.com/mohammad-nej/MyLogger resolved at 1.0.3
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnySortabletTitledKey.swift:22:26: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
20 |         self.title = key.title
21 |         self.sortFunc = { models, order in
22 |             return await key.sort(models, order: order)
   |                          `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
23 |         }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnySortabletTitledKey.swift:40:27: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
38 |         let sortableKey = SortableKeyPath(keyPath)
39 |         self.sortFunc = { models, order in
40 |             return await  sortableKey.sort(models, order: order)
   |                           `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
41 |         }
42 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnySortabletTitledKey.swift:46:27: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
44 |         self.title = title
45 |         self.sortFunc = { models, order in
46 |             return await  key.sort(models, order: order)
   |                           `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
47 |         }
48 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyTitledKey.swift:28:19: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 26 |
 27 |         self.searchFunc = { models , query , strategy in
 28 |             await key.search(in: models, for: query, strategy: strategy)
    |                   `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 29 |         }
 30 |         self.sortFunc = { models , order in
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyTitledKey.swift:31:19: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 29 |         }
 30 |         self.sortFunc = { models , order in
 31 |             await key.sort(models, order: order)
    |                   `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 32 |         }
 33 |         self.stringifyFunc = { model in
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyTitledKey.swift:34:13: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 32 |         }
 33 |         self.stringifyFunc = { model in
 34 |             key.stringify(model)
    |             `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 35 |         }
 36 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyTitledKey.swift:64:19: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 62 |         self.searchFunc = { model , query , strategy in
 63 |
 64 |             await TitledKey.search(in: model, for: query, strategy: strategy)
    |                   `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 65 |         }
 66 |         self.sortFunc = { model , order in
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyTitledKey.swift:67:19: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 65 |         }
 66 |         self.sortFunc = { model , order in
 67 |             await TitledKey.sort( model, order: order)
    |                   `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 68 |         }
 69 |
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyTitledKey.swift:71:13: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 69 |
 70 |         self.stringifyFunc = { model in
 71 |             TitledKey.stringify(model)
    |             `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 72 |         }
 73 |
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyTitledKey.swift:81:19: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 79 |         self.searchFunc = { model , query , strategy in
 80 |
 81 |             await TitledKey.search(in: model, for: query, strategy: strategy)
    |                   `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 82 |         }
 83 |         self.sortFunc = { model , order in
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyTitledKey.swift:84:19: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 82 |         }
 83 |         self.sortFunc = { model , order in
 84 |             await TitledKey.sort( model, order: order)
    |                   `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 85 |         }
 86 |
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyTitledKey.swift:88:13: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 86 |
 87 |         self.stringifyFunc = { model in
 88 |             TitledKey.stringify(model)
    |             `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 89 |         }
 90 |         self.title = title
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnySearchableTitledKey.swift:64:26: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 62 |
 63 |
 64 |             return await searchable.search(in: array, for: query, strategy: strategy)
    |                          `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 65 |         }
 66 |         self.stringProducer = { model in
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnySearchableTitledKey.swift:67:13: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 65 |         }
 66 |         self.stringProducer = { model in
 67 |             searchable.stringify(model)
    |             `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 68 |         }
 69 |
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnySortableKey.swift:44:19: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
42 |         self.closure = { models, order in
43 |
44 |             await item.sort(models, order: order)
   |                   `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
45 |         }
46 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnySortableKey.swift:51:19: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
49 |         let key = SortableKeyPath(key)
50 |         self.closure = { models, order in
51 |             await key.sort(models, order: order)
   |                   `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
52 |         }
53 |
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyKey.swift:49:29: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 47 |         let stringer = StringConvertableStringifier<Key>()
 48 |         self.stringProducer = { model in
 49 |             return stringer.stringify(model[keyPath: key])
    |                             `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 50 |         }
 51 |
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyKey.swift:53:27: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 51 |
 52 |         sorterProducer = { models , order in
 53 |             let sortKey = SortableKeyPath(key)
    |                           `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 54 |             return await sortKey.sort(models , order: order)
 55 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyKey.swift:57:23: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 55 |         }
 56 |         searchProducer = { models , query,strategy in
 57 |             let key = SearchableKeyPath( key , stringifier: stringer)
    |                       `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 58 |
 59 |             return await key.search(in: models, for: query,strategy: strategy)
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyKey.swift:70:29: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 68 |
 69 |         self.stringProducer = { model in
 70 |             return stringer.stringify(model[keyPath: key])
    |                             `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 71 |         }
 72 |
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyKey.swift:74:27: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 72 |
 73 |         sorterProducer = { models , order in
 74 |             let sortKey = SortableKeyPath(key)
    |                           `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 75 |             return await sortKey.sort(models , order: order)
 76 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyKey.swift:78:23: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 76 |         }
 77 |         searchProducer = { models , query,strategy in
 78 |             let key = SearchableKeyPath( key , stringifier: stringer)
    |                       `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 79 |
 80 |             return await key.search(in: models, for: query,strategy: strategy)
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyKey.swift:93:29: warning: capture of non-Sendable type 'SearchKey.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 91 |         let stringer = key.stringer
 92 |         self.stringProducer = { model in
 93 |             return stringer.stringify(model[keyPath: key.key])
    |                             `- warning: capture of non-Sendable type 'SearchKey.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 94 |         }
 95 |
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyKey.swift:97:27: warning: capture of non-Sendable type 'SearchKey.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 95 |
 96 |         sorterProducer = { models , order in
 97 |             let sortKey = SortableKeyPath(key.key)
    |                           `- warning: capture of non-Sendable type 'SearchKey.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 98 |             return await sortKey.sort(models , order: order)
 99 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyKey.swift:115:29: warning: capture of non-Sendable type 'SortKey.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
113 |
114 |         self.stringProducer = { model in
115 |             return stringer.stringify(model[keyPath: key.key])
    |                             `- warning: capture of non-Sendable type 'SortKey.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
116 |         }
117 |
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyKey.swift:119:27: warning: capture of non-Sendable type 'SortKey.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
117 |
118 |         sorterProducer = { models , order in
119 |             let sortKey = SortableKeyPath(key.key)
    |                           `- warning: capture of non-Sendable type 'SortKey.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
120 |             return await sortKey.sort(models , order: order)
121 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyKey.swift:123:23: warning: capture of non-Sendable type 'SortKey.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
121 |         }
122 |         searchProducer = { models , query,strategy in
123 |             let key = SearchableKeyPath( key , stringifier: stringer)
    |                       `- warning: capture of non-Sendable type 'SortKey.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
124 |
125 |             return await key.search(in: models, for: query,strategy: strategy)
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyKey.swift:141:29: warning: capture of non-Sendable type 'SortKey.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
139 |         let stringer = StringConvertableStringifier<SortKey>()
140 |         self.stringProducer = { model in
141 |             return stringer.stringify(model[keyPath: key.key])
    |                             `- warning: capture of non-Sendable type 'SortKey.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
142 |         }
143 |
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyKey.swift:145:27: warning: capture of non-Sendable type 'SortKey.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
143 |
144 |         sorterProducer = { models , order in
145 |             let sortKey = SortableKeyPath(key.key)
    |                           `- warning: capture of non-Sendable type 'SortKey.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
146 |             return await sortKey.sort(models , order: order)
147 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyKey.swift:149:23: warning: capture of non-Sendable type 'SortKey.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
147 |         }
148 |         searchProducer = { models , query,strategy in
149 |             let key = SearchableKeyPath( key , stringifier: stringer)
    |                       `- warning: capture of non-Sendable type 'SortKey.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
150 |
151 |             return await key.search(in: models, for: query,strategy: strategy)
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyKey.swift:168:29: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
166 |         let stringer = key.stringer
167 |         self.stringProducer = { model in
168 |             return stringer.stringify(model[keyPath: key.key])
    |                             `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
169 |         }
170 |
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyKey.swift:172:27: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
170 |
171 |         sorterProducer = { models , order in
172 |             let sortKey = SortableKeyPath(key.key)
    |                           `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
173 |             return await sortKey.sort(models , order: order)
174 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnyKey.swift:179:26: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
177 |             //let key = SearchableKeyPath( key , stringifier: stringer)
178 |
179 |             return await key.search(in: models, for: query,strategy: strategy)
    |                          `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
180 |
181 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnySearchableKey.swift:45:29: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 43 |         let stringer = StringConvertableStringifier<Key>()
 44 |         self.stringProducer = { model in
 45 |             return stringer.stringify( model[keyPath: key])
    |                             `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 46 |         }
 47 |
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type Erasure/AnySearchableKey.swift:49:23: warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 47 |
 48 |         searchProducer = { models , query,strategy in
 49 |             let key = SearchableKeyPath(key , stringifier: stringer)
    |                       `- warning: capture of non-Sendable type 'Key.Type' in an isolated closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
 50 |
 51 |             return await key.search(in: models, for: query,strategy: strategy)
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
error: SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Protocols/Stringifier.swift failed with a nonzero exit code. Command line:     cd /Users/admin/builder
    builtin-SwiftPerFileCompile Stringifier.swift
error: SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Protocols/ValuePresentable.swift failed with a nonzero exit code. Command line:     cd /Users/admin/builder
    builtin-SwiftPerFileCompile ValuePresentable.swift
error: SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Search/BackgroundSearcher.swift failed with a nonzero exit code. Command line:     cd /Users/admin/builder
    builtin-SwiftPerFileCompile BackgroundSearcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Search/BackgroundSearcher.swift:161:61: error: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/region-isolation\RegionIsolation]8;;\::]8;;https://docs.swift.org/compiler/documentation/diagnostics/sending-closure-risks-data-race\SendingClosureRisksDataRace]8;;\]
159 |         let searchingKeys = key == nil ? self.keys : key!
160 |         let checker = self.checkIf
161 |         let task  = Task.detached(priority: .userInitiated) {
    |                                                             `- error: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/region-isolation\RegionIsolation]8;;\::]8;;https://docs.swift.org/compiler/documentation/diagnostics/sending-closure-risks-data-race\SendingClosureRisksDataRace]8;;\]
162 |             MODELS: for model in allModels {
163 |                 if  Task.isCancelled  {
164 |                     self.logger.debug("Task for \(query) cancelled")
    |                          `- note: closure captures 'self' allowing access to 'self'-isolated state within the closure
165 |                     return Optional<[T]>.none
166 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Search/BackgroundSearcher.swift:242:61: error: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/region-isolation\RegionIsolation]8;;\::]8;;https://docs.swift.org/compiler/documentation/diagnostics/sending-closure-risks-data-race\SendingClosureRisksDataRace]8;;\]
240 |         let searchingKeys = key == nil ? self.keys : key!
241 |         let checker = self.checkIf
242 |         let task  = Task.detached(priority: .userInitiated) {
    |                                                             `- error: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/region-isolation\RegionIsolation]8;;\::]8;;https://docs.swift.org/compiler/documentation/diagnostics/sending-closure-risks-data-race\SendingClosureRisksDataRace]8;;\]
243 |
244 |             MODELS: for model in allModels {
245 |                 if  Task.isCancelled  {
246 |                     self.logger.debug("Task for \(query) cancelled")
    |                          `- note: closure captures 'self' allowing access to 'self'-isolated state within the closure
247 |                     return Optional<[T]>.none
248 |                 }
[#RegionIsolation]: <https://docs.swift.org/compiler/documentation/diagnostics/region-isolation>
[#SendingClosureRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-closure-risks-data-race>
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Extensions/KeyPath.swift /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Logger.swift /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Protocols/Optional\ Extension.swift /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Protocols/Searchable.swift /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Protocols/SearchableKeyProtocol.swift /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Protocols/SortableKeyPathProtocol.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Protocols/Stringifier.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Protocols/ValuePresentable.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Search/BackgroundSearcher.swift /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Search/SearchableKeyPath.swift /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/SearchAndSort.swift /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Sort/SortOrder.swift /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Sort/SortableKeyPath.swift /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Sort/Sorter.swift /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Stringifirers/Persian/PersianDateStringifier.swift /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Stringifirers/Persian/PersianDoubleStringifier.swift /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Stringifirers/Persian/PersianIntStringifier.swift /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Stringifirers/StringConvertableStringifier.swift /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/TitledKey.swift /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type\ Erasure/AnyKey.swift /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type\ Erasure/AnySearchableKey.swift /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type\ Erasure/AnySearchableTitledKey.swift /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type\ Erasure/AnySortableKey.swift /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type\ Erasure/AnySortabletTitledKey.swift /Users/admin/builder/spi-builder-workspace/Sources/SearchAndSort/Type\ Erasure/AnyTitledKey.swift -supplementary-output-file-map /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/SearchAndSort.build/Debug/SearchAndSort-t.build/Objects-normal/arm64/supplementaryOutputs-3 -target arm64-apple-macos12.0 -disable-cross-import-overlay-search -swift-module-cross-import SwiftData /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk/System/Library/Frameworks/SwiftData.framework/Modules/SwiftData.swiftcrossimport/CoreData.swiftoverlay -swift-module-cross-import SwiftData /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk/System/Library/Frameworks/SwiftData.framework/Modules/SwiftData.swiftcrossimport/SwiftUI.swiftoverlay -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libSwiftDataMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#SwiftDataMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -disable-implicit-swift-modules -Xcc -fno-implicit-modules -Xcc -fno-implicit-module-maps -explicit-swift-module-map-file /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/SearchAndSort.build/Debug/SearchAndSort-t.build/Objects-normal/arm64/SearchAndSort-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug/PackageFrameworks -F /Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftExplicitPrecompiledModules -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.build/out/SDKStatCaches.noindex/macosx27.0-26A425-80c5bbf1d171475443272936d42f90a36a22442a12e9d48fe1a705f55a1adfc4.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/SearchAndSort.build/Debug/SearchAndSort-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/SearchAndSort.build/Debug/SearchAndSort-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/SearchAndSort.build/Debug/SearchAndSort-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SearchAndSort -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/SearchAndSort.build/Debug/SearchAndSort-t.build/Objects-normal/arm64/SearchAndSort_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-macos27.0 -target-sdk-version 27.0 -target-sdk-name macosx27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/SearchAndSort.build/Debug/SearchAndSort-t.build/Objects-normal/arm64/Stringifier.o -o /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/SearchAndSort.build/Debug/SearchAndSort-t.build/Objects-normal/arm64/ValuePresentable.o -o /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/SearchAndSort.build/Debug/SearchAndSort-t.build/Objects-normal/arm64/BackgroundSearcher.o -debug-module-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/SearchAndSort.build/Debug/SearchAndSort-t.build/Objects-normal/arm64/SearchAndSort.swiftmodule -index-unit-output-path /SearchAndSort.build/Debug/SearchAndSort-t.build/Objects-normal/arm64/Stringifier.o -index-unit-output-path /SearchAndSort.build/Debug/SearchAndSort-t.build/Objects-normal/arm64/ValuePresentable.o -index-unit-output-path /SearchAndSort.build/Debug/SearchAndSort-t.build/Objects-normal/arm64/BackgroundSearcher.o -index-store-path /Users/admin/builder/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 macosSpm