gpt4 book ai didi

ios - 核心数据错误 : Unsupported expression type (11, SIZE)

转载 作者:搜寻专家 更新时间:2023-10-31 22:14:07 25 4
gpt4 key购买 nike

当我尝试创建以下 NSPredicate 时发生错误:

let predicate = NSPredicate(format: "size = nil")

错误如下:

Unsupported expression type (11, SIZE)

最佳答案

这是因为 size 是 Core Data 中的保留字。这可以像这样修复:

let predicate = NSPredicate(format: "#size = nil")

关于ios - 核心数据错误 : Unsupported expression type (11, SIZE),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35312426/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com