模拟iOS中的应用升级 [英] simulating app upgrade in iOS

查看:91
本文介绍了模拟iOS中的应用升级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试模拟从2.0版升级到2.1版。我在testflight中托管了2.0版,所以我确实将它安装在我的设备中。然后我尝试从xcode运行应用程序。然而,发生的事情是应用程序没有重叠,而是创建了两个具有相同名称的应用程序。我怎样才能这样做,当我从xcode运行应用程序时,它覆盖旧版本?

I am trying to simulate an upgrade from version 2.0 to 2.1. I have version 2.0 hosted in testflight, so I did install it in my device. Then I tried running the app from xcode. However what happened is that the app did not get overlapped, instead it created two apps with the same name. How can I make it such that when I run the app from xcode it overlays the old version?

我已确保捆绑包标识符相同。

I've made sure that the bundle identifier is the same.

推荐答案

您可以在更新时获得的信息@ this链接到这里。

Well the info you can get while updating can be found @ this link here.


当用户更新应用时,Documents文件夹按原样存储,包括
NSUserDefaults(但是,有时用户通过iTunes下载应用程序和
替换整个应用程序,哭'OMG!update杀死我所有的
级别进度!');应用程序包被删除并替换为新的
一个(无论如何,它只是用户的读取);重新部署新版本
版本就足够了;

when user updates an app, Documents folder is stored as is, including NSUserDefaults (but, sometimes user download app via iTunes and replace the whole application, crying 'OMG! update killed all my levels progress!'); Application bundle is erased and replaced by new one (anyway, it is readonly for user); Re-deployment of new build version will be enough;

您无法访问模拟器中的appstore,因为: @ 此处链接

You can't access the appstore inside the simulator because: @ link here


这是一个模拟器而不是模拟器。即使在模拟器
中有一个App Store,商店中的任何应用都不会工作,因为它们是为ARM CPU编译的
,而模拟器运行x86代码。

It's a simulator not an emulator. Even if there was an App Store in the Simulator, none of the apps in the store would work since they are compiled for ARM CPUs while the Simulator runs x86 code.

另一个堆栈溢出@ 链接这里陈述:

Another stack overflow @ link here states:


构建并安装旧版本,生成一些数据,然后
安装新版本在提交给Appstore之前进行测试我通常会再次从AppStore下载旧版本的
,然后使用Xcode $ b $进行安装。在...之上。

Build and install your old version, generate some data, and then install the new version on top of it.

b较新版本 - 供您下次更新...; - )

For testing before submitting to the Appstore I generally download from the AppStore again the old version, and then install with Xcode the newer version - for your next update... ;-)

另一个堆栈溢出(我丢失了链接)状态:

And another stack overflow (that I lost the link for) states:


不,模拟器运行i386二进制文件,iPhone appstore应用程序是ARM
二进制文件应用程序。

No, the simulator runs i386 binaries and iPhone appstore apps are ARM binaries apps.

将iOS应用程序编译为计算机代码,Android应用程序使用字节代码在
虚拟机中运行,并在运行时转换为
的机器代码。

iOS apps are compiled to machine code, Android apps are run in a Virtual Machine using byte code and are translated to machine code at the time they are run.

所以不,我不相信你可以在模拟器中运行它,你怎么能在iPhone上保存旧的项目并测试它们。苹果文档是@ 这个链接在这里。

So no, I don't believe you can run it in the simulator, how ever you can have older projects saved on the iPhone and test both out. And the apple documentation is @ this link here.

这篇关于模拟iOS中的应用升级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆