gpt4 book ai didi

iphone - CoreData 迁移失败,没有合适的映射模型

转载 作者:行者123 更新时间:2023-12-03 21:15:35 24 4
gpt4 key购买 nike

我正在尝试进行 CoreData 迁移,但它突然停止工作。从调试日志:

2013-04-12 11:59:17.600 Redacted[7684:3607] CoreData: annotation: (migration)    will attempt automatic schema migration
2013-04-12 11:59:17.712 Redacted[7684:3607] CoreData: annotation: (migration) looking for mapping model with
source hashes:
{
Redacted = <ad40b955 0fdcbf91 efd12f35 5ab2737a ad57635a 7b9bd32a a4aaecaf 6eb6ffb0>;
Redacted = <8be6112c 2517affe 7496c522 c267a485 1b002285 057a735b d38e79c1 b2700406>;
Redacted = <180e1207 9c41a970 bcd190bb 33b1d55e f4f6fe93 99167a2c c5b9aadd add4281e>;
Redacted = <a55bab71 2e03c10f 6f59c567 64bd48c3 bed015c8 05ed9cbf a3253b44 02a9c783>;
}
destination hashes: {
Redacted = <45a621cd 1a04df96 ab756b9d 6f4e05ca 14790dd6 04dda71b e9d13894 6218a5d5>;
Redacted = <4cdc3543 38cb3d0b f3edea4d 6f262f6e bff97ae0 cf8c9924 cdbacb3d b6fa7c8c>;
Redacted = <ff7be1ae 0f120d47 cb2c39e1 33a24fff 1cb880b5 e5bd2ede 85470fea 2c77512a>;
Redacted = <ca532228 da5b5471 1521b15c 203a8df2 da8e4639 4fb6b8fb 1510732a d538ab6a>;
Redacted = <97e6c0c6 0eea0170 3870ca94 348d8ff8 437fc4ca ce8e11c1 1623ff07 5ea78ad4>;
Redacted = <b48aabf8 4ac4b29c 77ae366d b941a441 23f909b1 81c7447e 44925268 c26e83df>;
}
2013-04-12 11:59:17.717 Redacted[7684:3607] CoreData: annotation: (migration) checking mapping model at path file://redacted/MappingModel.cdm
source hashes:
{(
<180e1207 9c41a970 bcd190bb 33b1d55e f4f6fe93 99167a2c c5b9aadd add4281e>,
<ad40b955 0fdcbf91 efd12f35 5ab2737a ad57635a 7b9bd32a a4aaecaf 6eb6ffb0>,
<a55bab71 2e03c10f 6f59c567 64bd48c3 bed015c8 05ed9cbf a3253b44 02a9c783>,
<8be6112c 2517affe 7496c522 c267a485 1b002285 057a735b d38e79c1 b2700406>
)}
destination hashes: {(
<ca532228 da5b5471 1521b15c 203a8df2 da8e4639 4fb6b8fb 1510732a d538ab6a>,
<45a621cd 1a04df96 ab756b9d 6f4e05ca 14790dd6 04dda71b e9d13894 6218a5d5>,
<4cdc3543 38cb3d0b f3edea4d 6f262f6e bff97ae0 cf8c9924 cdbacb3d b6fa7c8c>,
<b48aabf8 4ac4b29c 77ae366d b941a441 23f909b1 81c7447e 44925268 c26e83df>,
<97e6c0c6 0eea0170 3870ca94 348d8ff8 437fc4ca ce8e11c1 1623ff07 5ea78ad4>,
<ff7be1ae 0f120d47 cb2c39e1 33a24fff 1cb880b5 e5bd2ede 85470fea 2c77512a>
)}
2013-04-12 11:59:18.440 Redacted[7684:3607] CoreData: annotation: (migration) no suitable mapping model found

据我所知,所有哈希值都匹配。尝试过清洁。有什么想法为什么会失败吗?

最佳答案

回答我自己的问题:我的架构中有一个缺陷。我有一个一对一的关系,0 作为有效的最小值。

我不知道是否需要设置一个额外的日志记录标志来突出显示该问题。看起来很奇怪,CoreData 会暗示我的映射文件很糟糕,而实际上它是我的架构。

关于iphone - CoreData 迁移失败,没有合适的映射模型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15979179/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com