Shaideru

All things iOS & Swift

‘Tried to save an object with a new, unsaved child.’ swift parse

Have you encountered this problem using swift? I did, and I went mental for days, I posted questions on forums, parse google group, and stackoverflow. Luckily after 3 days, someone replied to my question in stackoverflow, finally a relief.  I’ll provide a solution for you.

If you are trying to present a view after logging in, where the next view you presented has a query in it, this will trigger the error.

I honestly think this is a small flaw from Parse’s side. Anyway, here’s what got mine fixed.

Seems, like you have to save first before running a query. Just make sure the currentUser is saved first by checking objectID.

Leave A Comment

Your email address will not be published.