0
我在刪除Swift中的Parse對象時遇到了問題。我不斷收到常見錯誤無法刪除swift中的Parse對象 - ACL問題?
[錯誤]:未找到對象。 (代碼:101,版本:1.12.0)
我做了大量的研究,這通常與ACL問題有關。但是,ACL對於嘗試刪除該對象的已驗證用戶來說看起來是正確的。
_acl": {
"*": {
"r": true
},
"H0NwsFHjgL": {
"r": true,
"w": true
}
}
我已確認該對象是我指定的那個對象,並且該用戶是我所假設並經過身份驗證的用戶。好幾天我一直在抨擊我的頭!任何幫助,將不勝感激!!!謝謝!
let query = PFQuery(className: "Place")
query.getObjectInBackgroundWithId(thisPlace.placeID!, block: {(object,error) -> Void in
if(error == nil)
{
print(object)
print(object?.ACL)
print(object?.objectId)
print(PFUser.currentUser()?.objectId)
print(PFUser.currentUser()?.authenticated)
//Error here
object?.deleteInBackground()
}
else
{
print("Post delete failed")
print(error)
}
})
作爲供參考,我正在使用PFFacebookUtils.logInInBackgroundWithReadPermissions
進行身份驗證。不知道是否重要...
而當它不適合你?當你試圖用電子郵件和密碼登錄? –