保存用户记录时出错:"attempt to add owning ref to user rec"

Error when saving user record: "attempt to add owning ref to user rec"

我在用户记录中添加了对 UserSetting 记录的引用。当我尝试保存它时,出现错误:

publicDatabase.fetchRecordWithID(userRecordID, completionHandler: {userRecord, error in

 if error == nil {

        var sema = dispatch_semaphore_create(0)
        if userRecord.objectForKey("userSetting") == nil {

        userRecord.setObject(CKReference(recordID: CKRecordID(recordName: userSettingRecordName), action: .DeleteSelf), forKey:"userSetting")

        publicDatabase.saveRecord(userRecord, completionHandler: { userRecord2, error in

错误:

Error saving record <CKRecordID: 0x147597d0; _4b7ba4c20299131a41c29cf45b1493f0:(_defaultZone:__defaultOwner__)> to server: attempt to add owning ref to user rec

奇怪的是Dashboard我可以添加对用户记录的引用:

为什么?

添加对用户记录的引用不能.DeleteSelf只能.None,因为用户记录不能删除。