在相应的配置文件中使用xcdatamodels参数的正确方法是什么?我相信这是使用核心数据 [英] What is the correct way of using the xcdatamodels parameters in the apportable config file? I believe this is for using Core Data

查看:62
本文介绍了在相应的配置文件中使用xcdatamodels参数的正确方法是什么?我相信这是使用核心数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

也许在使用CoreData时我没有设置正确的APPORTABLE配置参数.当应用程序运行时,我可以添加,编辑,删除和列出当前记录.但是,当我从当前正在运行的应用程序中将其删除并尝试再次打开我的应用程序时,所有数据都消失了.也许设置正确的参数可以消除我现在遇到的这个错误?

Maybe I didn't set the correct APPORTABLE config parameters when using CoreData. I can ADD,EDIT,DELETE and List down the current records when the app is running. But when I remove it from the current running apps and tried to Open my app again all of the data are gone. Maybe setting the correct parameter would eliminate this bug I am encountering right now?

推荐答案

除非您有一个特定于Apportable的特殊xcdatamodel,否则不必在configuration.json中设置xcdatamodel列表.现在,模型应该会自动编译并放入应用程序捆绑包中.实际上,如果您在此更改之前使用了我们的核心数据,我建议您撤消已完成的所有工作以使其生效.它应该可以正常工作.

You shouldn't have to set the xcdatamodel list in the configuration.json unless you have a special apportable-specific xcdatamodel. the model should now automatically be compiled and put into the app bundle. in fact, if you were using our coredata before this change, i recommend undoing everything you have done in order to get it to work. it should just work.

关于您的问题,您介意创建一个测试用例,然后通过电子邮件将其发送到sdk @ apportable.com吗?如果没有精简的测试用例来演示该错误,则很难调试.

as for your issue, would you mind creating a test case and then emailing it to sdk @ apportable.com? it's tough to debug without a reduced test case that demonstrates the bug.

更新:我们没有在NSManagedObjectContext中正确实现hasChanges.我们已经更好地实现了它,现在测试项目可以运行了.寻找它的下一个版本的SDK(可能需要几天到一周的时间),如果您仍然遇到问题,请告诉我.

update: we didn't have hasChanges properly implemented in NSManagedObjectContext. We've implemented it better, and now the test project works. Look for it the next version of the SDK (could be a few days to a week for that), and let me know if you still have trouble.

这篇关于在相应的配置文件中使用xcdatamodels参数的正确方法是什么?我相信这是使用核心数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆