gpt4 book ai didi

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

转载 作者:可可西里 更新时间:2023-11-01 03:39:27 24 4
gpt4 key购买 nike

我正在尝试模拟从版本 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com