Build Information
Failed to build MongoDBPredicateAdaptor with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tjboneman/NSPredicate-MongoDB-Adaptor.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/tjboneman/NSPredicate-MongoDB-Adaptor
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at fce0cd0 feat: NSComparisonPredicate.keyPathConstantTuple is now public
Cloned https://github.com/tjboneman/NSPredicate-MongoDB-Adaptor.git
Revision (git rev-parse @):
fce0cd01913bd4393db0c3dd33404cb7e9ebec88
SUCCESS checkout https://github.com/tjboneman/NSPredicate-MongoDB-Adaptor.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/tjboneman/NSPredicate-MongoDB-Adaptor.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/4] 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.
extension NSComparisonPredicate {
^
/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.
private func transform(comparisonPredicate predicate: NSComparisonPredicate) -> [String : Any]? {
^
/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.
private func replacementPredicate(forComparisonPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
^
/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.
private func replacementPredicate(forBeginsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
^
/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.
private func replacementPredicate(forEndsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
^
/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.
private func replacementPredicate(forContainsPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
^
/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.
private func replacementPredicate(forLikePredicate predicate: NSComparisonPredicate) -> NSPredicate? {
^
/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.
private func replacementPredicate(forComparisonPredicate predicate: NSComparisonPredicate, withRegexString regex: String) -> NSPredicate? {
^
/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.
private func replacementPredicate(forBetweenPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:288:52: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
private func ensureExpression(_ item: Any?) -> NSExpression {
^
/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.
private func transform(functionPredicate predicate: NSComparisonPredicate) -> [String : Any]? {
^
/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.
private func predicateWithJSThisToKeyPaths(inPredicate predicate: NSComparisonPredicate) -> NSComparisonPredicate {
^
/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.
private func predicateWithJSThisToKeyPaths(inPredicate predicate: NSComparisonPredicate) -> NSComparisonPredicate {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:320:40: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
private func transform(expression: NSExpression, modifyingOperator `operator`: inout MongoDBOperator) -> Any? {
^
/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.
private func transform(expressionsInComparisonPredicate predicate: NSComparisonPredicate, operator: inout MongoDBOperator) -> [String : Any]? {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:361:81: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
private func ensureKeyPathExpressionsContainJSThis(inExpression expression: NSExpression) -> NSExpression {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:361:98: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
private func ensureKeyPathExpressionsContainJSThis(inExpression expression: NSExpression) -> NSExpression {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:438:58: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
public var keyPathConstantTuple: (keyPathExpression: NSExpression, constantValueExpression: NSExpression)? {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:438:97: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
public var keyPathConstantTuple: (keyPathExpression: NSExpression, constantValueExpression: NSExpression)? {
^
/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.
extension NSComparisonPredicate {
^
[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.
extension NSComparisonPredicate {
^
/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.
private func transform(comparisonPredicate predicate: NSComparisonPredicate) -> [String : Any]? {
^
/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.
private func replacementPredicate(forComparisonPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
^
/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.
private func replacementPredicate(forBeginsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
^
/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.
private func replacementPredicate(forEndsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
^
/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.
private func replacementPredicate(forContainsPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
^
/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.
private func replacementPredicate(forLikePredicate predicate: NSComparisonPredicate) -> NSPredicate? {
^
/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.
private func replacementPredicate(forComparisonPredicate predicate: NSComparisonPredicate, withRegexString regex: String) -> NSPredicate? {
^
/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.
private func replacementPredicate(forBetweenPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:288:52: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
private func ensureExpression(_ item: Any?) -> NSExpression {
^
/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.
private func transform(functionPredicate predicate: NSComparisonPredicate) -> [String : Any]? {
^
/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.
private func predicateWithJSThisToKeyPaths(inPredicate predicate: NSComparisonPredicate) -> NSComparisonPredicate {
^
/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.
private func predicateWithJSThisToKeyPaths(inPredicate predicate: NSComparisonPredicate) -> NSComparisonPredicate {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:320:40: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
private func transform(expression: NSExpression, modifyingOperator `operator`: inout MongoDBOperator) -> Any? {
^
/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.
private func transform(expressionsInComparisonPredicate predicate: NSComparisonPredicate, operator: inout MongoDBOperator) -> [String : Any]? {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:361:81: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
private func ensureKeyPathExpressionsContainJSThis(inExpression expression: NSExpression) -> NSExpression {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:361:98: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
private func ensureKeyPathExpressionsContainJSThis(inExpression expression: NSExpression) -> NSExpression {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:438:58: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
public var keyPathConstantTuple: (keyPathExpression: NSExpression, constantValueExpression: NSExpression)? {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:438:97: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
public var keyPathConstantTuple: (keyPathExpression: NSExpression, constantValueExpression: NSExpression)? {
^
/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.
extension NSComparisonPredicate {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:52:16: error: 'predicateOperatorType' is unavailable: NSComparisonPredicate is unavailable.
switch predicateOperatorType {
^~~~~~~~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:6:14: note: 'predicateOperatorType' has been explicitly marked unavailable here
open var predicateOperatorType: NSComparisonPredicate.Operator { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:75:16: error: 'predicateOperatorType' is unavailable: NSComparisonPredicate is unavailable.
switch predicateOperatorType {
^~~~~~~~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:6:14: note: 'predicateOperatorType' has been explicitly marked unavailable here
open var predicateOperatorType: NSComparisonPredicate.Operator { get }
^
/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.
if let predicate = self as? NSComparisonPredicate {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:137:22: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
if predicate.leftExpression.expressionType == .function ||
^~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:10:14: note: 'leftExpression' has been explicitly marked unavailable here
open var leftExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:137:37: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
if predicate.leftExpression.expressionType == .function ||
^~~~~~~~~~~~~~
Foundation.NSExpression:40:14: note: 'expressionType' has been explicitly marked unavailable here
open var expressionType: NSExpression.ExpressionType { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:138:23: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
predicate.rightExpression.expressionType == .function
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:138:39: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
predicate.rightExpression.expressionType == .function
^~~~~~~~~~~~~~
Foundation.NSExpression:40:14: note: 'expressionType' has been explicitly marked unavailable here
open var expressionType: NSExpression.ExpressionType { get }
^
/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.
let predicate = predicates.first as? NSComparisonPredicate,
^
/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
mongoDBOperator.rawValue : value.constantValue ?? NSNull()
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:159:25: error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
keyPath.keyPath : [
^~~~~~~
Foundation.NSExpression:44:14: note: 'keyPath' has been explicitly marked unavailable here
open var keyPath: String { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:161:58: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
mongoDBOperator.rawValue : value.constantValue ?? NSNull()
^~~~~~~~~~~~~
Foundation.NSExpression:42:14: note: 'constantValue' has been explicitly marked unavailable here
open var constantValue: Any { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:173:49: warning: forced cast of '[NSPredicate]' to same type has no effect
predicates: predicate.subpredicates as! [NSPredicate],
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:179:26: error: 'predicateOperatorType' is unavailable: NSComparisonPredicate is unavailable.
switch predicate.predicateOperatorType {
^~~~~~~~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:6:14: note: 'predicateOperatorType' has been explicitly marked unavailable here
open var predicateOperatorType: NSComparisonPredicate.Operator { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:196:42: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
if let constantValue = predicate.rightExpression.constantValue {
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:196:58: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
if let constantValue = predicate.rightExpression.constantValue {
^~~~~~~~~~~~~
Foundation.NSExpression:42:14: note: 'constantValue' has been explicitly marked unavailable here
open var constantValue: Any { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:196:12: error: initializer for conditional binding must have Optional type, not 'Any'
if let constantValue = predicate.rightExpression.constantValue {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:207:42: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
if let constantValue = predicate.rightExpression.constantValue {
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:207:58: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
if let constantValue = predicate.rightExpression.constantValue {
^~~~~~~~~~~~~
Foundation.NSExpression:42:14: note: 'constantValue' has been explicitly marked unavailable here
open var constantValue: Any { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:207:12: error: initializer for conditional binding must have Optional type, not 'Any'
if let constantValue = predicate.rightExpression.constantValue {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:218:42: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
if let constantValue = predicate.rightExpression.constantValue {
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:218:58: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
if let constantValue = predicate.rightExpression.constantValue {
^~~~~~~~~~~~~
Foundation.NSExpression:42:14: note: 'constantValue' has been explicitly marked unavailable here
open var constantValue: Any { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:218:12: error: initializer for conditional binding must have Optional type, not 'Any'
if let constantValue = predicate.rightExpression.constantValue {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:229:42: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
if let constantValue = predicate.rightExpression.constantValue {
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:229:58: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
if let constantValue = predicate.rightExpression.constantValue {
^~~~~~~~~~~~~
Foundation.NSExpression:42:14: note: 'constantValue' has been explicitly marked unavailable here
open var constantValue: Any { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:229:12: error: initializer for conditional binding must have Optional type, not 'Any'
if let constantValue = predicate.rightExpression.constantValue {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:240:34: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
let newRightExpression = NSExpression(forConstantValue: regex)
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:240:34: error: 'init(forConstantValue:)' is unavailable: NSExpression is not available in swift-corelibs-foundation
let newRightExpression = NSExpression(forConstantValue: regex)
^~~~~~~~~~~~
Foundation.NSExpression:10:24: note: 'init(forConstantValue:)' has been explicitly marked unavailable here
public convenience init(forConstantValue obj: Any?)
^
/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.
let newPredicate = NSComparisonPredicate(
^
/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.
let newPredicate = NSComparisonPredicate(
^~~~~~~~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:4:12: note: 'init(leftExpression:rightExpression:modifier:type:options:)' has been explicitly marked unavailable here
public init(leftExpression lhs: NSExpression, rightExpression rhs: NSExpression, modifier: NSComparisonPredicate.Modifier, type: NSComparisonPredicate.Operator, options: NSComparisonPredicate.Options)
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:242:39: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
leftExpression: predicate.leftExpression,
^~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:10:14: note: 'leftExpression' has been explicitly marked unavailable here
open var leftExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:244:33: error: 'comparisonPredicateModifier' is unavailable: NSComparisonPredicate is unavailable.
modifier: predicate.comparisonPredicateModifier,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:8:14: note: 'comparisonPredicateModifier' has been explicitly marked unavailable here
open var comparisonPredicateModifier: NSComparisonPredicate.Modifier { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:246:32: error: 'options' is unavailable: NSComparisonPredicate is unavailable.
options: predicate.options
^~~~~~~
Foundation.NSComparisonPredicate:14:14: note: 'options' has been explicitly marked unavailable here
open var options: NSComparisonPredicate.Options { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:252:41: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
let rightExpression = predicate.rightExpression
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:254:44: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
guard let bounds = rightExpression.constantValue as? [Any], bounds.count == 2 else {
^~~~~~~~~~~~~
Foundation.NSExpression:42:14: note: 'constantValue' has been explicitly marked unavailable here
open var constantValue: Any { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:265:40: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
let leftExpression = predicate.leftExpression
^~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:10:14: note: 'leftExpression' has been explicitly marked unavailable here
open var leftExpression: NSExpression { get }
^
/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.
let lowerSubPredicate = NSComparisonPredicate(
^
/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.
let lowerSubPredicate = NSComparisonPredicate(
^~~~~~~~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:4:12: note: 'init(leftExpression:rightExpression:modifier:type:options:)' has been explicitly marked unavailable here
public init(leftExpression lhs: NSExpression, rightExpression rhs: NSExpression, modifier: NSComparisonPredicate.Modifier, type: NSComparisonPredicate.Operator, options: NSComparisonPredicate.Options)
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:270:33: error: 'comparisonPredicateModifier' is unavailable: NSComparisonPredicate is unavailable.
modifier: predicate.comparisonPredicateModifier,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:8:14: note: 'comparisonPredicateModifier' has been explicitly marked unavailable here
open var comparisonPredicateModifier: NSComparisonPredicate.Modifier { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:272:32: error: 'options' is unavailable: NSComparisonPredicate is unavailable.
options: predicate.options
^~~~~~~
Foundation.NSComparisonPredicate:14:14: note: 'options' has been explicitly marked unavailable here
open var options: NSComparisonPredicate.Options { get }
^
/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.
let upperSubPredicate = NSComparisonPredicate(
^
/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.
let upperSubPredicate = NSComparisonPredicate(
^~~~~~~~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:4:12: note: 'init(leftExpression:rightExpression:modifier:type:options:)' has been explicitly marked unavailable here
public init(leftExpression lhs: NSExpression, rightExpression rhs: NSExpression, modifier: NSComparisonPredicate.Modifier, type: NSComparisonPredicate.Operator, options: NSComparisonPredicate.Options)
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:279:33: error: 'comparisonPredicateModifier' is unavailable: NSComparisonPredicate is unavailable.
modifier: predicate.comparisonPredicateModifier,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:8:14: note: 'comparisonPredicateModifier' has been explicitly marked unavailable here
open var comparisonPredicateModifier: NSComparisonPredicate.Modifier { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:281:32: error: 'options' is unavailable: NSComparisonPredicate is unavailable.
options: predicate.options
^~~~~~~
Foundation.NSComparisonPredicate:14:14: note: 'options' has been explicitly marked unavailable here
open var options: NSComparisonPredicate.Options { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:289:38: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
if let expression = item as? NSExpression {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:293:16: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
return NSExpression(forConstantValue: item)
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:293:16: error: 'init(forConstantValue:)' is unavailable: NSExpression is not available in swift-corelibs-foundation
return NSExpression(forConstantValue: item)
^~~~~~~~~~~~
Foundation.NSExpression:10:24: note: 'init(forConstantValue:)' has been explicitly marked unavailable here
public convenience init(forConstantValue obj: Any?)
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:300:47: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
result = ["$where" : "\(predicate.leftExpression) \(`operator`) \(predicate.rightExpression)"]
^~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:10:14: note: 'leftExpression' has been explicitly marked unavailable here
open var leftExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:300:89: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
result = ["$where" : "\(predicate.leftExpression) \(`operator`) \(predicate.rightExpression)"]
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:306:92: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
let leftExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.leftExpression)
^~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:10:14: note: 'leftExpression' has been explicitly marked unavailable here
open var leftExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:307:93: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
let rightExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.rightExpression)
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/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.
let newPredicate = NSComparisonPredicate(
^
/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.
let newPredicate = NSComparisonPredicate(
^~~~~~~~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:4:12: note: 'init(leftExpression:rightExpression:modifier:type:options:)' has been explicitly marked unavailable here
public init(leftExpression lhs: NSExpression, rightExpression rhs: NSExpression, modifier: NSComparisonPredicate.Modifier, type: NSComparisonPredicate.Operator, options: NSComparisonPredicate.Options)
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:311:33: error: 'comparisonPredicateModifier' is unavailable: NSComparisonPredicate is unavailable.
modifier: predicate.comparisonPredicateModifier,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:8:14: note: 'comparisonPredicateModifier' has been explicitly marked unavailable here
open var comparisonPredicateModifier: NSComparisonPredicate.Modifier { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:312:29: error: 'predicateOperatorType' is unavailable: NSComparisonPredicate is unavailable.
type: predicate.predicateOperatorType,
^~~~~~~~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:6:14: note: 'predicateOperatorType' has been explicitly marked unavailable here
open var predicateOperatorType: NSComparisonPredicate.Operator { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:313:32: error: 'options' is unavailable: NSComparisonPredicate is unavailable.
options: predicate.options
^~~~~~~
Foundation.NSComparisonPredicate:14:14: note: 'options' has been explicitly marked unavailable here
open var options: NSComparisonPredicate.Options { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:321:27: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
switch expression.expressionType {
^~~~~~~~~~~~~~
Foundation.NSExpression:40:14: note: 'expressionType' has been explicitly marked unavailable here
open var expressionType: NSExpression.ExpressionType { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:324:38: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
constant: expression.constantValue,
^~~~~~~~~~~~~
Foundation.NSExpression:42:14: note: 'constantValue' has been explicitly marked unavailable here
open var constantValue: Any { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:328:31: error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
return expression.keyPath
^~~~~~~
Foundation.NSExpression:44:14: note: 'keyPath' has been explicitly marked unavailable here
open var keyPath: String { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:336:52: error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
keyPathConstantTuple.keyPathExpression.keyPath.hasSuffix(".@count")
^~~~~~~
Foundation.NSExpression:44:14: note: 'keyPath' has been explicitly marked unavailable here
open var keyPath: String { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:338:66: error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
var keyPath = keyPathConstantTuple.keyPathExpression.keyPath
^~~~~~~
Foundation.NSExpression:44:14: note: 'keyPath' has been explicitly marked unavailable here
open var keyPath: String { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:345:90: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
let value = transform(constant: keyPathConstantTuple.constantValueExpression.constantValue, modifyingOperator: &`operator`)
^~~~~~~~~~~~~
Foundation.NSExpression:42:14: note: 'constantValue' has been explicitly marked unavailable here
open var constantValue: Any { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:349:53: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
let field = transform(expression: predicate.leftExpression, modifyingOperator: &`operator`)
^~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:10:14: note: 'leftExpression' has been explicitly marked unavailable here
open var leftExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:350:53: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
let param = transform(expression: predicate.rightExpression, modifyingOperator: &`operator`)
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:362:27: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
switch expression.expressionType {
^~~~~~~~~~~~~~
Foundation.NSExpression:40:14: note: 'expressionType' has been explicitly marked unavailable here
open var expressionType: NSExpression.ExpressionType { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:364:20: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
return NSExpression(forKeyPath: "this.\(expression.keyPath)")
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:364:20: error: 'init(forKeyPath:)' is unavailable: NSExpression is not available in swift-corelibs-foundation
return NSExpression(forKeyPath: "this.\(expression.keyPath)")
^~~~~~~~~~~~
Foundation.NSExpression:16:24: note: 'init(forKeyPath:)' has been explicitly marked unavailable here
public convenience init(forKeyPath keyPath: String)
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:364:64: error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
return NSExpression(forKeyPath: "this.\(expression.keyPath)")
^~~~~~~
Foundation.NSExpression:44:14: note: 'keyPath' has been explicitly marked unavailable here
open var keyPath: String { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:366:33: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
var newArguments = [NSExpression]()
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:367:43: error: 'arguments' is unavailable: NSExpression is not available in swift-corelibs-foundation
if let arguments = expression.arguments {
^~~~~~~~~
Foundation.NSExpression:52:14: note: 'arguments' has been explicitly marked unavailable here
open var arguments: [NSExpression]? { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:372:20: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
return NSExpression(forFunction: expression.function, arguments: newArguments)
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:372:20: error: 'init(forFunction:arguments:)' is unavailable: NSExpression is not available in swift-corelibs-foundation
return NSExpression(forFunction: expression.function, arguments: newArguments)
^~~~~~~~~~~~
Foundation.NSExpression:18:24: note: 'init(forFunction:arguments:)' has been explicitly marked unavailable here
public convenience init(forFunction name: String, arguments parameters: [Any])
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:372:57: error: 'function' is unavailable: NSExpression is not available in swift-corelibs-foundation
return NSExpression(forFunction: expression.function, arguments: newArguments)
^~~~~~~~
Foundation.NSExpression:46:14: note: 'function' has been explicitly marked unavailable here
open var function: String { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:439:16: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
switch leftExpression.expressionType {
^~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:10:14: note: 'leftExpression' has been explicitly marked unavailable here
open var leftExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:439:31: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
switch leftExpression.expressionType {
^~~~~~~~~~~~~~
Foundation.NSExpression:40:14: note: 'expressionType' has been explicitly marked unavailable here
open var expressionType: NSExpression.ExpressionType { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:441:20: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
switch rightExpression.expressionType {
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:441:36: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
switch rightExpression.expressionType {
^~~~~~~~~~~~~~
Foundation.NSExpression:40:14: note: 'expressionType' has been explicitly marked unavailable here
open var expressionType: NSExpression.ExpressionType { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:443:44: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
return (keyPathExpression: leftExpression, constantValueExpression: rightExpression)
^~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:10:14: note: 'leftExpression' has been explicitly marked unavailable here
open var leftExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:443:85: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
return (keyPathExpression: leftExpression, constantValueExpression: rightExpression)
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:448:20: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
switch rightExpression.expressionType {
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:448:36: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
switch rightExpression.expressionType {
^~~~~~~~~~~~~~
Foundation.NSExpression:40:14: note: 'expressionType' has been explicitly marked unavailable here
open var expressionType: NSExpression.ExpressionType { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:450:44: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
return (keyPathExpression: rightExpression, constantValueExpression: leftExpression)
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:450:86: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
return (keyPathExpression: rightExpression, constantValueExpression: leftExpression)
^~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:10:14: note: 'leftExpression' has been explicitly marked unavailable here
open var leftExpression: NSExpression { get }
^
error: fatalError
[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.
extension NSComparisonPredicate {
^
/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.
private func transform(comparisonPredicate predicate: NSComparisonPredicate) -> [String : Any]? {
^
/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.
private func replacementPredicate(forComparisonPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
^
/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.
private func replacementPredicate(forBeginsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
^
/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.
private func replacementPredicate(forEndsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
^
/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.
private func replacementPredicate(forContainsPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
^
/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.
private func replacementPredicate(forLikePredicate predicate: NSComparisonPredicate) -> NSPredicate? {
^
/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.
private func replacementPredicate(forComparisonPredicate predicate: NSComparisonPredicate, withRegexString regex: String) -> NSPredicate? {
^
/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.
private func replacementPredicate(forBetweenPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:288:52: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
private func ensureExpression(_ item: Any?) -> NSExpression {
^
/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.
private func transform(functionPredicate predicate: NSComparisonPredicate) -> [String : Any]? {
^
/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.
private func predicateWithJSThisToKeyPaths(inPredicate predicate: NSComparisonPredicate) -> NSComparisonPredicate {
^
/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.
private func predicateWithJSThisToKeyPaths(inPredicate predicate: NSComparisonPredicate) -> NSComparisonPredicate {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:320:40: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
private func transform(expression: NSExpression, modifyingOperator `operator`: inout MongoDBOperator) -> Any? {
^
/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.
private func transform(expressionsInComparisonPredicate predicate: NSComparisonPredicate, operator: inout MongoDBOperator) -> [String : Any]? {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:361:81: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
private func ensureKeyPathExpressionsContainJSThis(inExpression expression: NSExpression) -> NSExpression {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:361:98: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
private func ensureKeyPathExpressionsContainJSThis(inExpression expression: NSExpression) -> NSExpression {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:438:58: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
public var keyPathConstantTuple: (keyPathExpression: NSExpression, constantValueExpression: NSExpression)? {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:438:97: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
public var keyPathConstantTuple: (keyPathExpression: NSExpression, constantValueExpression: NSExpression)? {
^
/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.
extension NSComparisonPredicate {
^
[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.
extension NSComparisonPredicate {
^
/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.
private func transform(comparisonPredicate predicate: NSComparisonPredicate) -> [String : Any]? {
^
/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.
private func replacementPredicate(forComparisonPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
^
/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.
private func replacementPredicate(forBeginsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
^
/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.
private func replacementPredicate(forEndsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
^
/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.
private func replacementPredicate(forContainsPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
^
/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.
private func replacementPredicate(forLikePredicate predicate: NSComparisonPredicate) -> NSPredicate? {
^
/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.
private func replacementPredicate(forComparisonPredicate predicate: NSComparisonPredicate, withRegexString regex: String) -> NSPredicate? {
^
/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.
private func replacementPredicate(forBetweenPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:288:52: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
private func ensureExpression(_ item: Any?) -> NSExpression {
^
/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.
private func transform(functionPredicate predicate: NSComparisonPredicate) -> [String : Any]? {
^
/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.
private func predicateWithJSThisToKeyPaths(inPredicate predicate: NSComparisonPredicate) -> NSComparisonPredicate {
^
/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.
private func predicateWithJSThisToKeyPaths(inPredicate predicate: NSComparisonPredicate) -> NSComparisonPredicate {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:320:40: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
private func transform(expression: NSExpression, modifyingOperator `operator`: inout MongoDBOperator) -> Any? {
^
/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.
private func transform(expressionsInComparisonPredicate predicate: NSComparisonPredicate, operator: inout MongoDBOperator) -> [String : Any]? {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:361:81: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
private func ensureKeyPathExpressionsContainJSThis(inExpression expression: NSExpression) -> NSExpression {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:361:98: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
private func ensureKeyPathExpressionsContainJSThis(inExpression expression: NSExpression) -> NSExpression {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:438:58: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
public var keyPathConstantTuple: (keyPathExpression: NSExpression, constantValueExpression: NSExpression)? {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:438:97: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
public var keyPathConstantTuple: (keyPathExpression: NSExpression, constantValueExpression: NSExpression)? {
^
/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.
extension NSComparisonPredicate {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:52:16: error: 'predicateOperatorType' is unavailable: NSComparisonPredicate is unavailable.
switch predicateOperatorType {
^~~~~~~~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:6:14: note: 'predicateOperatorType' has been explicitly marked unavailable here
open var predicateOperatorType: NSComparisonPredicate.Operator { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:75:16: error: 'predicateOperatorType' is unavailable: NSComparisonPredicate is unavailable.
switch predicateOperatorType {
^~~~~~~~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:6:14: note: 'predicateOperatorType' has been explicitly marked unavailable here
open var predicateOperatorType: NSComparisonPredicate.Operator { get }
^
/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.
if let predicate = self as? NSComparisonPredicate {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:137:22: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
if predicate.leftExpression.expressionType == .function ||
^~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:10:14: note: 'leftExpression' has been explicitly marked unavailable here
open var leftExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:137:37: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
if predicate.leftExpression.expressionType == .function ||
^~~~~~~~~~~~~~
Foundation.NSExpression:40:14: note: 'expressionType' has been explicitly marked unavailable here
open var expressionType: NSExpression.ExpressionType { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:138:23: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
predicate.rightExpression.expressionType == .function
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:138:39: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
predicate.rightExpression.expressionType == .function
^~~~~~~~~~~~~~
Foundation.NSExpression:40:14: note: 'expressionType' has been explicitly marked unavailable here
open var expressionType: NSExpression.ExpressionType { get }
^
/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.
let predicate = predicates.first as? NSComparisonPredicate,
^
/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
mongoDBOperator.rawValue : value.constantValue ?? NSNull()
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:159:25: error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
keyPath.keyPath : [
^~~~~~~
Foundation.NSExpression:44:14: note: 'keyPath' has been explicitly marked unavailable here
open var keyPath: String { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:161:58: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
mongoDBOperator.rawValue : value.constantValue ?? NSNull()
^~~~~~~~~~~~~
Foundation.NSExpression:42:14: note: 'constantValue' has been explicitly marked unavailable here
open var constantValue: Any { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:173:49: warning: forced cast of '[NSPredicate]' to same type has no effect
predicates: predicate.subpredicates as! [NSPredicate],
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:179:26: error: 'predicateOperatorType' is unavailable: NSComparisonPredicate is unavailable.
switch predicate.predicateOperatorType {
^~~~~~~~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:6:14: note: 'predicateOperatorType' has been explicitly marked unavailable here
open var predicateOperatorType: NSComparisonPredicate.Operator { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:196:42: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
if let constantValue = predicate.rightExpression.constantValue {
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:196:58: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
if let constantValue = predicate.rightExpression.constantValue {
^~~~~~~~~~~~~
Foundation.NSExpression:42:14: note: 'constantValue' has been explicitly marked unavailable here
open var constantValue: Any { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:196:12: error: initializer for conditional binding must have Optional type, not 'Any'
if let constantValue = predicate.rightExpression.constantValue {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:207:42: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
if let constantValue = predicate.rightExpression.constantValue {
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:207:58: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
if let constantValue = predicate.rightExpression.constantValue {
^~~~~~~~~~~~~
Foundation.NSExpression:42:14: note: 'constantValue' has been explicitly marked unavailable here
open var constantValue: Any { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:207:12: error: initializer for conditional binding must have Optional type, not 'Any'
if let constantValue = predicate.rightExpression.constantValue {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:218:42: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
if let constantValue = predicate.rightExpression.constantValue {
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:218:58: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
if let constantValue = predicate.rightExpression.constantValue {
^~~~~~~~~~~~~
Foundation.NSExpression:42:14: note: 'constantValue' has been explicitly marked unavailable here
open var constantValue: Any { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:218:12: error: initializer for conditional binding must have Optional type, not 'Any'
if let constantValue = predicate.rightExpression.constantValue {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:229:42: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
if let constantValue = predicate.rightExpression.constantValue {
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:229:58: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
if let constantValue = predicate.rightExpression.constantValue {
^~~~~~~~~~~~~
Foundation.NSExpression:42:14: note: 'constantValue' has been explicitly marked unavailable here
open var constantValue: Any { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:229:12: error: initializer for conditional binding must have Optional type, not 'Any'
if let constantValue = predicate.rightExpression.constantValue {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:240:34: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
let newRightExpression = NSExpression(forConstantValue: regex)
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:240:34: error: 'init(forConstantValue:)' is unavailable: NSExpression is not available in swift-corelibs-foundation
let newRightExpression = NSExpression(forConstantValue: regex)
^~~~~~~~~~~~
Foundation.NSExpression:10:24: note: 'init(forConstantValue:)' has been explicitly marked unavailable here
public convenience init(forConstantValue obj: Any?)
^
/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.
let newPredicate = NSComparisonPredicate(
^
/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.
let newPredicate = NSComparisonPredicate(
^~~~~~~~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:4:12: note: 'init(leftExpression:rightExpression:modifier:type:options:)' has been explicitly marked unavailable here
public init(leftExpression lhs: NSExpression, rightExpression rhs: NSExpression, modifier: NSComparisonPredicate.Modifier, type: NSComparisonPredicate.Operator, options: NSComparisonPredicate.Options)
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:242:39: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
leftExpression: predicate.leftExpression,
^~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:10:14: note: 'leftExpression' has been explicitly marked unavailable here
open var leftExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:244:33: error: 'comparisonPredicateModifier' is unavailable: NSComparisonPredicate is unavailable.
modifier: predicate.comparisonPredicateModifier,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:8:14: note: 'comparisonPredicateModifier' has been explicitly marked unavailable here
open var comparisonPredicateModifier: NSComparisonPredicate.Modifier { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:246:32: error: 'options' is unavailable: NSComparisonPredicate is unavailable.
options: predicate.options
^~~~~~~
Foundation.NSComparisonPredicate:14:14: note: 'options' has been explicitly marked unavailable here
open var options: NSComparisonPredicate.Options { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:252:41: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
let rightExpression = predicate.rightExpression
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:254:44: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
guard let bounds = rightExpression.constantValue as? [Any], bounds.count == 2 else {
^~~~~~~~~~~~~
Foundation.NSExpression:42:14: note: 'constantValue' has been explicitly marked unavailable here
open var constantValue: Any { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:265:40: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
let leftExpression = predicate.leftExpression
^~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:10:14: note: 'leftExpression' has been explicitly marked unavailable here
open var leftExpression: NSExpression { get }
^
/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.
let lowerSubPredicate = NSComparisonPredicate(
^
/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.
let lowerSubPredicate = NSComparisonPredicate(
^~~~~~~~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:4:12: note: 'init(leftExpression:rightExpression:modifier:type:options:)' has been explicitly marked unavailable here
public init(leftExpression lhs: NSExpression, rightExpression rhs: NSExpression, modifier: NSComparisonPredicate.Modifier, type: NSComparisonPredicate.Operator, options: NSComparisonPredicate.Options)
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:270:33: error: 'comparisonPredicateModifier' is unavailable: NSComparisonPredicate is unavailable.
modifier: predicate.comparisonPredicateModifier,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:8:14: note: 'comparisonPredicateModifier' has been explicitly marked unavailable here
open var comparisonPredicateModifier: NSComparisonPredicate.Modifier { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:272:32: error: 'options' is unavailable: NSComparisonPredicate is unavailable.
options: predicate.options
^~~~~~~
Foundation.NSComparisonPredicate:14:14: note: 'options' has been explicitly marked unavailable here
open var options: NSComparisonPredicate.Options { get }
^
/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.
let upperSubPredicate = NSComparisonPredicate(
^
/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.
let upperSubPredicate = NSComparisonPredicate(
^~~~~~~~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:4:12: note: 'init(leftExpression:rightExpression:modifier:type:options:)' has been explicitly marked unavailable here
public init(leftExpression lhs: NSExpression, rightExpression rhs: NSExpression, modifier: NSComparisonPredicate.Modifier, type: NSComparisonPredicate.Operator, options: NSComparisonPredicate.Options)
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:279:33: error: 'comparisonPredicateModifier' is unavailable: NSComparisonPredicate is unavailable.
modifier: predicate.comparisonPredicateModifier,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:8:14: note: 'comparisonPredicateModifier' has been explicitly marked unavailable here
open var comparisonPredicateModifier: NSComparisonPredicate.Modifier { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:281:32: error: 'options' is unavailable: NSComparisonPredicate is unavailable.
options: predicate.options
^~~~~~~
Foundation.NSComparisonPredicate:14:14: note: 'options' has been explicitly marked unavailable here
open var options: NSComparisonPredicate.Options { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:289:38: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
if let expression = item as? NSExpression {
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:293:16: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
return NSExpression(forConstantValue: item)
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:293:16: error: 'init(forConstantValue:)' is unavailable: NSExpression is not available in swift-corelibs-foundation
return NSExpression(forConstantValue: item)
^~~~~~~~~~~~
Foundation.NSExpression:10:24: note: 'init(forConstantValue:)' has been explicitly marked unavailable here
public convenience init(forConstantValue obj: Any?)
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:300:47: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
result = ["$where" : "\(predicate.leftExpression) \(`operator`) \(predicate.rightExpression)"]
^~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:10:14: note: 'leftExpression' has been explicitly marked unavailable here
open var leftExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:300:89: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
result = ["$where" : "\(predicate.leftExpression) \(`operator`) \(predicate.rightExpression)"]
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:306:92: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
let leftExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.leftExpression)
^~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:10:14: note: 'leftExpression' has been explicitly marked unavailable here
open var leftExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:307:93: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
let rightExpression = ensureKeyPathExpressionsContainJSThis(inExpression: predicate.rightExpression)
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/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.
let newPredicate = NSComparisonPredicate(
^
/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.
let newPredicate = NSComparisonPredicate(
^~~~~~~~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:4:12: note: 'init(leftExpression:rightExpression:modifier:type:options:)' has been explicitly marked unavailable here
public init(leftExpression lhs: NSExpression, rightExpression rhs: NSExpression, modifier: NSComparisonPredicate.Modifier, type: NSComparisonPredicate.Operator, options: NSComparisonPredicate.Options)
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:311:33: error: 'comparisonPredicateModifier' is unavailable: NSComparisonPredicate is unavailable.
modifier: predicate.comparisonPredicateModifier,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:8:14: note: 'comparisonPredicateModifier' has been explicitly marked unavailable here
open var comparisonPredicateModifier: NSComparisonPredicate.Modifier { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:312:29: error: 'predicateOperatorType' is unavailable: NSComparisonPredicate is unavailable.
type: predicate.predicateOperatorType,
^~~~~~~~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:6:14: note: 'predicateOperatorType' has been explicitly marked unavailable here
open var predicateOperatorType: NSComparisonPredicate.Operator { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:313:32: error: 'options' is unavailable: NSComparisonPredicate is unavailable.
options: predicate.options
^~~~~~~
Foundation.NSComparisonPredicate:14:14: note: 'options' has been explicitly marked unavailable here
open var options: NSComparisonPredicate.Options { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:321:27: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
switch expression.expressionType {
^~~~~~~~~~~~~~
Foundation.NSExpression:40:14: note: 'expressionType' has been explicitly marked unavailable here
open var expressionType: NSExpression.ExpressionType { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:324:38: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
constant: expression.constantValue,
^~~~~~~~~~~~~
Foundation.NSExpression:42:14: note: 'constantValue' has been explicitly marked unavailable here
open var constantValue: Any { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:328:31: error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
return expression.keyPath
^~~~~~~
Foundation.NSExpression:44:14: note: 'keyPath' has been explicitly marked unavailable here
open var keyPath: String { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:336:52: error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
keyPathConstantTuple.keyPathExpression.keyPath.hasSuffix(".@count")
^~~~~~~
Foundation.NSExpression:44:14: note: 'keyPath' has been explicitly marked unavailable here
open var keyPath: String { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:338:66: error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
var keyPath = keyPathConstantTuple.keyPathExpression.keyPath
^~~~~~~
Foundation.NSExpression:44:14: note: 'keyPath' has been explicitly marked unavailable here
open var keyPath: String { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:345:90: error: 'constantValue' is unavailable: NSExpression is not available in swift-corelibs-foundation
let value = transform(constant: keyPathConstantTuple.constantValueExpression.constantValue, modifyingOperator: &`operator`)
^~~~~~~~~~~~~
Foundation.NSExpression:42:14: note: 'constantValue' has been explicitly marked unavailable here
open var constantValue: Any { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:349:53: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
let field = transform(expression: predicate.leftExpression, modifyingOperator: &`operator`)
^~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:10:14: note: 'leftExpression' has been explicitly marked unavailable here
open var leftExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:350:53: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
let param = transform(expression: predicate.rightExpression, modifyingOperator: &`operator`)
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:362:27: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
switch expression.expressionType {
^~~~~~~~~~~~~~
Foundation.NSExpression:40:14: note: 'expressionType' has been explicitly marked unavailable here
open var expressionType: NSExpression.ExpressionType { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:364:20: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
return NSExpression(forKeyPath: "this.\(expression.keyPath)")
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:364:20: error: 'init(forKeyPath:)' is unavailable: NSExpression is not available in swift-corelibs-foundation
return NSExpression(forKeyPath: "this.\(expression.keyPath)")
^~~~~~~~~~~~
Foundation.NSExpression:16:24: note: 'init(forKeyPath:)' has been explicitly marked unavailable here
public convenience init(forKeyPath keyPath: String)
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:364:64: error: 'keyPath' is unavailable: NSExpression is not available in swift-corelibs-foundation
return NSExpression(forKeyPath: "this.\(expression.keyPath)")
^~~~~~~
Foundation.NSExpression:44:14: note: 'keyPath' has been explicitly marked unavailable here
open var keyPath: String { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:366:33: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
var newArguments = [NSExpression]()
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:367:43: error: 'arguments' is unavailable: NSExpression is not available in swift-corelibs-foundation
if let arguments = expression.arguments {
^~~~~~~~~
Foundation.NSExpression:52:14: note: 'arguments' has been explicitly marked unavailable here
open var arguments: [NSExpression]? { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:372:20: warning: 'NSExpression' is deprecated: NSExpression is not available in swift-corelibs-foundation
return NSExpression(forFunction: expression.function, arguments: newArguments)
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:372:20: error: 'init(forFunction:arguments:)' is unavailable: NSExpression is not available in swift-corelibs-foundation
return NSExpression(forFunction: expression.function, arguments: newArguments)
^~~~~~~~~~~~
Foundation.NSExpression:18:24: note: 'init(forFunction:arguments:)' has been explicitly marked unavailable here
public convenience init(forFunction name: String, arguments parameters: [Any])
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:372:57: error: 'function' is unavailable: NSExpression is not available in swift-corelibs-foundation
return NSExpression(forFunction: expression.function, arguments: newArguments)
^~~~~~~~
Foundation.NSExpression:46:14: note: 'function' has been explicitly marked unavailable here
open var function: String { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:439:16: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
switch leftExpression.expressionType {
^~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:10:14: note: 'leftExpression' has been explicitly marked unavailable here
open var leftExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:439:31: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
switch leftExpression.expressionType {
^~~~~~~~~~~~~~
Foundation.NSExpression:40:14: note: 'expressionType' has been explicitly marked unavailable here
open var expressionType: NSExpression.ExpressionType { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:441:20: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
switch rightExpression.expressionType {
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:441:36: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
switch rightExpression.expressionType {
^~~~~~~~~~~~~~
Foundation.NSExpression:40:14: note: 'expressionType' has been explicitly marked unavailable here
open var expressionType: NSExpression.ExpressionType { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:443:44: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
return (keyPathExpression: leftExpression, constantValueExpression: rightExpression)
^~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:10:14: note: 'leftExpression' has been explicitly marked unavailable here
open var leftExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:443:85: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
return (keyPathExpression: leftExpression, constantValueExpression: rightExpression)
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:448:20: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
switch rightExpression.expressionType {
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:448:36: error: 'expressionType' is unavailable: NSExpression is not available in swift-corelibs-foundation
switch rightExpression.expressionType {
^~~~~~~~~~~~~~
Foundation.NSExpression:40:14: note: 'expressionType' has been explicitly marked unavailable here
open var expressionType: NSExpression.ExpressionType { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:450:44: error: 'rightExpression' is unavailable: NSComparisonPredicate is unavailable.
return (keyPathExpression: rightExpression, constantValueExpression: leftExpression)
^~~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:12:14: note: 'rightExpression' has been explicitly marked unavailable here
open var rightExpression: NSExpression { get }
^
/host/spi-builder-workspace/Sources/MongoDBPredicateAdaptor/MongoDBPredicateAdaptor.swift:450:86: error: 'leftExpression' is unavailable: NSComparisonPredicate is unavailable.
return (keyPathExpression: rightExpression, constantValueExpression: leftExpression)
^~~~~~~~~~~~~~
Foundation.NSComparisonPredicate:10:14: note: 'leftExpression' has been explicitly marked unavailable here
open var leftExpression: NSExpression { get }
^
error: fatalError
BUILD FAILURE 5.10 linux
Build Machine: Linux 1