CCCrypt - iOS 14 更新后表达式类型不明确,没有更多上下文

CCCrypt - Type of expression is ambiguous without more context after iOS 14 update

所以今天早上我根据系统提示将我的OS和XCode更新为iOS14

但是,我在更新后打开XCode时遇到了错误Type of expression is ambiguous without more context。我没改过代码,更新前是可以用的

这里是有问题的代码:

let ccStatus = CCCrypt(
            CCOperation(kCCEncrypt), // operation
            CCAlgorithm(kAlgorithm), // Algorithm
            CCOptions(kCCOptionPKCS7Padding), // options
            realKey?.withUnsafeBytes{[=11=].baseAddress?.assumingMemoryBound(to: UInt32.self)}, // key //realKey.length, // keylength
            kCCKeySizeAES256,
            realIV?.withUnsafeBytes{[=11=].baseAddress?.assumingMemoryBound(to: UInt32.self)}, // iv
            data?.withUnsafeBytes{[=11=].baseAddress?.assumingMemoryBound(to: UInt32.self)}, // dataIn
            (data?.count ?? 0), // dataInLength,
            cipherData.withUnsafeMutableBytes{[=11=].baseAddress?.assumingMemoryBound(to: UInt32.self)}, // dataOut
            (cipherData.count), // dataOutAvailable
            &outLength) // dataOutMoved

我已经尝试了所有我能想到的方法,比如寻找不必要的空间等等......我似乎无法弄清楚这一点。任何帮助将不胜感激。

好的,如果以后有人发现这个,对我来说是在调用 CCCrypt 之前创建值。例如代替:

let ccStatus = CCCrypt(CCOperation(kCCEncrypt),...)

我现在做:

let operation = CCOperation(kCCEncrypt)
//other values needed

let ccStatus = CCCrypt(operation,...)