是否可以在开发的iphone上查看存储在Core Data中的数据? [英] Is it possible to view data stored in Core Data on a development iphone?

查看:279
本文介绍了是否可以在开发的iphone上查看存储在Core Data中的数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法抓住/查看coredata db(sqlite存储)的开发iphone通过xcode或其他手段?虽然我已经能够检查通过我的mac上的模拟器创建的数据库,我想验证实际手机上的内容(无需在应用程序中创建调试视图等),因为我正在读取传感器数据并将其存储在coredata中。

Is there a way to grab/view the coredata db (sqlite store) off of the development iphone through xcode or some other means? While I've been able to inspect the db created through the simulator on my mac, I'd like to validate what's on the actual phone (without having to create debugging views in the app, etc.) as i'm reading sensor data and storing it in coredata.

推荐答案

是的,可以使用Xcode组织器。
选择您的手机,然后选择应用程序,您可以从/到沙盒导出和导入文件
http://developer.apple.com/library/ios/recipes/xcode_help-devices_organizer/articles/ copy_app_data_from_sandbox.html#// apple_ref / doc / uid / TP40010392-CH14-SW1

Yes you can using Xcode organizer. Select you phone, then app, and you can export and import files from/to the sandbox http://developer.apple.com/library/ios/recipes/xcode_help-devices_organizer/articles/copy_app_data_from_sandbox.html#//apple_ref/doc/uid/TP40010392-CH14-SW1

这篇关于是否可以在开发的iphone上查看存储在Core Data中的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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