简体   繁体   English

如何在设备/模拟器上模拟AppStore更新过程

[英]How to simulate the AppStore update process on device/simulator

We have submitted an update version of our existing applications in the App Store recently. 我们最近在App Store中提交了现有应用程序的更新版本。 But we have received a issue from one of the users, saying that the app is not functioning properly after the update. 但是我们收到一个用户的问题,说该应用程序在更新后无法正常运行。 So in order to replicate the same, what are the steps to reproduce, so that i can analyse the issue? 因此,为了复制相同的内容,应复制哪些步骤,以便我可以分析问题?

Any help will be appreciated. 任何帮助将不胜感激。

To simulate this before pushing yoru updated version to the AppStore you can: 将yoru更新版本推送到AppStore 之前进行模拟,您可以:

  1. Download the old version of your app from the appstore 从appstore下载旧版本的应用程序

  2. Run the updated version of your app from XCode on the same device. 在同一设备上从XCode运行应用程序的更新版本。

What will happen behind the scenes is that your app will be updated in a way similar to the Appstore. 幕后情况是,您的应用程序将以类似于Appstore的方式进行更新。 Your app will be partially updated while your doucments folder will stay the same. 您的应用程序将被部分更新,而doucments文件夹将保持不变。 (what usually causes problems) (通常会导致问题的原因)

This solution is better because it lets you check for problems before and update was pushed to the Appstore. 此解决方案更好,因为它使您可以在之前检查问题并将更新推送到Appstore。

All that is required is to have the version of the app that is in the app store on your device, then install the updated version to your device. 所需要做的就是在设备上的应用商店中拥有该应用的版本,然后将更新的版本安装到您​​的设备上。 You can debug it using Xcode when you install the new version. 安装新版本时,可以使用Xcode对其进行调试。

Yeah, I get this a lot. 是的,我得到很多。 The solution is a bit annoying, but you need to keep a history of IPAs you've submitted so you can put the on your phone through iTunes (so not the simulator) and then, run your code on your device putting a breakpoint on your applicationDidFinishLaunching handler in your app delegate, and start tracing from there. 该解决方案有点烦人,但是您需要保留提交的IPA的历史记录,以便可以通过iTunes(而不是模拟器)将其放在手机上,然后在设备上运行代码,在您的设备上放置断点应用程序委托中的applicationDidFinishLaunching处理程序,然后从那里开始跟踪。 You should be able to find the old app store version in your organiser from the last time you submitted, or, go through your SVN/GIT history and checkout the version tagged to your release version. 从上次提交后,您应该能够在组织者中找到旧的应用程序商店版本,或者浏览SVN / GIT历史记录并签出标记为发行版的版本。

Many times in the past that has happened to me where I test a new revision and everything looks fine but when I submit an update and is approved, users start complaining about a crash or lost data. 过去,我经历了很多次,我测试了一个新修订,一切看起来都很好,但是当我提交更新并获得批准时,用户开始抱怨崩溃或数据丢失。

This is way I approach the problem. 这是我解决问题的方法。

  1. (This is most important step) You need to either have your old code or old binary installed on your actual apple device. (这是最重要的步骤)您需要在实际的Apple设备上安装旧代码或旧二进制文件。 (Physical iPhone / iPad) (物理iPhone / iPad)

  2. Now go to iTunes and install your new update. 现在转到iTunes并安装新更新。

  3. Attach your physical iPhone / iPad to you computer, Launch Xcode and start debugging it. 将您的物理iPhone / iPad连接到计算机,启动Xcode并开始对其进行调试。

NOTE: There have been many times when things work perfectly in the Simulator but break on the actual device. 注意:很多时候,在模拟器中一切正常,但在实际设备上却无法正常工作。 Its always important to test your code on the real thing as that is what the users are going to be on. 在真实的环境上测试您的代码始终很重要,因为这就是用户要使用的代码。

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

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