Start a new topic
Answered

KCSFileStore.deleteFile crashes app

 KCSFileStore.deleteFile crashes app when called. There is no error message. The object is successfully deleted from the backend, however.


Xcode 7.2.1

KinveyKit v. 1.40.7




Best Answer

Sam,


For KCSFileStore.deleteFile - The completion block is required (cannot be nil) and that is by design - so that the user gracefully handles error conditions as well. (Thanks for pointing, we probably need to document it better).


Thanks,

Pranav

Kinvey Support


I found the reason. The completion block cannot be nil, even when you are not doing anything with it. Probably a bug.

 

Answer

Sam,


For KCSFileStore.deleteFile - The completion block is required (cannot be nil) and that is by design - so that the user gracefully handles error conditions as well. (Thanks for pointing, we probably need to document it better).


Thanks,

Pranav

Kinvey Support

Login or Signup to post a comment