This would happen to me when I was using a Struct name Set, Parse Swift couldn’t detect the Set struct and instead was using the class Set.
I resolved it by renaming the struct SetObject and adding static let className: String = "Set"
You can check if there are any conflicts just by using autocompletion.

Our Parse Swift expert @cbaker6 might have some other thoughts