I for the life of me cannot figure out what’s triggering this error. I have a button that saves a usersProfile
var tempProfile = usersProfile
tempProfile?.description = aboutText
tempProfile?.smokes = smoking
tempProfile?.ethnicityCode = ethnicity
tempProfile?.save { result in
switch result {
case .success(let profile):
usersProfile = profile
showQualifyingQuestions.toggle()
case .failure(let error):
print(error.message)
}
}
}
sometimes Ill get that error message, other times it works. If I get that error twice in a row the app will crash.
Fatal error: Duplicate elements of type ‘ParseFile’ were found in a Set.
This usually means either that the type violates Hashable’s requirements, or
that members of such a set were mutated after insertion.
I cannot figure out why randomly its fine and other times its not.
ParseSwift version: 2.5.1
Parse Server Version: 4.4