I'm doing a game in Swift with SpriteKit, it happens that it does not give me the option to save the data with Core Data.
I am doing it by saving the data in a file, but since there are a lot of data my array is like this: [String : [[String:Any]] ]
and it throws me the error:
Cast from 'NSArray?' to unrelated type '[String : [[String:Any]] ]' always fails
Even if I shrink the fix to something like this: [[String:Any]]
throws me the same error.
Therefore I want to see if I can save the data in CoreData (although I have never used it, I only saw a tutorial) and if so, someone can guide me to see how to do it.
A thousand thanks