Core Data; Cocoa error 134100

前端 未结 6 1528
北荒
北荒 2020-12-14 08:17

This is my first time with core data, and I am getting the following error.

I would really appreciate it if you could tell me how to fix it.

Unresolv         


        
6条回答
  •  我在风中等你
    2020-12-14 09:09

    You should do following steps

    1. Delete the application and Run it again, if it still shows the same error. Then it means that, you used the specific attributes/attribute with different type.
    2. Go to your .xcdatamodeled file and check the type of each attributes.
    3. Go to your code and check, while inserting the attributes/objects in core data, you used the same type of different. So, the point is type(NSString, NSDate...) of the attributes/objects in your code and .xcdatamodeled should be same. If not then it will give the error "Error Domain=NSCocoaErrorDomain Code=134100"

提交回复
热议问题