【发布时间】:2012-02-22 21:13:14
【问题描述】:
在我的 mac 中,我使用 XCode 4.2 和 iOS 5 sdk 和 Mac OS X 10.7.2 版本。
我正在开发基于 Sqlite 数据库的应用程序,因此我可以从该数据库中插入、选择和删除数据。
当我在模拟器中运行我的应用程序时,我可以在 NSLog 中看到数据库路径,但我无法通过该目录访问数据库。
我在日志中得到的数据库路径是 ==> /Users/username/Library/Application Support/iPhone Simulator/5.0/Applications/3623C505-F568-4B18-986E-F2C7D71D5079/Documents/SqlUser.sqlite
我在 /username 文件夹中看不到库目录。所以我无法访问 db 文件。
但是在带有 Xcode 3.2.5 iOS 4.2 的 Mac OS X 10.6.8 版本中,我可以在 /username 文件夹中看到 Library 目录。为什么这在 10.7.2 中是不可能的?
请在这方面帮忙!!!
谢谢!!!
【问题讨论】:
-
我在 10.7.2 上,我看到 /Users/{username}/Library 文件夹。我认为您的问题与操作系统版本无关
-
但是在我的系统中,我找不到那个库文件夹..如何使它成为可能?
-
使用哪个操作系统版本?并且默认情况下隐藏“Library”文件夹可能是问题,因此选择Finder =>Go => Go To Folder并粘贴“/Users/username/Library/Application Support/iPhone Simulator/5.0/Applications/的路径” "
标签: iphone ios5 sqlite ios-simulator