xcode 我可以在 iPhone 上安装 IPA 吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15718364/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 03:05:59  来源:igfitidea点击:

Can I install an IPA on my iPhone?

iosobjective-cxcodeapp-storeapp-store-connect

提问by Andrew

After submitting my app to the app store, i created a zip of all of it's files. Now i'm on the next release, I want to test with the previous version to ensure that updating works properly, as there's some structural changes. Unfortunately, some files were referenced, but not copied, and so they have since been either deleted or modified.

将我的应用程序提交到应用程序商店后,我创建了所有文件的 zip。现在我在下一个版本,我想用以前的版本进行测试以确保更新正常工作,因为有一些结构性变化。不幸的是,一些文件被引用,但没有被复制,因此它们已被删除或修改。

Without being able to build again from the project, is there any way I could install the previous version on my phone?

如果无法从项目中重新构建,有什么办法可以在我的手机上安装以前的版本吗?

回答by wtl

Open Xcode -> Archives, select your target archive, distribute -> Ad-hoc Deployment, save the .ipa file and drag it into iTunes.

打开 Xcode -> Archives,选择您的目标存档,分发 -> Ad-hoc Deployment,保存 .ipa 文件并将其拖到 iTunes 中。

If you want to send the .ipa to others, the ad-hoc provision file is needed too.

如果您想将 .ipa 发送给其他人,则还需要临时配置文件。

回答by Vishal Shah

Archive different versions of the app that will create IPA files. Then drop the provisioning profile and IPA files in ITunes and install it from there.

存档将创建 IPA 文件的应用程序的不同版本。然后在 iTunes 中删除配置文件和 IPA 文件并从那里安装它。

回答by Wildaker

The simplest way is simply to delete the new version of the app from your iPhone, then install the old one from the iTunes App Store. If you want to run both at once, temporarily change the bundle identifier for the new version and then install it via Xcode.

最简单的方法是从 iPhone 中删除新版本的应用程序,然后从 iTunes App Store 安装旧版本。如果您想同时运行两者,请临时更改新版本的包标识符,然后通过 Xcode 安装它。