iphone - 在 iOS 中模拟应用程序升级

标签 iphone objective-c ios ipad

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

我已确保包标识符相同。

最佳答案

好吧,您可以在@ this link here. 找到更新时可以获得的信息。

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;

您无法在模拟器中访问应用商店,因为:@ link here

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.

另一个堆栈溢出@ link here状态:

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

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... ;-)

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

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

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 上并测试两者。苹果文档是@ this link here.

关于iphone - 在 iOS 中模拟应用程序升级,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12468180/

相关文章:

iphone - 问在xcode4中使用json

ios - 如何在Objective-C中检查多个Switch大小写值?

ios - 解析 XML 并将其附加到结构中 - 如何正确访问结构变量?

objective-c - iOS - viewForFooterInSection 粘在 UITableView 的底部

iphone - 使用 GameCenter 在 iOS 中进行两人游戏

jquery - 当我们看不到另一个 div 时如何修复一个 div?

iPhone,MPMoviePlayerController 如何在双击屏幕时禁用缩放?

ios - 区 block 完成状态验证

objective-c - "Enable Strict Checking of objc_msgSend Calls"到底是什么意思?

ios - 未使用结构