用sqlite
构建应用程序之后。我已经在Firefox中安装了SQLite管理器。没有帮助,因为我真的不知道该文件在哪里。我尝试了很多方法。
最后我尝试找到这个文件
_databasePath = [[NSString alloc] initWithString:[docsDir stringByAppendingPathComponent:@"myUsers.db"]];
使用MesaSQLite打开
仍然有同样的问题。我的文件在哪里。
这是我使用过的最后一种方法:
/Users/{YOUR NAME}/Library/Developer/CoreSimulator/Devices/{DEVICE ID}/data/Containers/Data/Application/{APPLICATION ID}/
我仍然找不到它。我几乎打开了每个项目文件夹。
请帮我。
最佳答案
不要在MacintoshHDD上打开库。您需要在USERName文件夹上打开Library。在那里,通常库文件夹是隐藏的。您需要按照以下步骤查看隐藏文件。
或者直接将路径复制粘贴到Mac上的搜索器中,它将直接带您进入。
显示隐藏的Mac OS X文件的很长的方法如下:
Open Terminal found in Finder > Applications > Utilities.
在终端中,粘贴以下内容:
defaults write com.apple.finder AppleShowAllFiles YES.
Press return.
Hold 'alt' on your keyboard, then right click on the Finder icon in the dock and click Relaunch.