简体   繁体   English

iPhone如何在Mac中访问sqlite数据库

[英]how does iphone access sqlite database in my mac

I am crating an app in Xcode which stores some user information in an SQLITE database called contacts.db in my mac in the documents folder and my simulator is able to pull it up. 我正在用Xcode创建一个应用程序,该应用程序将一些用户信息存储在文件文件夹中mac上的我的Mac的名为contact.db的SQLITE数据库中,并且我的模拟器能够将其拉起。 So everytime a new user sings up, it has to update this DB. 因此,每次有新用户唱歌时,都必须更新该数据库。 If I publish this app and the app starts running in multiple iphones, will those iphones be able to access same database in my mac by default? 如果我发布了此应用程序,并且该应用程序开始在多个iPhone中运行,那么这些iPhone默认情况下是否能够访问我的Mac中的同一数据库? If not how will you make iphones access this contacts.db running in my mac? 如果不是,您将如何使iPhone访问在我的Mac中运行的这个contact.db? How do I create that link? 如何创建该链接?

There are different tools for that one of this is iExplorer . 有多种工具可用于其中之一,即iExplorer You can Download and install it on your mac and access you app data. 您可以在Mac上Downloadinstall它,然后访问您的应用数据。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM