Build Information
Failed to build MongoDBPredicateAdaptor, reference master (fce0cd), with Swift 6.1 for Android on 27 May 2025 18:54:27 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
439 | switch leftExpression.expressionType {
440 | case .keyPath:
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:436:11: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
434 | }
435 |
436 | extension NSComparisonPredicate {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
437 |
438 | public var keyPathConstantTuple: (keyPathExpression: NSExpression, constantValueExpression: NSExpression)? {
[4/4] Compiling MongoDBPredicateAdaptor MongoDBPredicateAdaptor.swift
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:49:11: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
47 | }
48 |
49 | extension NSComparisonPredicate {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
50 |
51 | var mongoDBOperator: MongoDBOperator? {
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:135:59: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
133 | }
134 |
135 | private func transform(comparisonPredicate predicate: NSComparisonPredicate) -> [String : Any]? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
136 | var result: [String : Any]? = nil
137 | if predicate.leftExpression.expressionType == .function ||
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:178:73: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
176 | }
177 |
178 | private func replacementPredicate(forComparisonPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
179 | switch predicate.predicateOperatorType {
180 | case .between:
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:195:73: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
193 | }
194 |
195 | private func replacementPredicate(forBeginsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
196 | if let constantValue = predicate.rightExpression.constantValue {
197 | let beginsWithRegex = "^\(constantValue)"
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:206:71: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
204 | }
205 |
206 | private func replacementPredicate(forEndsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
207 | if let constantValue = predicate.rightExpression.constantValue {
208 | let endsWithRegex = ".*\(constantValue)"
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:217:71: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
215 | }
216 |
217 | private func replacementPredicate(forContainsPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
218 | if let constantValue = predicate.rightExpression.constantValue {
219 | let containsRegex = ".*\(constantValue).*"
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:228:67: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
226 | }
227 |
228 | private func replacementPredicate(forLikePredicate predicate: NSComparisonPredicate) -> NSPredicate? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
229 | if let constantValue = predicate.rightExpression.constantValue {
230 | let likeRegex = "/(\(constantValue))/"
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:239:73: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
237 | }
238 |
239 | private func replacementPredicate(forComparisonPredicate predicate: NSComparisonPredicate, withRegexString regex: String) -> NSPredicate? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
240 | let newRightExpression = NSExpression(forConstantValue: regex)
241 | let newPredicate = NSComparisonPredicate(
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:251:70: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
249 | }
250 |
251 | private func replacementPredicate(forBetweenPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
252 | let rightExpression = predicate.rightExpression
253 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:288:52: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
286 | }
287 |
288 | private func ensureExpression(_ item: Any?) -> NSExpression {
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
289 | if let expression = item as? NSExpression {
290 | return expression
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:296:57: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
294 | }
295 |
296 | private func transform(functionPredicate predicate: NSComparisonPredicate) -> [String : Any]? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
297 | var result: [String : Any]? = nil
298 | let predicate = predicateWithJSThisToKeyPaths(inPredicate: predicate)
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:305:71: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
303 | }
304 |
305 | private func predicateWithJSThisToKeyPaths(inPredicate predicate: NSComparisonPredicate) -> NSComparisonPredicate {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
306 | let leftExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.leftExpression)
307 | let rightExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.rightExpression)
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:305:97: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
303 | }
304 |
305 | private func predicateWithJSThisToKeyPaths(inPredicate predicate: NSComparisonPredicate) -> NSComparisonPredicate {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
306 | let leftExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.leftExpression)
307 | let rightExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.rightExpression)
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:320:40: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
318 | //MARK: - expression transformation
319 |
320 | private func transform(expression: NSExpression, modifyingOperator `operator`: inout MongoDBOperator) -> Any? {
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
321 | switch expression.expressionType {
322 | case .constantValue:
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:334:72: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
332 | }
333 |
334 | private func transform(expressionsInComparisonPredicate predicate: NSComparisonPredicate, operator: inout MongoDBOperator) -> [String : Any]? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
335 | if let keyPathConstantTuple = predicate.keyPathConstantTuple,
336 | keyPathConstantTuple.keyPathExpression.keyPath.hasSuffix(".@count")
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:361:81: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
359 | }
360 |
361 | private func ensureKeyPathExpressionsContainJSThis(inExpression expression: NSExpression) -> NSExpression {
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
362 | switch expression.expressionType {
363 | case .keyPath:
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:361:98: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
359 | }
360 |
361 | private func ensureKeyPathExpressionsContainJSThis(inExpression expression: NSExpression) -> NSExpression {
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
362 | switch expression.expressionType {
363 | case .keyPath:
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:438:58: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
436 | extension NSComparisonPredicate {
437 |
438 | public var keyPathConstantTuple: (keyPathExpression: NSExpression, constantValueExpression: NSExpression)? {
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
439 | switch leftExpression.expressionType {
440 | case .keyPath:
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:438:97: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
436 | extension NSComparisonPredicate {
437 |
438 | public var keyPathConstantTuple: (keyPathExpression: NSExpression, constantValueExpression: NSExpression)? {
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
439 | switch leftExpression.expressionType {
440 | case .keyPath:
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:436:11: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
434 | }
435 |
436 | extension NSComparisonPredicate {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
437 |
438 | public var keyPathConstantTuple: (keyPathExpression: NSExpression, constantValueExpression: NSExpression)? {
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:52:16: error: 'predicateOperatorType' is unavailable: NSComparisonPredicate is unavailable.
50 |
51 | var mongoDBOperator: MongoDBOperator? {
52 | switch predicateOperatorType {
| `- error: 'predicateOperatorType' is unavailable: NSComparisonPredicate is unavailable.
53 | case .lessThan:
54 | return .lessThan
Foundation.NSComparisonPredicate.predicateOperatorType:3:12: note: 'predicateOperatorType' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var predicateOperatorType: NSComparisonPredicate.Operator { get }}
| `- note: 'predicateOperatorType' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:75:16: error: 'predicateOperatorType' is unavailable: NSComparisonPredicate is unavailable.
73 |
74 | var mongoDBJavaScriptOperator: MongoDBJavaScriptOperator? {
75 | switch predicateOperatorType {
| `- error: 'predicateOperatorType' is unavailable: NSComparisonPredicate is unavailable.
76 | case .lessThan:
77 | return .lessThan
Foundation.NSComparisonPredicate.predicateOperatorType:3:12: note: 'predicateOperatorType' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var predicateOperatorType: NSComparisonPredicate.Operator { get }}
| `- note: 'predicateOperatorType' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:116:37: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
114 | public func mongoDBQuery(optimize: Bool = true) -> [String : Any]? {
115 | var result: [String : Any]? = nil
116 | if let predicate = self as? NSComparisonPredicate {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
117 | result = transform(comparisonPredicate: predicate)
118 | } else if let predicate = self as? NSCompoundPredicate {
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:137:22: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
135 | private func transform(comparisonPredicate predicate: NSComparisonPredicate) -> [String : Any]? {
136 | var result: [String : Any]? = nil
137 | if predicate.leftExpression.expressionType == .function ||
| `- error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
138 | predicate.rightExpression.expressionType == .function
139 | {
Foundation.NSComparisonPredicate.leftExpression:3:12: note: 'leftExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var leftExpression: NSExpression { get }}
| `- note: 'leftExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:137:37: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
135 | private func transform(comparisonPredicate predicate: NSComparisonPredicate) -> [String : Any]? {
136 | var result: [String : Any]? = nil
137 | if predicate.leftExpression.expressionType == .function ||
| `- error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
138 | predicate.rightExpression.expressionType == .function
139 | {
Foundation.NSExpression.expressionType:3:12: note: 'expressionType' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var expressionType: NSExpression.ExpressionType { get }}
| `- note: 'expressionType' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:138:23: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
136 | var result: [String : Any]? = nil
137 | if predicate.leftExpression.expressionType == .function ||
138 | predicate.rightExpression.expressionType == .function
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
139 | {
140 | result = transform(functionPredicate: predicate)
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:138:39: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
136 | var result: [String : Any]? = nil
137 | if predicate.leftExpression.expressionType == .function ||
138 | predicate.rightExpression.expressionType == .function
| `- error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
139 | {
140 | result = transform(functionPredicate: predicate)
Foundation.NSExpression.expressionType:3:12: note: 'expressionType' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var expressionType: NSExpression.ExpressionType { get }}
| `- note: 'expressionType' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:154:50: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
152 | if predicates.count == 1,
153 | `operator` == .not,
154 | let predicate = predicates.first as? NSComparisonPredicate,
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
155 | let mongoDBOperator = predicate.mongoDBOperator,
156 | let (keyPath, value) = predicate.keyPathConstantTuple
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:161:72: warning: left side of nil coalescing operator '??' has non-optional type 'Any', so the right side is never used
159 | keyPath.keyPath : [
160 | `operator`.rawValue : [
161 | mongoDBOperator.rawValue : value.constantValue ?? NSNull()
| `- warning: left side of nil coalescing operator '??' has non-optional type 'Any', so the right side is never used
162 | ]
163 | ]
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:159:25: error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
157 | {
158 | return [
159 | keyPath.keyPath : [
| `- error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
160 | `operator`.rawValue : [
161 | mongoDBOperator.rawValue : value.constantValue ?? NSNull()
Foundation.NSExpression.keyPath:3:12: note: 'keyPath' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var keyPath: String { get }}
| `- note: 'keyPath' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:161:58: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
159 | keyPath.keyPath : [
160 | `operator`.rawValue : [
161 | mongoDBOperator.rawValue : value.constantValue ?? NSNull()
| `- error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
162 | ]
163 | ]
Foundation.NSExpression.constantValue:3:12: note: 'constantValue' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var constantValue: Any { get }}
| `- note: 'constantValue' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:173:49: warning: forced cast of '[NSPredicate]' to same type has no effect
171 | private func transform(compoundPredicate predicate: NSCompoundPredicate) -> [String : Any]? {
172 | return transform(
173 | predicates: predicate.subpredicates as! [NSPredicate],
| `- warning: forced cast of '[NSPredicate]' to same type has no effect
174 | operator: predicate.mongoDBOperator
175 | )
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:179:26: error: 'predicateOperatorType' is unavailable: NSComparisonPredicate is unavailable.
177 |
178 | private func replacementPredicate(forComparisonPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
179 | switch predicate.predicateOperatorType {
| `- error: 'predicateOperatorType' is unavailable: NSComparisonPredicate is unavailable.
180 | case .between:
181 | return replacementPredicate(forBetweenPredicate: predicate)
Foundation.NSComparisonPredicate.predicateOperatorType:3:12: note: 'predicateOperatorType' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var predicateOperatorType: NSComparisonPredicate.Operator { get }}
| `- note: 'predicateOperatorType' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:196:42: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
194 |
195 | private func replacementPredicate(forBeginsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
196 | if let constantValue = predicate.rightExpression.constantValue {
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
197 | let beginsWithRegex = "^\(constantValue)"
198 | return replacementPredicate(
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:196:58: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
194 |
195 | private func replacementPredicate(forBeginsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
196 | if let constantValue = predicate.rightExpression.constantValue {
| `- error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
197 | let beginsWithRegex = "^\(constantValue)"
198 | return replacementPredicate(
Foundation.NSExpression.constantValue:3:12: note: 'constantValue' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var constantValue: Any { get }}
| `- note: 'constantValue' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:196:12: error: initializer for conditional binding must have Optional type, not 'Any'
194 |
195 | private func replacementPredicate(forBeginsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
196 | if let constantValue = predicate.rightExpression.constantValue {
| `- error: initializer for conditional binding must have Optional type, not 'Any'
197 | let beginsWithRegex = "^\(constantValue)"
198 | return replacementPredicate(
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:207:42: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
205 |
206 | private func replacementPredicate(forEndsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
207 | if let constantValue = predicate.rightExpression.constantValue {
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
208 | let endsWithRegex = ".*\(constantValue)"
209 | return replacementPredicate(
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:207:58: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
205 |
206 | private func replacementPredicate(forEndsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
207 | if let constantValue = predicate.rightExpression.constantValue {
| `- error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
208 | let endsWithRegex = ".*\(constantValue)"
209 | return replacementPredicate(
Foundation.NSExpression.constantValue:3:12: note: 'constantValue' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var constantValue: Any { get }}
| `- note: 'constantValue' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:207:12: error: initializer for conditional binding must have Optional type, not 'Any'
205 |
206 | private func replacementPredicate(forEndsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
207 | if let constantValue = predicate.rightExpression.constantValue {
| `- error: initializer for conditional binding must have Optional type, not 'Any'
208 | let endsWithRegex = ".*\(constantValue)"
209 | return replacementPredicate(
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:218:42: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
216 |
217 | private func replacementPredicate(forContainsPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
218 | if let constantValue = predicate.rightExpression.constantValue {
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
219 | let containsRegex = ".*\(constantValue).*"
220 | return replacementPredicate(
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:218:58: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
216 |
217 | private func replacementPredicate(forContainsPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
218 | if let constantValue = predicate.rightExpression.constantValue {
| `- error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
219 | let containsRegex = ".*\(constantValue).*"
220 | return replacementPredicate(
Foundation.NSExpression.constantValue:3:12: note: 'constantValue' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var constantValue: Any { get }}
| `- note: 'constantValue' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:218:12: error: initializer for conditional binding must have Optional type, not 'Any'
216 |
217 | private func replacementPredicate(forContainsPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
218 | if let constantValue = predicate.rightExpression.constantValue {
| `- error: initializer for conditional binding must have Optional type, not 'Any'
219 | let containsRegex = ".*\(constantValue).*"
220 | return replacementPredicate(
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:229:42: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
227 |
228 | private func replacementPredicate(forLikePredicate predicate: NSComparisonPredicate) -> NSPredicate? {
229 | if let constantValue = predicate.rightExpression.constantValue {
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
230 | let likeRegex = "/(\(constantValue))/"
231 | return replacementPredicate(
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:229:58: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
227 |
228 | private func replacementPredicate(forLikePredicate predicate: NSComparisonPredicate) -> NSPredicate? {
229 | if let constantValue = predicate.rightExpression.constantValue {
| `- error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
230 | let likeRegex = "/(\(constantValue))/"
231 | return replacementPredicate(
Foundation.NSExpression.constantValue:3:12: note: 'constantValue' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var constantValue: Any { get }}
| `- note: 'constantValue' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:229:12: error: initializer for conditional binding must have Optional type, not 'Any'
227 |
228 | private func replacementPredicate(forLikePredicate predicate: NSComparisonPredicate) -> NSPredicate? {
229 | if let constantValue = predicate.rightExpression.constantValue {
| `- error: initializer for conditional binding must have Optional type, not 'Any'
230 | let likeRegex = "/(\(constantValue))/"
231 | return replacementPredicate(
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:240:34: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
238 |
239 | private func replacementPredicate(forComparisonPredicate predicate: NSComparisonPredicate, withRegexString regex: String) -> NSPredicate? {
240 | let newRightExpression = NSExpression(forConstantValue: regex)
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
241 | let newPredicate = NSComparisonPredicate(
242 | leftExpression: predicate.leftExpression,
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:240:34: error: 'init(forConstantValue:)' is unavailable: NSExpression is not available in swift-corelibs-foundation
238 |
239 | private func replacementPredicate(forComparisonPredicate predicate: NSComparisonPredicate, withRegexString regex: String) -> NSPredicate? {
240 | let newRightExpression = NSExpression(forConstantValue: regex)
| `- error: 'init(forConstantValue:)' is unavailable: NSExpression is not available in swift-corelibs-foundation
241 | let newPredicate = NSComparisonPredicate(
242 | leftExpression: predicate.leftExpression,
Foundation.NSExpression.init:3:22: note: 'init(forConstantValue:)' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | public convenience init(forConstantValue obj: Any?)}
| `- note: 'init(forConstantValue:)' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:241:28: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
239 | private func replacementPredicate(forComparisonPredicate predicate: NSComparisonPredicate, withRegexString regex: String) -> NSPredicate? {
240 | let newRightExpression = NSExpression(forConstantValue: regex)
241 | let newPredicate = NSComparisonPredicate(
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
242 | leftExpression: predicate.leftExpression,
243 | rightExpression: newRightExpression,
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:241:28: error: 'init(leftExpression:rightExpression:modifier:type:options:)' is unavailable: NSComparisonPredicate is unsupported in swift-corelibs-foundation. Use a closure-based NSPredicate instead if possible.
239 | private func replacementPredicate(forComparisonPredicate predicate: NSComparisonPredicate, withRegexString regex: String) -> NSPredicate? {
240 | let newRightExpression = NSExpression(forConstantValue: regex)
241 | let newPredicate = NSComparisonPredicate(
| `- error: 'init(leftExpression:rightExpression:modifier:type:options:)' is unavailable: NSComparisonPredicate is unsupported in swift-corelibs-foundation. Use a closure-based NSPredicate instead if possible.
242 | leftExpression: predicate.leftExpression,
243 | rightExpression: newRightExpression,
Foundation.NSComparisonPredicate.init:3:10: note: 'init(leftExpression:rightExpression:modifier:type:options:)' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unsupported in swift-corelibs-foundation. Use a closure-based NSPredicate instead if possible.")
3 | public init(leftExpression lhs: NSExpression, rightExpression rhs: NSExpression, modifier: NSComparisonPredicate.Modifier, type: NSComparisonPredicate.Operator, options: NSComparisonPredicate.Options)}
| `- note: 'init(leftExpression:rightExpression:modifier:type:options:)' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:242:39: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
240 | let newRightExpression = NSExpression(forConstantValue: regex)
241 | let newPredicate = NSComparisonPredicate(
242 | leftExpression: predicate.leftExpression,
| `- error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
243 | rightExpression: newRightExpression,
244 | modifier: predicate.comparisonPredicateModifier,
Foundation.NSComparisonPredicate.leftExpression:3:12: note: 'leftExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var leftExpression: NSExpression { get }}
| `- note: 'leftExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:244:33: error: 'comparisonPredicateModifier' is unavailable: NSComparisonPredicate is unavailable.
242 | leftExpression: predicate.leftExpression,
243 | rightExpression: newRightExpression,
244 | modifier: predicate.comparisonPredicateModifier,
| `- error: 'comparisonPredicateModifier' is unavailable: NSComparisonPredicate is unavailable.
245 | type: .matches,
246 | options: predicate.options
Foundation.NSComparisonPredicate.comparisonPredicateModifier:3:12: note: 'comparisonPredicateModifier' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var comparisonPredicateModifier: NSComparisonPredicate.Modifier { get }}
| `- note: 'comparisonPredicateModifier' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:246:32: error: 'options' is unavailable: NSComparisonPredicate is unavailable.
244 | modifier: predicate.comparisonPredicateModifier,
245 | type: .matches,
246 | options: predicate.options
| `- error: 'options' is unavailable: NSComparisonPredicate is unavailable.
247 | )
248 | return newPredicate
Foundation.NSComparisonPredicate.options:3:12: note: 'options' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var options: NSComparisonPredicate.Options { get }}
| `- note: 'options' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:252:41: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
250 |
251 | private func replacementPredicate(forBetweenPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
252 | let rightExpression = predicate.rightExpression
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
253 |
254 | guard let bounds = rightExpression.constantValue as? [Any], bounds.count == 2 else {
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:254:44: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
252 | let rightExpression = predicate.rightExpression
253 |
254 | guard let bounds = rightExpression.constantValue as? [Any], bounds.count == 2 else {
| `- error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
255 | return nil
256 | }
Foundation.NSExpression.constantValue:3:12: note: 'constantValue' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var constantValue: Any { get }}
| `- note: 'constantValue' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:265:40: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
263 | var subPredicates = [NSPredicate]()
264 |
265 | let leftExpression = predicate.leftExpression
| `- error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
266 |
267 | let lowerSubPredicate = NSComparisonPredicate(
Foundation.NSComparisonPredicate.leftExpression:3:12: note: 'leftExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var leftExpression: NSExpression { get }}
| `- note: 'leftExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:267:33: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
265 | let leftExpression = predicate.leftExpression
266 |
267 | let lowerSubPredicate = NSComparisonPredicate(
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
268 | leftExpression: leftExpression,
269 | rightExpression: lowerBoundExpression,
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:267:33: error: 'init(leftExpression:rightExpression:modifier:type:options:)' is unavailable: NSComparisonPredicate is unsupported in swift-corelibs-foundation. Use a closure-based NSPredicate instead if possible.
265 | let leftExpression = predicate.leftExpression
266 |
267 | let lowerSubPredicate = NSComparisonPredicate(
| `- error: 'init(leftExpression:rightExpression:modifier:type:options:)' is unavailable: NSComparisonPredicate is unsupported in swift-corelibs-foundation. Use a closure-based NSPredicate instead if possible.
268 | leftExpression: leftExpression,
269 | rightExpression: lowerBoundExpression,
Foundation.NSComparisonPredicate.init:3:10: note: 'init(leftExpression:rightExpression:modifier:type:options:)' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unsupported in swift-corelibs-foundation. Use a closure-based NSPredicate instead if possible.")
3 | public init(leftExpression lhs: NSExpression, rightExpression rhs: NSExpression, modifier: NSComparisonPredicate.Modifier, type: NSComparisonPredicate.Operator, options: NSComparisonPredicate.Options)}
| `- note: 'init(leftExpression:rightExpression:modifier:type:options:)' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:270:33: error: 'comparisonPredicateModifier' is unavailable: NSComparisonPredicate is unavailable.
268 | leftExpression: leftExpression,
269 | rightExpression: lowerBoundExpression,
270 | modifier: predicate.comparisonPredicateModifier,
| `- error: 'comparisonPredicateModifier' is unavailable: NSComparisonPredicate is unavailable.
271 | type: .greaterThanOrEqualTo,
272 | options: predicate.options
Foundation.NSComparisonPredicate.comparisonPredicateModifier:3:12: note: 'comparisonPredicateModifier' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var comparisonPredicateModifier: NSComparisonPredicate.Modifier { get }}
| `- note: 'comparisonPredicateModifier' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:272:32: error: 'options' is unavailable: NSComparisonPredicate is unavailable.
270 | modifier: predicate.comparisonPredicateModifier,
271 | type: .greaterThanOrEqualTo,
272 | options: predicate.options
| `- error: 'options' is unavailable: NSComparisonPredicate is unavailable.
273 | )
274 | subPredicates.append(lowerSubPredicate)
Foundation.NSComparisonPredicate.options:3:12: note: 'options' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var options: NSComparisonPredicate.Options { get }}
| `- note: 'options' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:276:33: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
274 | subPredicates.append(lowerSubPredicate)
275 |
276 | let upperSubPredicate = NSComparisonPredicate(
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
277 | leftExpression: leftExpression,
278 | rightExpression: upperBoundExpression,
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:276:33: error: 'init(leftExpression:rightExpression:modifier:type:options:)' is unavailable: NSComparisonPredicate is unsupported in swift-corelibs-foundation. Use a closure-based NSPredicate instead if possible.
274 | subPredicates.append(lowerSubPredicate)
275 |
276 | let upperSubPredicate = NSComparisonPredicate(
| `- error: 'init(leftExpression:rightExpression:modifier:type:options:)' is unavailable: NSComparisonPredicate is unsupported in swift-corelibs-foundation. Use a closure-based NSPredicate instead if possible.
277 | leftExpression: leftExpression,
278 | rightExpression: upperBoundExpression,
Foundation.NSComparisonPredicate.init:3:10: note: 'init(leftExpression:rightExpression:modifier:type:options:)' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unsupported in swift-corelibs-foundation. Use a closure-based NSPredicate instead if possible.")
3 | public init(leftExpression lhs: NSExpression, rightExpression rhs: NSExpression, modifier: NSComparisonPredicate.Modifier, type: NSComparisonPredicate.Operator, options: NSComparisonPredicate.Options)}
| `- note: 'init(leftExpression:rightExpression:modifier:type:options:)' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:279:33: error: 'comparisonPredicateModifier' is unavailable: NSComparisonPredicate is unavailable.
277 | leftExpression: leftExpression,
278 | rightExpression: upperBoundExpression,
279 | modifier: predicate.comparisonPredicateModifier,
| `- error: 'comparisonPredicateModifier' is unavailable: NSComparisonPredicate is unavailable.
280 | type: .lessThanOrEqualTo,
281 | options: predicate.options
Foundation.NSComparisonPredicate.comparisonPredicateModifier:3:12: note: 'comparisonPredicateModifier' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var comparisonPredicateModifier: NSComparisonPredicate.Modifier { get }}
| `- note: 'comparisonPredicateModifier' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:281:32: error: 'options' is unavailable: NSComparisonPredicate is unavailable.
279 | modifier: predicate.comparisonPredicateModifier,
280 | type: .lessThanOrEqualTo,
281 | options: predicate.options
| `- error: 'options' is unavailable: NSComparisonPredicate is unavailable.
282 | )
283 | subPredicates.append(upperSubPredicate)
Foundation.NSComparisonPredicate.options:3:12: note: 'options' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var options: NSComparisonPredicate.Options { get }}
| `- note: 'options' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:289:38: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
287 |
288 | private func ensureExpression(_ item: Any?) -> NSExpression {
289 | if let expression = item as? NSExpression {
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
290 | return expression
291 | }
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:293:16: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
291 | }
292 |
293 | return NSExpression(forConstantValue: item)
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
294 | }
295 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:293:16: error: 'init(forConstantValue:)' is unavailable: NSExpression is not available in swift-corelibs-foundation
291 | }
292 |
293 | return NSExpression(forConstantValue: item)
| `- error: 'init(forConstantValue:)' is unavailable: NSExpression is not available in swift-corelibs-foundation
294 | }
295 |
Foundation.NSExpression.init:3:22: note: 'init(forConstantValue:)' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | public convenience init(forConstantValue obj: Any?)}
| `- note: 'init(forConstantValue:)' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:300:47: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
298 | let predicate = predicateWithJSThisToKeyPaths(inPredicate: predicate)
299 | if let `operator` = predicate.mongoDBJavaScriptOperator {
300 | result = ["$where" : "\(predicate.leftExpression) \(`operator`) \(predicate.rightExpression)"]
| `- error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
301 | }
302 | return result
Foundation.NSComparisonPredicate.leftExpression:3:12: note: 'leftExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var leftExpression: NSExpression { get }}
| `- note: 'leftExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:300:89: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
298 | let predicate = predicateWithJSThisToKeyPaths(inPredicate: predicate)
299 | if let `operator` = predicate.mongoDBJavaScriptOperator {
300 | result = ["$where" : "\(predicate.leftExpression) \(`operator`) \(predicate.rightExpression)"]
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
301 | }
302 | return result
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:306:92: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
304 |
305 | private func predicateWithJSThisToKeyPaths(inPredicate predicate: NSComparisonPredicate) -> NSComparisonPredicate {
306 | let leftExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.leftExpression)
| `- error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
307 | let rightExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.rightExpression)
308 | let newPredicate = NSComparisonPredicate(
Foundation.NSComparisonPredicate.leftExpression:3:12: note: 'leftExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var leftExpression: NSExpression { get }}
| `- note: 'leftExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:307:93: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
305 | private func predicateWithJSThisToKeyPaths(inPredicate predicate: NSComparisonPredicate) -> NSComparisonPredicate {
306 | let leftExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.leftExpression)
307 | let rightExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.rightExpression)
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
308 | let newPredicate = NSComparisonPredicate(
309 | leftExpression: leftExpression,
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:308:28: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
306 | let leftExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.leftExpression)
307 | let rightExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.rightExpression)
308 | let newPredicate = NSComparisonPredicate(
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
309 | leftExpression: leftExpression,
310 | rightExpression: rightExpression,
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:308:28: error: 'init(leftExpression:rightExpression:modifier:type:options:)' is unavailable: NSComparisonPredicate is unsupported in swift-corelibs-foundation. Use a closure-based NSPredicate instead if possible.
306 | let leftExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.leftExpression)
307 | let rightExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.rightExpression)
308 | let newPredicate = NSComparisonPredicate(
| `- error: 'init(leftExpression:rightExpression:modifier:type:options:)' is unavailable: NSComparisonPredicate is unsupported in swift-corelibs-foundation. Use a closure-based NSPredicate instead if possible.
309 | leftExpression: leftExpression,
310 | rightExpression: rightExpression,
Foundation.NSComparisonPredicate.init:3:10: note: 'init(leftExpression:rightExpression:modifier:type:options:)' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unsupported in swift-corelibs-foundation. Use a closure-based NSPredicate instead if possible.")
3 | public init(leftExpression lhs: NSExpression, rightExpression rhs: NSExpression, modifier: NSComparisonPredicate.Modifier, type: NSComparisonPredicate.Operator, options: NSComparisonPredicate.Options)}
| `- note: 'init(leftExpression:rightExpression:modifier:type:options:)' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:311:33: error: 'comparisonPredicateModifier' is unavailable: NSComparisonPredicate is unavailable.
309 | leftExpression: leftExpression,
310 | rightExpression: rightExpression,
311 | modifier: predicate.comparisonPredicateModifier,
| `- error: 'comparisonPredicateModifier' is unavailable: NSComparisonPredicate is unavailable.
312 | type: predicate.predicateOperatorType,
313 | options: predicate.options
Foundation.NSComparisonPredicate.comparisonPredicateModifier:3:12: note: 'comparisonPredicateModifier' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var comparisonPredicateModifier: NSComparisonPredicate.Modifier { get }}
| `- note: 'comparisonPredicateModifier' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:312:29: error: 'predicateOperatorType' is unavailable: NSComparisonPredicate is unavailable.
310 | rightExpression: rightExpression,
311 | modifier: predicate.comparisonPredicateModifier,
312 | type: predicate.predicateOperatorType,
| `- error: 'predicateOperatorType' is unavailable: NSComparisonPredicate is unavailable.
313 | options: predicate.options
314 | )
Foundation.NSComparisonPredicate.predicateOperatorType:3:12: note: 'predicateOperatorType' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var predicateOperatorType: NSComparisonPredicate.Operator { get }}
| `- note: 'predicateOperatorType' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:313:32: error: 'options' is unavailable: NSComparisonPredicate is unavailable.
311 | modifier: predicate.comparisonPredicateModifier,
312 | type: predicate.predicateOperatorType,
313 | options: predicate.options
| `- error: 'options' is unavailable: NSComparisonPredicate is unavailable.
314 | )
315 | return newPredicate
Foundation.NSComparisonPredicate.options:3:12: note: 'options' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var options: NSComparisonPredicate.Options { get }}
| `- note: 'options' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:321:27: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
319 |
320 | private func transform(expression: NSExpression, modifyingOperator `operator`: inout MongoDBOperator) -> Any? {
321 | switch expression.expressionType {
| `- error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
322 | case .constantValue:
323 | return transform(
Foundation.NSExpression.expressionType:3:12: note: 'expressionType' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var expressionType: NSExpression.ExpressionType { get }}
| `- note: 'expressionType' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:324:38: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
322 | case .constantValue:
323 | return transform(
324 | constant: expression.constantValue,
| `- error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
325 | modifyingOperator: &`operator`
326 | )
Foundation.NSExpression.constantValue:3:12: note: 'constantValue' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var constantValue: Any { get }}
| `- note: 'constantValue' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:328:31: error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
326 | )
327 | case .keyPath:
328 | return expression.keyPath
| `- error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
329 | default:
330 | return nil
Foundation.NSExpression.keyPath:3:12: note: 'keyPath' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var keyPath: String { get }}
| `- note: 'keyPath' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:336:52: error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
334 | private func transform(expressionsInComparisonPredicate predicate: NSComparisonPredicate, operator: inout MongoDBOperator) -> [String : Any]? {
335 | if let keyPathConstantTuple = predicate.keyPathConstantTuple,
336 | keyPathConstantTuple.keyPathExpression.keyPath.hasSuffix(".@count")
| `- error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
337 | {
338 | var keyPath = keyPathConstantTuple.keyPathExpression.keyPath
Foundation.NSExpression.keyPath:3:12: note: 'keyPath' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var keyPath: String { get }}
| `- note: 'keyPath' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:338:66: error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
336 | keyPathConstantTuple.keyPathExpression.keyPath.hasSuffix(".@count")
337 | {
338 | var keyPath = keyPathConstantTuple.keyPathExpression.keyPath
| `- error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
339 | #if swift(>=4.0)
340 | let countOffset = ".@count".count
Foundation.NSExpression.keyPath:3:12: note: 'keyPath' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var keyPath: String { get }}
| `- note: 'keyPath' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:345:90: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
343 | #endif
344 | keyPath = String(keyPath[...keyPath.index(keyPath.endIndex, offsetBy: -countOffset - 1)])
345 | let value = transform(constant: keyPathConstantTuple.constantValueExpression.constantValue, modifyingOperator: &`operator`)
| `- error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
346 | return [keyPath : ["$size" : value]]
347 | }
Foundation.NSExpression.constantValue:3:12: note: 'constantValue' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var constantValue: Any { get }}
| `- note: 'constantValue' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:349:53: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
347 | }
348 |
349 | let field = transform(expression: predicate.leftExpression, modifyingOperator: &`operator`)
| `- error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
350 | let param = transform(expression: predicate.rightExpression, modifyingOperator: &`operator`)
351 |
Foundation.NSComparisonPredicate.leftExpression:3:12: note: 'leftExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var leftExpression: NSExpression { get }}
| `- note: 'leftExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:350:53: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
348 |
349 | let field = transform(expression: predicate.leftExpression, modifyingOperator: &`operator`)
350 | let param = transform(expression: predicate.rightExpression, modifyingOperator: &`operator`)
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
351 |
352 | switch `operator` {
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:362:27: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
360 |
361 | private func ensureKeyPathExpressionsContainJSThis(inExpression expression: NSExpression) -> NSExpression {
362 | switch expression.expressionType {
| `- error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
363 | case .keyPath:
364 | return NSExpression(forKeyPath: "this.\(expression.keyPath)")
Foundation.NSExpression.expressionType:3:12: note: 'expressionType' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var expressionType: NSExpression.ExpressionType { get }}
| `- note: 'expressionType' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:364:20: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
362 | switch expression.expressionType {
363 | case .keyPath:
364 | return NSExpression(forKeyPath: "this.\(expression.keyPath)")
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
365 | case .function:
366 | var newArguments = [NSExpression]()
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:364:20: error: 'init(forKeyPath:)' is unavailable: NSExpression is not available in swift-corelibs-foundation
362 | switch expression.expressionType {
363 | case .keyPath:
364 | return NSExpression(forKeyPath: "this.\(expression.keyPath)")
| `- error: 'init(forKeyPath:)' is unavailable: NSExpression is not available in swift-corelibs-foundation
365 | case .function:
366 | var newArguments = [NSExpression]()
Foundation.NSExpression.init:3:22: note: 'init(forKeyPath:)' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | public convenience init(forKeyPath keyPath: String)}
| `- note: 'init(forKeyPath:)' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:364:64: error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
362 | switch expression.expressionType {
363 | case .keyPath:
364 | return NSExpression(forKeyPath: "this.\(expression.keyPath)")
| `- error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
365 | case .function:
366 | var newArguments = [NSExpression]()
Foundation.NSExpression.keyPath:3:12: note: 'keyPath' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var keyPath: String { get }}
| `- note: 'keyPath' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:366:33: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
364 | return NSExpression(forKeyPath: "this.\(expression.keyPath)")
365 | case .function:
366 | var newArguments = [NSExpression]()
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
367 | if let arguments = expression.arguments {
368 | for argument in arguments {
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:367:43: error: 'arguments' is unavailable: NSExpression is not available in swift-corelibs-foundation
365 | case .function:
366 | var newArguments = [NSExpression]()
367 | if let arguments = expression.arguments {
| `- error: 'arguments' is unavailable: NSExpression is not available in swift-corelibs-foundation
368 | for argument in arguments {
369 | newArguments.append(ensureKeyPathExpressionsContainJSThis(inExpression: argument))
Foundation.NSExpression.arguments:3:12: note: 'arguments' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var arguments: [NSExpression]? { get }}
| `- note: 'arguments' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:372:20: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
370 | }
371 | }
372 | return NSExpression(forFunction: expression.function, arguments: newArguments)
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
373 | default:
374 | return expression
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:372:20: error: 'init(forFunction:arguments:)' is unavailable: NSExpression is not available in swift-corelibs-foundation
370 | }
371 | }
372 | return NSExpression(forFunction: expression.function, arguments: newArguments)
| `- error: 'init(forFunction:arguments:)' is unavailable: NSExpression is not available in swift-corelibs-foundation
373 | default:
374 | return expression
Foundation.NSExpression.init:3:22: note: 'init(forFunction:arguments:)' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | public convenience init(forFunction name: String, arguments parameters: [Any])}
| `- note: 'init(forFunction:arguments:)' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:372:57: error: 'function' is unavailable: NSExpression is not available in swift-corelibs-foundation
370 | }
371 | }
372 | return NSExpression(forFunction: expression.function, arguments: newArguments)
| `- error: 'function' is unavailable: NSExpression is not available in swift-corelibs-foundation
373 | default:
374 | return expression
Foundation.NSExpression.function:3:12: note: 'function' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var function: String { get }}
| `- note: 'function' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:439:16: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
437 |
438 | public var keyPathConstantTuple: (keyPathExpression: NSExpression, constantValueExpression: NSExpression)? {
439 | switch leftExpression.expressionType {
| `- error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
440 | case .keyPath:
441 | switch rightExpression.expressionType {
Foundation.NSComparisonPredicate.leftExpression:3:12: note: 'leftExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var leftExpression: NSExpression { get }}
| `- note: 'leftExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:439:31: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
437 |
438 | public var keyPathConstantTuple: (keyPathExpression: NSExpression, constantValueExpression: NSExpression)? {
439 | switch leftExpression.expressionType {
| `- error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
440 | case .keyPath:
441 | switch rightExpression.expressionType {
Foundation.NSExpression.expressionType:3:12: note: 'expressionType' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var expressionType: NSExpression.ExpressionType { get }}
| `- note: 'expressionType' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:441:20: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
439 | switch leftExpression.expressionType {
440 | case .keyPath:
441 | switch rightExpression.expressionType {
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
442 | case .constantValue:
443 | return (keyPathExpression: leftExpression, constantValueExpression: rightExpression)
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:441:36: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
439 | switch leftExpression.expressionType {
440 | case .keyPath:
441 | switch rightExpression.expressionType {
| `- error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
442 | case .constantValue:
443 | return (keyPathExpression: leftExpression, constantValueExpression: rightExpression)
Foundation.NSExpression.expressionType:3:12: note: 'expressionType' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var expressionType: NSExpression.ExpressionType { get }}
| `- note: 'expressionType' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:443:44: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
441 | switch rightExpression.expressionType {
442 | case .constantValue:
443 | return (keyPathExpression: leftExpression, constantValueExpression: rightExpression)
| `- error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
444 | default:
445 | return nil
Foundation.NSComparisonPredicate.leftExpression:3:12: note: 'leftExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var leftExpression: NSExpression { get }}
| `- note: 'leftExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:443:85: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
441 | switch rightExpression.expressionType {
442 | case .constantValue:
443 | return (keyPathExpression: leftExpression, constantValueExpression: rightExpression)
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
444 | default:
445 | return nil
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:448:20: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
446 | }
447 | case .constantValue:
448 | switch rightExpression.expressionType {
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
449 | case .keyPath:
450 | return (keyPathExpression: rightExpression, constantValueExpression: leftExpression)
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:448:36: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
446 | }
447 | case .constantValue:
448 | switch rightExpression.expressionType {
| `- error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
449 | case .keyPath:
450 | return (keyPathExpression: rightExpression, constantValueExpression: leftExpression)
Foundation.NSExpression.expressionType:3:12: note: 'expressionType' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var expressionType: NSExpression.ExpressionType { get }}
| `- note: 'expressionType' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:450:44: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
448 | switch rightExpression.expressionType {
449 | case .keyPath:
450 | return (keyPathExpression: rightExpression, constantValueExpression: leftExpression)
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
451 | default:
452 | return nil
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:450:86: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
448 | switch rightExpression.expressionType {
449 | case .keyPath:
450 | return (keyPathExpression: rightExpression, constantValueExpression: leftExpression)
| `- error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
451 | default:
452 | return nil
Foundation.NSComparisonPredicate.leftExpression:3:12: note: 'leftExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var leftExpression: NSExpression { get }}
| `- note: 'leftExpression' has been explicitly marked unavailable here
4 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/3] Emitting module MongoDBPredicateAdaptor
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:49:11: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
47 | }
48 |
49 | extension NSComparisonPredicate {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
50 |
51 | var mongoDBOperator: MongoDBOperator? {
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:135:59: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
133 | }
134 |
135 | private func transform(comparisonPredicate predicate: NSComparisonPredicate) -> [String : Any]? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
136 | var result: [String : Any]? = nil
137 | if predicate.leftExpression.expressionType == .function ||
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:178:73: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
176 | }
177 |
178 | private func replacementPredicate(forComparisonPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
179 | switch predicate.predicateOperatorType {
180 | case .between:
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:195:73: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
193 | }
194 |
195 | private func replacementPredicate(forBeginsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
196 | if let constantValue = predicate.rightExpression.constantValue {
197 | let beginsWithRegex = "^\(constantValue)"
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:206:71: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
204 | }
205 |
206 | private func replacementPredicate(forEndsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
207 | if let constantValue = predicate.rightExpression.constantValue {
208 | let endsWithRegex = ".*\(constantValue)"
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:217:71: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
215 | }
216 |
217 | private func replacementPredicate(forContainsPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
218 | if let constantValue = predicate.rightExpression.constantValue {
219 | let containsRegex = ".*\(constantValue).*"
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:228:67: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
226 | }
227 |
228 | private func replacementPredicate(forLikePredicate predicate: NSComparisonPredicate) -> NSPredicate? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
229 | if let constantValue = predicate.rightExpression.constantValue {
230 | let likeRegex = "/(\(constantValue))/"
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:239:73: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
237 | }
238 |
239 | private func replacementPredicate(forComparisonPredicate predicate: NSComparisonPredicate, withRegexString regex: String) -> NSPredicate? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
240 | let newRightExpression = NSExpression(forConstantValue: regex)
241 | let newPredicate = NSComparisonPredicate(
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:251:70: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
249 | }
250 |
251 | private func replacementPredicate(forBetweenPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
252 | let rightExpression = predicate.rightExpression
253 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:288:52: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
286 | }
287 |
288 | private func ensureExpression(_ item: Any?) -> NSExpression {
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
289 | if let expression = item as? NSExpression {
290 | return expression
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:296:57: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
294 | }
295 |
296 | private func transform(functionPredicate predicate: NSComparisonPredicate) -> [String : Any]? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
297 | var result: [String : Any]? = nil
298 | let predicate = predicateWithJSThisToKeyPaths(inPredicate: predicate)
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:305:71: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
303 | }
304 |
305 | private func predicateWithJSThisToKeyPaths(inPredicate predicate: NSComparisonPredicate) -> NSComparisonPredicate {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
306 | let leftExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.leftExpression)
307 | let rightExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.rightExpression)
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:305:97: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
303 | }
304 |
305 | private func predicateWithJSThisToKeyPaths(inPredicate predicate: NSComparisonPredicate) -> NSComparisonPredicate {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
306 | let leftExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.leftExpression)
307 | let rightExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.rightExpression)
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:320:40: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
318 | //MARK: - expression transformation
319 |
320 | private func transform(expression: NSExpression, modifyingOperator `operator`: inout MongoDBOperator) -> Any? {
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
321 | switch expression.expressionType {
322 | case .constantValue:
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:334:72: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
332 | }
333 |
334 | private func transform(expressionsInComparisonPredicate predicate: NSComparisonPredicate, operator: inout MongoDBOperator) -> [String : Any]? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
335 | if let keyPathConstantTuple = predicate.keyPathConstantTuple,
336 | keyPathConstantTuple.keyPathExpression.keyPath.hasSuffix(".@count")
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:361:81: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
359 | }
360 |
361 | private func ensureKeyPathExpressionsContainJSThis(inExpression expression: NSExpression) -> NSExpression {
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
362 | switch expression.expressionType {
363 | case .keyPath:
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:361:98: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
359 | }
360 |
361 | private func ensureKeyPathExpressionsContainJSThis(inExpression expression: NSExpression) -> NSExpression {
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
362 | switch expression.expressionType {
363 | case .keyPath:
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:438:58: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
436 | extension NSComparisonPredicate {
437 |
438 | public var keyPathConstantTuple: (keyPathExpression: NSExpression, constantValueExpression: NSExpression)? {
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
439 | switch leftExpression.expressionType {
440 | case .keyPath:
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:438:97: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
436 | extension NSComparisonPredicate {
437 |
438 | public var keyPathConstantTuple: (keyPathExpression: NSExpression, constantValueExpression: NSExpression)? {
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
439 | switch leftExpression.expressionType {
440 | case .keyPath:
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:436:11: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
434 | }
435 |
436 | extension NSComparisonPredicate {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
437 |
438 | public var keyPathConstantTuple: (keyPathExpression: NSExpression, constantValueExpression: NSExpression)? {
[3/3] Compiling MongoDBPredicateAdaptor MongoDBPredicateAdaptor.swift
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:49:11: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
47 | }
48 |
49 | extension NSComparisonPredicate {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
50 |
51 | var mongoDBOperator: MongoDBOperator? {
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:135:59: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
133 | }
134 |
135 | private func transform(comparisonPredicate predicate: NSComparisonPredicate) -> [String : Any]? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
136 | var result: [String : Any]? = nil
137 | if predicate.leftExpression.expressionType == .function ||
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:178:73: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
176 | }
177 |
178 | private func replacementPredicate(forComparisonPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
179 | switch predicate.predicateOperatorType {
180 | case .between:
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:195:73: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
193 | }
194 |
195 | private func replacementPredicate(forBeginsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
196 | if let constantValue = predicate.rightExpression.constantValue {
197 | let beginsWithRegex = "^\(constantValue)"
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:206:71: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
204 | }
205 |
206 | private func replacementPredicate(forEndsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
207 | if let constantValue = predicate.rightExpression.constantValue {
208 | let endsWithRegex = ".*\(constantValue)"
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:217:71: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
215 | }
216 |
217 | private func replacementPredicate(forContainsPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
218 | if let constantValue = predicate.rightExpression.constantValue {
219 | let containsRegex = ".*\(constantValue).*"
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:228:67: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
226 | }
227 |
228 | private func replacementPredicate(forLikePredicate predicate: NSComparisonPredicate) -> NSPredicate? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
229 | if let constantValue = predicate.rightExpression.constantValue {
230 | let likeRegex = "/(\(constantValue))/"
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:239:73: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
237 | }
238 |
239 | private func replacementPredicate(forComparisonPredicate predicate: NSComparisonPredicate, withRegexString regex: String) -> NSPredicate? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
240 | let newRightExpression = NSExpression(forConstantValue: regex)
241 | let newPredicate = NSComparisonPredicate(
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:251:70: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
249 | }
250 |
251 | private func replacementPredicate(forBetweenPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
252 | let rightExpression = predicate.rightExpression
253 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:288:52: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
286 | }
287 |
288 | private func ensureExpression(_ item: Any?) -> NSExpression {
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
289 | if let expression = item as? NSExpression {
290 | return expression
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:296:57: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
294 | }
295 |
296 | private func transform(functionPredicate predicate: NSComparisonPredicate) -> [String : Any]? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
297 | var result: [String : Any]? = nil
298 | let predicate = predicateWithJSThisToKeyPaths(inPredicate: predicate)
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:305:71: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
303 | }
304 |
305 | private func predicateWithJSThisToKeyPaths(inPredicate predicate: NSComparisonPredicate) -> NSComparisonPredicate {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
306 | let leftExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.leftExpression)
307 | let rightExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.rightExpression)
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:305:97: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
303 | }
304 |
305 | private func predicateWithJSThisToKeyPaths(inPredicate predicate: NSComparisonPredicate) -> NSComparisonPredicate {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
306 | let leftExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.leftExpression)
307 | let rightExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.rightExpression)
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:320:40: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
318 | //MARK: - expression transformation
319 |
320 | private func transform(expression: NSExpression, modifyingOperator `operator`: inout MongoDBOperator) -> Any? {
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
321 | switch expression.expressionType {
322 | case .constantValue:
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:334:72: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
332 | }
333 |
334 | private func transform(expressionsInComparisonPredicate predicate: NSComparisonPredicate, operator: inout MongoDBOperator) -> [String : Any]? {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
335 | if let keyPathConstantTuple = predicate.keyPathConstantTuple,
336 | keyPathConstantTuple.keyPathExpression.keyPath.hasSuffix(".@count")
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:361:81: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
359 | }
360 |
361 | private func ensureKeyPathExpressionsContainJSThis(inExpression expression: NSExpression) -> NSExpression {
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
362 | switch expression.expressionType {
363 | case .keyPath:
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:361:98: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
359 | }
360 |
361 | private func ensureKeyPathExpressionsContainJSThis(inExpression expression: NSExpression) -> NSExpression {
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
362 | switch expression.expressionType {
363 | case .keyPath:
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:438:58: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
436 | extension NSComparisonPredicate {
437 |
438 | public var keyPathConstantTuple: (keyPathExpression: NSExpression, constantValueExpression: NSExpression)? {
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
439 | switch leftExpression.expressionType {
440 | case .keyPath:
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:438:97: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
436 | extension NSComparisonPredicate {
437 |
438 | public var keyPathConstantTuple: (keyPathExpression: NSExpression, constantValueExpression: NSExpression)? {
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
439 | switch leftExpression.expressionType {
440 | case .keyPath:
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:436:11: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
434 | }
435 |
436 | extension NSComparisonPredicate {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
437 |
438 | public var keyPathConstantTuple: (keyPathExpression: NSExpression, constantValueExpression: NSExpression)? {
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:52:16: error: 'predicateOperatorType' is unavailable: NSComparisonPredicate is unavailable.
50 |
51 | var mongoDBOperator: MongoDBOperator? {
52 | switch predicateOperatorType {
| `- error: 'predicateOperatorType' is unavailable: NSComparisonPredicate is unavailable.
53 | case .lessThan:
54 | return .lessThan
Foundation.NSComparisonPredicate.predicateOperatorType:3:12: note: 'predicateOperatorType' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var predicateOperatorType: NSComparisonPredicate.Operator { get }}
| `- note: 'predicateOperatorType' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:75:16: error: 'predicateOperatorType' is unavailable: NSComparisonPredicate is unavailable.
73 |
74 | var mongoDBJavaScriptOperator: MongoDBJavaScriptOperator? {
75 | switch predicateOperatorType {
| `- error: 'predicateOperatorType' is unavailable: NSComparisonPredicate is unavailable.
76 | case .lessThan:
77 | return .lessThan
Foundation.NSComparisonPredicate.predicateOperatorType:3:12: note: 'predicateOperatorType' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var predicateOperatorType: NSComparisonPredicate.Operator { get }}
| `- note: 'predicateOperatorType' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:116:37: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
114 | public func mongoDBQuery(optimize: Bool = true) -> [String : Any]? {
115 | var result: [String : Any]? = nil
116 | if let predicate = self as? NSComparisonPredicate {
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
117 | result = transform(comparisonPredicate: predicate)
118 | } else if let predicate = self as? NSCompoundPredicate {
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:137:22: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
135 | private func transform(comparisonPredicate predicate: NSComparisonPredicate) -> [String : Any]? {
136 | var result: [String : Any]? = nil
137 | if predicate.leftExpression.expressionType == .function ||
| `- error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
138 | predicate.rightExpression.expressionType == .function
139 | {
Foundation.NSComparisonPredicate.leftExpression:3:12: note: 'leftExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var leftExpression: NSExpression { get }}
| `- note: 'leftExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:137:37: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
135 | private func transform(comparisonPredicate predicate: NSComparisonPredicate) -> [String : Any]? {
136 | var result: [String : Any]? = nil
137 | if predicate.leftExpression.expressionType == .function ||
| `- error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
138 | predicate.rightExpression.expressionType == .function
139 | {
Foundation.NSExpression.expressionType:3:12: note: 'expressionType' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var expressionType: NSExpression.ExpressionType { get }}
| `- note: 'expressionType' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:138:23: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
136 | var result: [String : Any]? = nil
137 | if predicate.leftExpression.expressionType == .function ||
138 | predicate.rightExpression.expressionType == .function
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
139 | {
140 | result = transform(functionPredicate: predicate)
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:138:39: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
136 | var result: [String : Any]? = nil
137 | if predicate.leftExpression.expressionType == .function ||
138 | predicate.rightExpression.expressionType == .function
| `- error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
139 | {
140 | result = transform(functionPredicate: predicate)
Foundation.NSExpression.expressionType:3:12: note: 'expressionType' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var expressionType: NSExpression.ExpressionType { get }}
| `- note: 'expressionType' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:154:50: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
152 | if predicates.count == 1,
153 | `operator` == .not,
154 | let predicate = predicates.first as? NSComparisonPredicate,
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
155 | let mongoDBOperator = predicate.mongoDBOperator,
156 | let (keyPath, value) = predicate.keyPathConstantTuple
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:161:72: warning: left side of nil coalescing operator '??' has non-optional type 'Any', so the right side is never used
159 | keyPath.keyPath : [
160 | `operator`.rawValue : [
161 | mongoDBOperator.rawValue : value.constantValue ?? NSNull()
| `- warning: left side of nil coalescing operator '??' has non-optional type 'Any', so the right side is never used
162 | ]
163 | ]
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:159:25: error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
157 | {
158 | return [
159 | keyPath.keyPath : [
| `- error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
160 | `operator`.rawValue : [
161 | mongoDBOperator.rawValue : value.constantValue ?? NSNull()
Foundation.NSExpression.keyPath:3:12: note: 'keyPath' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var keyPath: String { get }}
| `- note: 'keyPath' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:161:58: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
159 | keyPath.keyPath : [
160 | `operator`.rawValue : [
161 | mongoDBOperator.rawValue : value.constantValue ?? NSNull()
| `- error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
162 | ]
163 | ]
Foundation.NSExpression.constantValue:3:12: note: 'constantValue' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var constantValue: Any { get }}
| `- note: 'constantValue' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:173:49: warning: forced cast of '[NSPredicate]' to same type has no effect
171 | private func transform(compoundPredicate predicate: NSCompoundPredicate) -> [String : Any]? {
172 | return transform(
173 | predicates: predicate.subpredicates as! [NSPredicate],
| `- warning: forced cast of '[NSPredicate]' to same type has no effect
174 | operator: predicate.mongoDBOperator
175 | )
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:179:26: error: 'predicateOperatorType' is unavailable: NSComparisonPredicate is unavailable.
177 |
178 | private func replacementPredicate(forComparisonPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
179 | switch predicate.predicateOperatorType {
| `- error: 'predicateOperatorType' is unavailable: NSComparisonPredicate is unavailable.
180 | case .between:
181 | return replacementPredicate(forBetweenPredicate: predicate)
Foundation.NSComparisonPredicate.predicateOperatorType:3:12: note: 'predicateOperatorType' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var predicateOperatorType: NSComparisonPredicate.Operator { get }}
| `- note: 'predicateOperatorType' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:196:42: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
194 |
195 | private func replacementPredicate(forBeginsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
196 | if let constantValue = predicate.rightExpression.constantValue {
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
197 | let beginsWithRegex = "^\(constantValue)"
198 | return replacementPredicate(
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:196:58: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
194 |
195 | private func replacementPredicate(forBeginsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
196 | if let constantValue = predicate.rightExpression.constantValue {
| `- error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
197 | let beginsWithRegex = "^\(constantValue)"
198 | return replacementPredicate(
Foundation.NSExpression.constantValue:3:12: note: 'constantValue' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var constantValue: Any { get }}
| `- note: 'constantValue' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:196:12: error: initializer for conditional binding must have Optional type, not 'Any'
194 |
195 | private func replacementPredicate(forBeginsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
196 | if let constantValue = predicate.rightExpression.constantValue {
| `- error: initializer for conditional binding must have Optional type, not 'Any'
197 | let beginsWithRegex = "^\(constantValue)"
198 | return replacementPredicate(
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:207:42: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
205 |
206 | private func replacementPredicate(forEndsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
207 | if let constantValue = predicate.rightExpression.constantValue {
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
208 | let endsWithRegex = ".*\(constantValue)"
209 | return replacementPredicate(
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:207:58: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
205 |
206 | private func replacementPredicate(forEndsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
207 | if let constantValue = predicate.rightExpression.constantValue {
| `- error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
208 | let endsWithRegex = ".*\(constantValue)"
209 | return replacementPredicate(
Foundation.NSExpression.constantValue:3:12: note: 'constantValue' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var constantValue: Any { get }}
| `- note: 'constantValue' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:207:12: error: initializer for conditional binding must have Optional type, not 'Any'
205 |
206 | private func replacementPredicate(forEndsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
207 | if let constantValue = predicate.rightExpression.constantValue {
| `- error: initializer for conditional binding must have Optional type, not 'Any'
208 | let endsWithRegex = ".*\(constantValue)"
209 | return replacementPredicate(
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:218:42: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
216 |
217 | private func replacementPredicate(forContainsPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
218 | if let constantValue = predicate.rightExpression.constantValue {
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
219 | let containsRegex = ".*\(constantValue).*"
220 | return replacementPredicate(
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:218:58: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
216 |
217 | private func replacementPredicate(forContainsPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
218 | if let constantValue = predicate.rightExpression.constantValue {
| `- error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
219 | let containsRegex = ".*\(constantValue).*"
220 | return replacementPredicate(
Foundation.NSExpression.constantValue:3:12: note: 'constantValue' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var constantValue: Any { get }}
| `- note: 'constantValue' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:218:12: error: initializer for conditional binding must have Optional type, not 'Any'
216 |
217 | private func replacementPredicate(forContainsPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
218 | if let constantValue = predicate.rightExpression.constantValue {
| `- error: initializer for conditional binding must have Optional type, not 'Any'
219 | let containsRegex = ".*\(constantValue).*"
220 | return replacementPredicate(
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:229:42: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
227 |
228 | private func replacementPredicate(forLikePredicate predicate: NSComparisonPredicate) -> NSPredicate? {
229 | if let constantValue = predicate.rightExpression.constantValue {
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
230 | let likeRegex = "/(\(constantValue))/"
231 | return replacementPredicate(
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:229:58: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
227 |
228 | private func replacementPredicate(forLikePredicate predicate: NSComparisonPredicate) -> NSPredicate? {
229 | if let constantValue = predicate.rightExpression.constantValue {
| `- error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
230 | let likeRegex = "/(\(constantValue))/"
231 | return replacementPredicate(
Foundation.NSExpression.constantValue:3:12: note: 'constantValue' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var constantValue: Any { get }}
| `- note: 'constantValue' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:229:12: error: initializer for conditional binding must have Optional type, not 'Any'
227 |
228 | private func replacementPredicate(forLikePredicate predicate: NSComparisonPredicate) -> NSPredicate? {
229 | if let constantValue = predicate.rightExpression.constantValue {
| `- error: initializer for conditional binding must have Optional type, not 'Any'
230 | let likeRegex = "/(\(constantValue))/"
231 | return replacementPredicate(
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:240:34: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
238 |
239 | private func replacementPredicate(forComparisonPredicate predicate: NSComparisonPredicate, withRegexString regex: String) -> NSPredicate? {
240 | let newRightExpression = NSExpression(forConstantValue: regex)
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
241 | let newPredicate = NSComparisonPredicate(
242 | leftExpression: predicate.leftExpression,
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:240:34: error: 'init(forConstantValue:)' is unavailable: NSExpression is not available in swift-corelibs-foundation
238 |
239 | private func replacementPredicate(forComparisonPredicate predicate: NSComparisonPredicate, withRegexString regex: String) -> NSPredicate? {
240 | let newRightExpression = NSExpression(forConstantValue: regex)
| `- error: 'init(forConstantValue:)' is unavailable: NSExpression is not available in swift-corelibs-foundation
241 | let newPredicate = NSComparisonPredicate(
242 | leftExpression: predicate.leftExpression,
Foundation.NSExpression.init:3:22: note: 'init(forConstantValue:)' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | public convenience init(forConstantValue obj: Any?)}
| `- note: 'init(forConstantValue:)' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:241:28: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
239 | private func replacementPredicate(forComparisonPredicate predicate: NSComparisonPredicate, withRegexString regex: String) -> NSPredicate? {
240 | let newRightExpression = NSExpression(forConstantValue: regex)
241 | let newPredicate = NSComparisonPredicate(
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
242 | leftExpression: predicate.leftExpression,
243 | rightExpression: newRightExpression,
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:241:28: error: 'init(leftExpression:rightExpression:modifier:type:options:)' is unavailable: NSComparisonPredicate is unsupported in swift-corelibs-foundation. Use a closure-based NSPredicate instead if possible.
239 | private func replacementPredicate(forComparisonPredicate predicate: NSComparisonPredicate, withRegexString regex: String) -> NSPredicate? {
240 | let newRightExpression = NSExpression(forConstantValue: regex)
241 | let newPredicate = NSComparisonPredicate(
| `- error: 'init(leftExpression:rightExpression:modifier:type:options:)' is unavailable: NSComparisonPredicate is unsupported in swift-corelibs-foundation. Use a closure-based NSPredicate instead if possible.
242 | leftExpression: predicate.leftExpression,
243 | rightExpression: newRightExpression,
Foundation.NSComparisonPredicate.init:3:10: note: 'init(leftExpression:rightExpression:modifier:type:options:)' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unsupported in swift-corelibs-foundation. Use a closure-based NSPredicate instead if possible.")
3 | public init(leftExpression lhs: NSExpression, rightExpression rhs: NSExpression, modifier: NSComparisonPredicate.Modifier, type: NSComparisonPredicate.Operator, options: NSComparisonPredicate.Options)}
| `- note: 'init(leftExpression:rightExpression:modifier:type:options:)' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:242:39: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
240 | let newRightExpression = NSExpression(forConstantValue: regex)
241 | let newPredicate = NSComparisonPredicate(
242 | leftExpression: predicate.leftExpression,
| `- error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
243 | rightExpression: newRightExpression,
244 | modifier: predicate.comparisonPredicateModifier,
Foundation.NSComparisonPredicate.leftExpression:3:12: note: 'leftExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var leftExpression: NSExpression { get }}
| `- note: 'leftExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:244:33: error: 'comparisonPredicateModifier' is unavailable: NSComparisonPredicate is unavailable.
242 | leftExpression: predicate.leftExpression,
243 | rightExpression: newRightExpression,
244 | modifier: predicate.comparisonPredicateModifier,
| `- error: 'comparisonPredicateModifier' is unavailable: NSComparisonPredicate is unavailable.
245 | type: .matches,
246 | options: predicate.options
Foundation.NSComparisonPredicate.comparisonPredicateModifier:3:12: note: 'comparisonPredicateModifier' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var comparisonPredicateModifier: NSComparisonPredicate.Modifier { get }}
| `- note: 'comparisonPredicateModifier' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:246:32: error: 'options' is unavailable: NSComparisonPredicate is unavailable.
244 | modifier: predicate.comparisonPredicateModifier,
245 | type: .matches,
246 | options: predicate.options
| `- error: 'options' is unavailable: NSComparisonPredicate is unavailable.
247 | )
248 | return newPredicate
Foundation.NSComparisonPredicate.options:3:12: note: 'options' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var options: NSComparisonPredicate.Options { get }}
| `- note: 'options' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:252:41: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
250 |
251 | private func replacementPredicate(forBetweenPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
252 | let rightExpression = predicate.rightExpression
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
253 |
254 | guard let bounds = rightExpression.constantValue as? [Any], bounds.count == 2 else {
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:254:44: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
252 | let rightExpression = predicate.rightExpression
253 |
254 | guard let bounds = rightExpression.constantValue as? [Any], bounds.count == 2 else {
| `- error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
255 | return nil
256 | }
Foundation.NSExpression.constantValue:3:12: note: 'constantValue' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var constantValue: Any { get }}
| `- note: 'constantValue' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:265:40: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
263 | var subPredicates = [NSPredicate]()
264 |
265 | let leftExpression = predicate.leftExpression
| `- error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
266 |
267 | let lowerSubPredicate = NSComparisonPredicate(
Foundation.NSComparisonPredicate.leftExpression:3:12: note: 'leftExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var leftExpression: NSExpression { get }}
| `- note: 'leftExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:267:33: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
265 | let leftExpression = predicate.leftExpression
266 |
267 | let lowerSubPredicate = NSComparisonPredicate(
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
268 | leftExpression: leftExpression,
269 | rightExpression: lowerBoundExpression,
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:267:33: error: 'init(leftExpression:rightExpression:modifier:type:options:)' is unavailable: NSComparisonPredicate is unsupported in swift-corelibs-foundation. Use a closure-based NSPredicate instead if possible.
265 | let leftExpression = predicate.leftExpression
266 |
267 | let lowerSubPredicate = NSComparisonPredicate(
| `- error: 'init(leftExpression:rightExpression:modifier:type:options:)' is unavailable: NSComparisonPredicate is unsupported in swift-corelibs-foundation. Use a closure-based NSPredicate instead if possible.
268 | leftExpression: leftExpression,
269 | rightExpression: lowerBoundExpression,
Foundation.NSComparisonPredicate.init:3:10: note: 'init(leftExpression:rightExpression:modifier:type:options:)' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unsupported in swift-corelibs-foundation. Use a closure-based NSPredicate instead if possible.")
3 | public init(leftExpression lhs: NSExpression, rightExpression rhs: NSExpression, modifier: NSComparisonPredicate.Modifier, type: NSComparisonPredicate.Operator, options: NSComparisonPredicate.Options)}
| `- note: 'init(leftExpression:rightExpression:modifier:type:options:)' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:270:33: error: 'comparisonPredicateModifier' is unavailable: NSComparisonPredicate is unavailable.
268 | leftExpression: leftExpression,
269 | rightExpression: lowerBoundExpression,
270 | modifier: predicate.comparisonPredicateModifier,
| `- error: 'comparisonPredicateModifier' is unavailable: NSComparisonPredicate is unavailable.
271 | type: .greaterThanOrEqualTo,
272 | options: predicate.options
Foundation.NSComparisonPredicate.comparisonPredicateModifier:3:12: note: 'comparisonPredicateModifier' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var comparisonPredicateModifier: NSComparisonPredicate.Modifier { get }}
| `- note: 'comparisonPredicateModifier' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:272:32: error: 'options' is unavailable: NSComparisonPredicate is unavailable.
270 | modifier: predicate.comparisonPredicateModifier,
271 | type: .greaterThanOrEqualTo,
272 | options: predicate.options
| `- error: 'options' is unavailable: NSComparisonPredicate is unavailable.
273 | )
274 | subPredicates.append(lowerSubPredicate)
Foundation.NSComparisonPredicate.options:3:12: note: 'options' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var options: NSComparisonPredicate.Options { get }}
| `- note: 'options' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:276:33: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
274 | subPredicates.append(lowerSubPredicate)
275 |
276 | let upperSubPredicate = NSComparisonPredicate(
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
277 | leftExpression: leftExpression,
278 | rightExpression: upperBoundExpression,
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:276:33: error: 'init(leftExpression:rightExpression:modifier:type:options:)' is unavailable: NSComparisonPredicate is unsupported in swift-corelibs-foundation. Use a closure-based NSPredicate instead if possible.
274 | subPredicates.append(lowerSubPredicate)
275 |
276 | let upperSubPredicate = NSComparisonPredicate(
| `- error: 'init(leftExpression:rightExpression:modifier:type:options:)' is unavailable: NSComparisonPredicate is unsupported in swift-corelibs-foundation. Use a closure-based NSPredicate instead if possible.
277 | leftExpression: leftExpression,
278 | rightExpression: upperBoundExpression,
Foundation.NSComparisonPredicate.init:3:10: note: 'init(leftExpression:rightExpression:modifier:type:options:)' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unsupported in swift-corelibs-foundation. Use a closure-based NSPredicate instead if possible.")
3 | public init(leftExpression lhs: NSExpression, rightExpression rhs: NSExpression, modifier: NSComparisonPredicate.Modifier, type: NSComparisonPredicate.Operator, options: NSComparisonPredicate.Options)}
| `- note: 'init(leftExpression:rightExpression:modifier:type:options:)' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:279:33: error: 'comparisonPredicateModifier' is unavailable: NSComparisonPredicate is unavailable.
277 | leftExpression: leftExpression,
278 | rightExpression: upperBoundExpression,
279 | modifier: predicate.comparisonPredicateModifier,
| `- error: 'comparisonPredicateModifier' is unavailable: NSComparisonPredicate is unavailable.
280 | type: .lessThanOrEqualTo,
281 | options: predicate.options
Foundation.NSComparisonPredicate.comparisonPredicateModifier:3:12: note: 'comparisonPredicateModifier' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var comparisonPredicateModifier: NSComparisonPredicate.Modifier { get }}
| `- note: 'comparisonPredicateModifier' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:281:32: error: 'options' is unavailable: NSComparisonPredicate is unavailable.
279 | modifier: predicate.comparisonPredicateModifier,
280 | type: .lessThanOrEqualTo,
281 | options: predicate.options
| `- error: 'options' is unavailable: NSComparisonPredicate is unavailable.
282 | )
283 | subPredicates.append(upperSubPredicate)
Foundation.NSComparisonPredicate.options:3:12: note: 'options' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var options: NSComparisonPredicate.Options { get }}
| `- note: 'options' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:289:38: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
287 |
288 | private func ensureExpression(_ item: Any?) -> NSExpression {
289 | if let expression = item as? NSExpression {
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
290 | return expression
291 | }
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:293:16: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
291 | }
292 |
293 | return NSExpression(forConstantValue: item)
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
294 | }
295 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:293:16: error: 'init(forConstantValue:)' is unavailable: NSExpression is not available in swift-corelibs-foundation
291 | }
292 |
293 | return NSExpression(forConstantValue: item)
| `- error: 'init(forConstantValue:)' is unavailable: NSExpression is not available in swift-corelibs-foundation
294 | }
295 |
Foundation.NSExpression.init:3:22: note: 'init(forConstantValue:)' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | public convenience init(forConstantValue obj: Any?)}
| `- note: 'init(forConstantValue:)' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:300:47: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
298 | let predicate = predicateWithJSThisToKeyPaths(inPredicate: predicate)
299 | if let `operator` = predicate.mongoDBJavaScriptOperator {
300 | result = ["$where" : "\(predicate.leftExpression) \(`operator`) \(predicate.rightExpression)"]
| `- error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
301 | }
302 | return result
Foundation.NSComparisonPredicate.leftExpression:3:12: note: 'leftExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var leftExpression: NSExpression { get }}
| `- note: 'leftExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:300:89: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
298 | let predicate = predicateWithJSThisToKeyPaths(inPredicate: predicate)
299 | if let `operator` = predicate.mongoDBJavaScriptOperator {
300 | result = ["$where" : "\(predicate.leftExpression) \(`operator`) \(predicate.rightExpression)"]
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
301 | }
302 | return result
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:306:92: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
304 |
305 | private func predicateWithJSThisToKeyPaths(inPredicate predicate: NSComparisonPredicate) -> NSComparisonPredicate {
306 | let leftExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.leftExpression)
| `- error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
307 | let rightExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.rightExpression)
308 | let newPredicate = NSComparisonPredicate(
Foundation.NSComparisonPredicate.leftExpression:3:12: note: 'leftExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var leftExpression: NSExpression { get }}
| `- note: 'leftExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:307:93: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
305 | private func predicateWithJSThisToKeyPaths(inPredicate predicate: NSComparisonPredicate) -> NSComparisonPredicate {
306 | let leftExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.leftExpression)
307 | let rightExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.rightExpression)
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
308 | let newPredicate = NSComparisonPredicate(
309 | leftExpression: leftExpression,
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:308:28: warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
306 | let leftExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.leftExpression)
307 | let rightExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.rightExpression)
308 | let newPredicate = NSComparisonPredicate(
| `- warning: 'NSComparisonPredicate' is deprecated: NSExpression and classes that rely on its functionality are unsupported in swift-corelibs-foundation: NSComparisonPredicate is unavailable.
309 | leftExpression: leftExpression,
310 | rightExpression: rightExpression,
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:308:28: error: 'init(leftExpression:rightExpression:modifier:type:options:)' is unavailable: NSComparisonPredicate is unsupported in swift-corelibs-foundation. Use a closure-based NSPredicate instead if possible.
306 | let leftExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.leftExpression)
307 | let rightExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.rightExpression)
308 | let newPredicate = NSComparisonPredicate(
| `- error: 'init(leftExpression:rightExpression:modifier:type:options:)' is unavailable: NSComparisonPredicate is unsupported in swift-corelibs-foundation. Use a closure-based NSPredicate instead if possible.
309 | leftExpression: leftExpression,
310 | rightExpression: rightExpression,
Foundation.NSComparisonPredicate.init:3:10: note: 'init(leftExpression:rightExpression:modifier:type:options:)' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unsupported in swift-corelibs-foundation. Use a closure-based NSPredicate instead if possible.")
3 | public init(leftExpression lhs: NSExpression, rightExpression rhs: NSExpression, modifier: NSComparisonPredicate.Modifier, type: NSComparisonPredicate.Operator, options: NSComparisonPredicate.Options)}
| `- note: 'init(leftExpression:rightExpression:modifier:type:options:)' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:311:33: error: 'comparisonPredicateModifier' is unavailable: NSComparisonPredicate is unavailable.
309 | leftExpression: leftExpression,
310 | rightExpression: rightExpression,
311 | modifier: predicate.comparisonPredicateModifier,
| `- error: 'comparisonPredicateModifier' is unavailable: NSComparisonPredicate is unavailable.
312 | type: predicate.predicateOperatorType,
313 | options: predicate.options
Foundation.NSComparisonPredicate.comparisonPredicateModifier:3:12: note: 'comparisonPredicateModifier' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var comparisonPredicateModifier: NSComparisonPredicate.Modifier { get }}
| `- note: 'comparisonPredicateModifier' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:312:29: error: 'predicateOperatorType' is unavailable: NSComparisonPredicate is unavailable.
310 | rightExpression: rightExpression,
311 | modifier: predicate.comparisonPredicateModifier,
312 | type: predicate.predicateOperatorType,
| `- error: 'predicateOperatorType' is unavailable: NSComparisonPredicate is unavailable.
313 | options: predicate.options
314 | )
Foundation.NSComparisonPredicate.predicateOperatorType:3:12: note: 'predicateOperatorType' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var predicateOperatorType: NSComparisonPredicate.Operator { get }}
| `- note: 'predicateOperatorType' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:313:32: error: 'options' is unavailable: NSComparisonPredicate is unavailable.
311 | modifier: predicate.comparisonPredicateModifier,
312 | type: predicate.predicateOperatorType,
313 | options: predicate.options
| `- error: 'options' is unavailable: NSComparisonPredicate is unavailable.
314 | )
315 | return newPredicate
Foundation.NSComparisonPredicate.options:3:12: note: 'options' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var options: NSComparisonPredicate.Options { get }}
| `- note: 'options' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:321:27: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
319 |
320 | private func transform(expression: NSExpression, modifyingOperator `operator`: inout MongoDBOperator) -> Any? {
321 | switch expression.expressionType {
| `- error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
322 | case .constantValue:
323 | return transform(
Foundation.NSExpression.expressionType:3:12: note: 'expressionType' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var expressionType: NSExpression.ExpressionType { get }}
| `- note: 'expressionType' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:324:38: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
322 | case .constantValue:
323 | return transform(
324 | constant: expression.constantValue,
| `- error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
325 | modifyingOperator: &`operator`
326 | )
Foundation.NSExpression.constantValue:3:12: note: 'constantValue' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var constantValue: Any { get }}
| `- note: 'constantValue' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:328:31: error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
326 | )
327 | case .keyPath:
328 | return expression.keyPath
| `- error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
329 | default:
330 | return nil
Foundation.NSExpression.keyPath:3:12: note: 'keyPath' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var keyPath: String { get }}
| `- note: 'keyPath' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:336:52: error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
334 | private func transform(expressionsInComparisonPredicate predicate: NSComparisonPredicate, operator: inout MongoDBOperator) -> [String : Any]? {
335 | if let keyPathConstantTuple = predicate.keyPathConstantTuple,
336 | keyPathConstantTuple.keyPathExpression.keyPath.hasSuffix(".@count")
| `- error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
337 | {
338 | var keyPath = keyPathConstantTuple.keyPathExpression.keyPath
Foundation.NSExpression.keyPath:3:12: note: 'keyPath' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var keyPath: String { get }}
| `- note: 'keyPath' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:338:66: error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
336 | keyPathConstantTuple.keyPathExpression.keyPath.hasSuffix(".@count")
337 | {
338 | var keyPath = keyPathConstantTuple.keyPathExpression.keyPath
| `- error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
339 | #if swift(>=4.0)
340 | let countOffset = ".@count".count
Foundation.NSExpression.keyPath:3:12: note: 'keyPath' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var keyPath: String { get }}
| `- note: 'keyPath' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:345:90: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
343 | #endif
344 | keyPath = String(keyPath[...keyPath.index(keyPath.endIndex, offsetBy: -countOffset - 1)])
345 | let value = transform(constant: keyPathConstantTuple.constantValueExpression.constantValue, modifyingOperator: &`operator`)
| `- error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
346 | return [keyPath : ["$size" : value]]
347 | }
Foundation.NSExpression.constantValue:3:12: note: 'constantValue' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var constantValue: Any { get }}
| `- note: 'constantValue' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:349:53: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
347 | }
348 |
349 | let field = transform(expression: predicate.leftExpression, modifyingOperator: &`operator`)
| `- error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
350 | let param = transform(expression: predicate.rightExpression, modifyingOperator: &`operator`)
351 |
Foundation.NSComparisonPredicate.leftExpression:3:12: note: 'leftExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var leftExpression: NSExpression { get }}
| `- note: 'leftExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:350:53: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
348 |
349 | let field = transform(expression: predicate.leftExpression, modifyingOperator: &`operator`)
350 | let param = transform(expression: predicate.rightExpression, modifyingOperator: &`operator`)
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
351 |
352 | switch `operator` {
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:362:27: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
360 |
361 | private func ensureKeyPathExpressionsContainJSThis(inExpression expression: NSExpression) -> NSExpression {
362 | switch expression.expressionType {
| `- error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
363 | case .keyPath:
364 | return NSExpression(forKeyPath: "this.\(expression.keyPath)")
Foundation.NSExpression.expressionType:3:12: note: 'expressionType' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var expressionType: NSExpression.ExpressionType { get }}
| `- note: 'expressionType' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:364:20: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
362 | switch expression.expressionType {
363 | case .keyPath:
364 | return NSExpression(forKeyPath: "this.\(expression.keyPath)")
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
365 | case .function:
366 | var newArguments = [NSExpression]()
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:364:20: error: 'init(forKeyPath:)' is unavailable: NSExpression is not available in swift-corelibs-foundation
362 | switch expression.expressionType {
363 | case .keyPath:
364 | return NSExpression(forKeyPath: "this.\(expression.keyPath)")
| `- error: 'init(forKeyPath:)' is unavailable: NSExpression is not available in swift-corelibs-foundation
365 | case .function:
366 | var newArguments = [NSExpression]()
Foundation.NSExpression.init:3:22: note: 'init(forKeyPath:)' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | public convenience init(forKeyPath keyPath: String)}
| `- note: 'init(forKeyPath:)' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:364:64: error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
362 | switch expression.expressionType {
363 | case .keyPath:
364 | return NSExpression(forKeyPath: "this.\(expression.keyPath)")
| `- error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
365 | case .function:
366 | var newArguments = [NSExpression]()
Foundation.NSExpression.keyPath:3:12: note: 'keyPath' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var keyPath: String { get }}
| `- note: 'keyPath' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:366:33: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
364 | return NSExpression(forKeyPath: "this.\(expression.keyPath)")
365 | case .function:
366 | var newArguments = [NSExpression]()
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
367 | if let arguments = expression.arguments {
368 | for argument in arguments {
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:367:43: error: 'arguments' is unavailable: NSExpression is not available in swift-corelibs-foundation
365 | case .function:
366 | var newArguments = [NSExpression]()
367 | if let arguments = expression.arguments {
| `- error: 'arguments' is unavailable: NSExpression is not available in swift-corelibs-foundation
368 | for argument in arguments {
369 | newArguments.append(ensureKeyPathExpressionsContainJSThis(inExpression: argument))
Foundation.NSExpression.arguments:3:12: note: 'arguments' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var arguments: [NSExpression]? { get }}
| `- note: 'arguments' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:372:20: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
370 | }
371 | }
372 | return NSExpression(forFunction: expression.function, arguments: newArguments)
| `- warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
373 | default:
374 | return expression
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:372:20: error: 'init(forFunction:arguments:)' is unavailable: NSExpression is not available in swift-corelibs-foundation
370 | }
371 | }
372 | return NSExpression(forFunction: expression.function, arguments: newArguments)
| `- error: 'init(forFunction:arguments:)' is unavailable: NSExpression is not available in swift-corelibs-foundation
373 | default:
374 | return expression
Foundation.NSExpression.init:3:22: note: 'init(forFunction:arguments:)' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | public convenience init(forFunction name: String, arguments parameters: [Any])}
| `- note: 'init(forFunction:arguments:)' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:372:57: error: 'function' is unavailable: NSExpression is not available in swift-corelibs-foundation
370 | }
371 | }
372 | return NSExpression(forFunction: expression.function, arguments: newArguments)
| `- error: 'function' is unavailable: NSExpression is not available in swift-corelibs-foundation
373 | default:
374 | return expression
Foundation.NSExpression.function:3:12: note: 'function' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var function: String { get }}
| `- note: 'function' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:439:16: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
437 |
438 | public var keyPathConstantTuple: (keyPathExpression: NSExpression, constantValueExpression: NSExpression)? {
439 | switch leftExpression.expressionType {
| `- error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
440 | case .keyPath:
441 | switch rightExpression.expressionType {
Foundation.NSComparisonPredicate.leftExpression:3:12: note: 'leftExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var leftExpression: NSExpression { get }}
| `- note: 'leftExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:439:31: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
437 |
438 | public var keyPathConstantTuple: (keyPathExpression: NSExpression, constantValueExpression: NSExpression)? {
439 | switch leftExpression.expressionType {
| `- error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
440 | case .keyPath:
441 | switch rightExpression.expressionType {
Foundation.NSExpression.expressionType:3:12: note: 'expressionType' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var expressionType: NSExpression.ExpressionType { get }}
| `- note: 'expressionType' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:441:20: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
439 | switch leftExpression.expressionType {
440 | case .keyPath:
441 | switch rightExpression.expressionType {
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
442 | case .constantValue:
443 | return (keyPathExpression: leftExpression, constantValueExpression: rightExpression)
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:441:36: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
439 | switch leftExpression.expressionType {
440 | case .keyPath:
441 | switch rightExpression.expressionType {
| `- error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
442 | case .constantValue:
443 | return (keyPathExpression: leftExpression, constantValueExpression: rightExpression)
Foundation.NSExpression.expressionType:3:12: note: 'expressionType' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var expressionType: NSExpression.ExpressionType { get }}
| `- note: 'expressionType' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:443:44: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
441 | switch rightExpression.expressionType {
442 | case .constantValue:
443 | return (keyPathExpression: leftExpression, constantValueExpression: rightExpression)
| `- error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
444 | default:
445 | return nil
Foundation.NSComparisonPredicate.leftExpression:3:12: note: 'leftExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var leftExpression: NSExpression { get }}
| `- note: 'leftExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:443:85: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
441 | switch rightExpression.expressionType {
442 | case .constantValue:
443 | return (keyPathExpression: leftExpression, constantValueExpression: rightExpression)
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
444 | default:
445 | return nil
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:448:20: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
446 | }
447 | case .constantValue:
448 | switch rightExpression.expressionType {
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
449 | case .keyPath:
450 | return (keyPathExpression: rightExpression, constantValueExpression: leftExpression)
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:448:36: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
446 | }
447 | case .constantValue:
448 | switch rightExpression.expressionType {
| `- error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
449 | case .keyPath:
450 | return (keyPathExpression: rightExpression, constantValueExpression: leftExpression)
Foundation.NSExpression.expressionType:3:12: note: 'expressionType' has been explicitly marked unavailable here
1 | class NSExpression {
2 | @available(*, unavailable, message: "NSExpression is not available in swift-corelibs-foundation")
3 | open var expressionType: NSExpression.ExpressionType { get }}
| `- note: 'expressionType' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:450:44: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
448 | switch rightExpression.expressionType {
449 | case .keyPath:
450 | return (keyPathExpression: rightExpression, constantValueExpression: leftExpression)
| `- error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
451 | default:
452 | return nil
Foundation.NSComparisonPredicate.rightExpression:3:12: note: 'rightExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var rightExpression: NSExpression { get }}
| `- note: 'rightExpression' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:450:86: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
448 | switch rightExpression.expressionType {
449 | case .keyPath:
450 | return (keyPathExpression: rightExpression, constantValueExpression: leftExpression)
| `- error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
451 | default:
452 | return nil
Foundation.NSComparisonPredicate.leftExpression:3:12: note: 'leftExpression' has been explicitly marked unavailable here
1 | class NSComparisonPredicate {
2 | @available(*, unavailable, message: "NSComparisonPredicate is unavailable.")
3 | open var leftExpression: NSExpression { get }}
| `- note: 'leftExpression' has been explicitly marked unavailable here
4 |
BUILD FAILURE 6.1 android