Search code examples
ioscore-dataconstraintsentityxcode8

"In the uniqueness constraints attribute for entity, comma is not valid property" in Coredata Xcode 8


I created a database with Core Data on iOS. I initially set up a unique constraint in my Conversation entity. However, after removing it, I was getting an error: "In the uniqueness constraints attribute for entity Conversation, comma is not a valid property".

I looked at every field in my DataModel.xcdatamodeld but could not find any solution.

enter image description here


Solution

  • Its looks like a bug in Xcode 8. I have deleted all the attributes from the entity, cleaned the project and then added the attributes again. After that, the error was gone. Maybe this will help someone.