如何在发布之前测试更新过程?
有没有办法模拟应用程序从版本1更新到版本2?
我不确定当我构建和构建时会发生什么。在 Xcode 中运行应用程序。我相信,当应用程序已经安装在模拟器中时,就会发生更新,就像用户从应用程序商店下载新版本时一样。例如,当我点击 Bild & 时,sqlite3 数据库文件保持不变。运行,同时应用程序本身的二进制文件被替换。
所以问题是:这是否已经是测试更新过程的安全方法?在发布应用程序并收到数十条差评之前,有哪些替代方案?
Is there a way to simulate the update of an app from Version 1 to 2?
I am not sure about what happens when I build & run an application in Xcode. I believe that when the app is already installed in the simulator, an update is happening just like it does when the user downloads a new version from the App Store. For example sqlite3 database files remain intact when I hit Bild & Run, while the binary of the app itself gets replaced.
So the question is: Is THIS already a safe way of testing update procedures? What are the alternatives PRIOR to releasing the app and getting dozens of bad reviews?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
除非您更改已保存的文件,否则它会保持原样。如果您确实想对此进行测试,则只需在测试设备上安装当前/旧版本即可。然后在同一设备上构建新版本。这与用户通过 iTunes 进行更新具有相同的效果。
Unless you change a saved file, it remains as it was. If you really want to test this, then just install the current/old version on a test device. Then build the new version onto the same device. This has the same effect as an update through iTunes for the users.
如果您有一个单独的测试团队无法访问 xcode 项目,他们仍然可以使用 xcode 组织者测试更新:
这将保持现有数据完整,允许您使用旧版本的数据测试新应用程序。
If you have a separate test team that doesn't have access to the xcode project, they can still test updates using the xcode organizer:
That'll keep the existing data intact, allowing you to test the new app with data from the old version.