[英]Code=134110 - Validation error missing attribute values on mandatory destination attribute
Context:语境:
The outcome:结果:
CoreData: error: NSUnderlyingError = "Error Domain=NSCocoaErrorDomain Code=134110 \"An error occurred during persistent store migration.\"
UserInfo={
entity= TestModel,
attribute=new_one,
reason=Validation error missing attribute values on mandatory destination attribute}";
}
Solution:解决方案:
I don't completely grasp why this happens (I'm too tired and eager to leave this problem behind), but the "mandatory destination attribute" thing pointed me in the direction of setting the property as an optional.我不完全理解为什么会发生这种情况(我太累了,很想把这个问题抛在脑后),但是“强制目标属性”的事情向我指出了将属性设置为可选的方向。 Whether it's the right thing to do or just an ordinary hack...I don't know...but it solved my problem, I can now move on to the next
无论是正确的做法还是普通的 hack ......我不知道......但它解决了我的问题,我现在可以继续下一个
You've pretty much hit the nail on the head but it sounds like maybe you don't know why.你几乎一针见血,但听起来你可能不知道为什么。 It's because:
这是因为:
That leads directly to the error that you received.这直接导致您收到的错误。
You can fix this using any one of the following:您可以使用以下任一方法解决此问题:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.