不知道Swift.String
和String
之间的区别。左边是我从CNContact
获得的联系人标识符,应该是String
,右边是我传入的String
值。
还会得到一些类似的错误Binary operator '==' cannot be applied to operands of type 'Swift.Int64' and 'Int64'
,当左边是Core Data
中的Int64时,右边是我传入的Int64
值。
代码如下
for sharedId in ids where sharedURI.contentId == sharedId
for syncItemId: Int64 in ids where contentView.syncItemId == syncItemId