gpt4 book ai didi

ios - 解析 (iOS) : User cannot be deleted unless they have been authenticated via logIn or signUp

转载 作者:行者123 更新时间:2023-11-28 07:11:48 25 4
gpt4 key购买 nike

只有当我使用 saveEventually (iOS 8) 并且我正在修改的对象不是 PFUser 时,我才会遇到这个错误:

var myObj = PFObject(className: "MyClass") 

myObj["val"] = 100

myObj.saveEventually()

<- 因错误而崩溃:

'NSInternalInconsistencyException', reason: 'User cannot be deleted unless they have been authenticated via logIn or signUp'
*** First throw call stack:
(
0 CoreFoundation 0x0000000107182f35 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000109510bb7 objc_exception_throw + 45
2 CoreFoundation 0x0000000107182e6d +[NSException raise:format:] + 205
3 AAA 0x0000000105a7a85c -[PFUser(Private) checkDeleteParams] + 71
4 AAA 0x0000000105a3b6e9 -[PFObject(Private) _constructDeleteCommand:sessionToken:] + 81
5 AAA 0x0000000105a45c5c -[PFPinningEventuallyQueue _commandWithIdentifier:error:] + 147
6 AAA 0x0000000105a71b7b -[PFEventuallyQueue _runCommandsWithRetriesCount:] + 951
7 libdispatch.dylib 0x0000000109cb57f4 _dispatch_client_callout + 8
8 libdispatch.dylib 0x0000000109cac09a _dispatch_source_latch_and_call + 852
9 libdispatch.dylib 0x0000000109ca46d2 _dispatch_source_invoke + 412
10 libdispatch.dylib 0x0000000109c9d9ae _dispatch_queue_drain + 1045
11 libdispatch.dylib 0x0000000109c9d432 _dispatch_queue_invoke + 235
12 libdispatch.dylib 0x0000000109c9ffc1 _dispatch_root_queue_drain + 685
13 libdispatch.dylib 0x0000000109ca15d9 _dispatch_worker_thread3 + 111
14 libsystem_pthread.dylib 0x000000010a039637 _pthread_wqthread + 729
15 libsystem_pthread.dylib 0x000000010a03740d start_wqthread + 13
)
libc++abi.dylib: terminating with uncaught exception of type NSException

如果我正在使用,则相同:

myObj.saveEventually{(success: Bool!, error: NSError!) -> Void in

错误不是 nil 也不是什么,saveEventually 只是崩溃。

但如果我只使用 saveInBackgroundWithBlock 或 save() 就可以正常工作......

有什么想法吗?

我完全确定昨天在工作,我对我项目中的几乎所有内容都使用了 saveEventually,但是这个错误对我来说没有意义,因为我没有修改 PFUser。使用最后一个 SDK。

提前致谢!

最佳答案

好的...解决方案非常简单:

在模拟器中:重置内容和设置在 XCode 中:Product -> Clean && Build关闭 Xcode

rm -rf ~/library/Developer/Xcode/DerivedData/

打开 XCode

这个错误肯定看起来像一个错误或类似的东西,但可能是一些缓存或......无论什么......在某处。

希望对你有帮助

干杯

关于ios - 解析 (iOS) : User cannot be deleted unless they have been authenticated via logIn or signUp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28181709/

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