如何在SDK模拟器中模拟iPhone应用升级过程

发布于 2024-08-23 07:45:55 字数 119 浏览 6 评论 0原文

我正在开发一个 iPhone 应用程序,即将发布版本 2。我们将更改核心数据模型,我想在将其发布给用户之前在模拟器中模拟升级过程,这可能会导致他们的数据丢失。在发布之前,似乎没有任何关于如何在沙箱中执行此操作的真正好的文档。

I'm working on an iPhone app and about to release version 2. We'll be changing the core data model and I'd like to simulate the upgrade process in the simulator before releasing it to users and potentially causing data loss for them. There doesn't seem to be any real good doucumentation on how to do this in a sandbox before releasing it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

夏末染殇 2024-08-30 07:45:56

我过去使用的过程是从模拟器中擦除所有工作版本,从存储库中查看应用程序的先前版本,编译并安装它,使用它一段时间,然后编译并安装新版本应用程序的版本。新版本的安装应该模拟升级过程,您可以在其中测试数据迁移到新模型。

我还在设备上重复此过程,以确保那里也没有遇到问题。

The process I've used in the past has been to wipe any working version from the Simulator, check out the previous version of my application from my repository, compile and install that, work with it for a bit, then compile and install the new version of the application. The installation of the new version should simulate the upgrade process, where you can test your data migration to your new model.

I also repeat this process on the device to make sure no problems are encountered there either.

没有你我更好 2024-08-30 07:45:56

有些情况无法在 Xcode 中模拟。看看这个苹果页面: https://developer.apple.com/library /ios/technotes/tn2285/_index.html

您必须创建 IPA 文件并通过 iTunes 模拟更新。

there are some cases that cannot be simulated in Xcode. Look at this Apple page: https://developer.apple.com/library/ios/technotes/tn2285/_index.html

You have to create IPA file and simulate update via iTunes.

清秋悲枫 2024-08-30 07:45:56

我同意布拉德的总体方法。为了节省一点时间,我只需保存您使用旧版本应用程序创建的示例数据集。这样,如果事情进展不顺利,您就不必继续重新创建示例数据集。您只需将示例数据集复制回模拟器中应用程序的目录即可。

您的应用程序的目录位于开发计算机上的 ~/Library/Application Support/iPhone Simulator/User/Applications/您的应用程序的 GUID

I agree with Brad's overall approach. To save a little time, I would just save the sample set of data that you create with the older version of your app. This way you won't have to keep recreating the sample data set if things don't go right. You will just simply copy the sample data set back into your app's directory in the Simulator.

Your app's directory is located at ~/Library/Application Support/iPhone Simulator/User/Applications/A GUID for your App on your development machine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文