Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在最近更新的 Xcode (13) 中查看此错误:
苹果搞砸了什么?我该如何解决?我可以看到当我开始输入 SortOrder 时,它显示了一个协议和一个枚举。
由于SortOrder枚举和协议冲突,编译器对于您要使用哪个是模棱两可的。
SortOrder
因为SortOrder枚举是Foundation框架的一部分,您可以执行以下操作来显式使用它:
Foundation
Foundation.SortOrder
示例用法:
Foundation.SortOrder.forward
或者在您的情况下,您需要SortOrder来自CouchbaseLiteSwift:
CouchbaseLiteSwift
CouchbaseLiteSwift.SortOrder