Swift saving new object

I’m trying to save a new object in backendless but the server report error code ‘1000’ !!!
here is my code :
let dataStore = self.backendless.data.of(Posts.ofClass())
dataStore.save(self.newPost, response: { (result : AnyObject!) -> Void in
let newPostSaved = result as! Posts
self.loadedData[0] = newPostSaved
self.tableView.reloadData()
}, error: { (let fault : Fault!) -> Void in
print(“Server report error from create post with image : (fault)”)
})
error message returned : FAULT = ‘1000’ [Entity with the specified ID cannot be found: Id - missing id] <Entity with the specified ID cannot be found: Id - missing id>

Any suggestion please

Looks like your self.newPost contains objectId != nil, but objectId should be nil in a new saved object.

thinks for reply , but I try to print the value of objectId and it give a nil value.

Please update the following two libraries from github (click on “View Raw” to download) and it will work:

https://github.com/Backendless/ios-SDK/blob/master/SDK/lib/backendless/backendless.a
https://github.com/Backendless/ios-SDK/blob/master/SDK/lib/CommLibiOS/CommLibiOS.a

yes it work fine , thank you @Mark