在iOS 7中查看Core Data创建的sqlite文件时出现问题 [英] Issue in viewing sqlite file created by Core Data in iOS 7

查看:79
本文介绍了在iOS 7中查看Core Data创建的sqlite文件时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试访问由核心数据创建的数据库文件时遇到问题。 DB文件位于Documents文件夹中。我已将其复制到我的桌面并使用Firefox插件将其打开。 Hello.sqlite 文件不包含任何行我有使用核心数据插入值。我正在使用iOS 7模拟器运行应用程序。我可以看到在使用iOS-6时插入的行。有没有想法,为什么我看不到我的 Hello.sqlite文件中的值 ????

I have an issue when am trying to access the database file that is created by core data. The DB file is in Documents folder. I've copied this to my desktop and opened it using Firefox plug in. Hello.sqlite file doesn't contain any rows that I have inserted values using core data. Am running app using iOS 7 simulator. I can see the rows are inserted when am using iOS-6. Do any body have an idea, why I cant see values in my Hello.sqlite file????

推荐答案

要查看项目数据,请执行以下操作:

To view your project data do the following:


  1. 在Mac上运行xcode项目(必须包含数据库)

  2. 启动CoreDataPro

  3. 选择菜单 - >文件 - >新项目

  4. 选择在文件选项卡中,您可以使用文件选项卡并浏览到/ Users / UserName / Library / Application Support / iPhone Simulator / 6.0 / Applications / CD000457-0F95-4AFF-9C0A-829F681557AF(选择类似智能文件夹)/您的应用程序复制并粘贴在桌面上

  5. 第2步:持久性文件加载,即.sql文件

  6. 复制.sqlite文件,您可以从中存储( ie / Users /您的用户名/ Library / Application Support / iPhone Simulator / 6.0 / Applications / CD000457-0F95-4AFF-9C0A-829F681557AF / Documents)

  7. 选择打开

  8. 浏览您的申请数据

  1. Run your xcode project on your Mac (Must have a database included)
  2. Launch CoreDataPro
  3. Select Menu->File->New Project
  4. Select the "File" tab you could use file tab and browse to "/Users/UserName/Library/Application Support/iPhone Simulator/6.0/Applications/CD000457-0F95-4AFF-9C0A-829F681557AF(select like wise folder)"/your application" copy and paste on Desktop
  5. Step 2: Persistence file load that is your .sql File
  6. copy .sqlite file from where you can store (i.e /Users/Your User Name/Library/Application Support/iPhone Simulator/6.0/Applications/CD000457-0F95-4AFF-9C0A-829F681557AF/Documents)
  7. Select Open
  8. Browse your Application data

从Wiki下载

详情请访问此处

直接Coredata下载链接

这篇关于在iOS 7中查看Core Data创建的sqlite文件时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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