重命名IPA应用程序名称 [英] Renaming of IPA app name

查看:703
本文介绍了重命名IPA应用程序名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有生产IPA文件,名称为MyApp。我需要将此名称更改为MyApp_SIT以进行测试。我必须做哪些修改。我有生产IPA文件和新的Provisioning配置文件和证书用于测试目的。是否可以重命名应用程序名称。我必须紧急完成它。任何人都可以告诉你如何做到这一点。

I have production IPA file with the name as MyApp. I need to change this name as MyApp_SIT for testing purpose. Where I have to do the modifications. I have the production IPA file and the new Provisioning profile and certificate for testing purpose. Is this possible to rename the app name. I have to finish it urgently. Can anyone please tell how to do this.

推荐答案

如果你有配置文件,证书和密钥,你可以修改.app有效内容然后重新签名。但鉴于你没有源代码,我怀疑你有这些。如果您这样做,请按以下步骤操作:

If you have the provisioning profile, certificate, and key, you can modify the .app payload contents and then re-sign. But given that you do not have the source code, I doubt you have those. If you do, here are the steps:

从终端:

unzip app.ipa

rm -rf Payload/MyApp.app/_CodeSignature/

/usr/libexec/PlistBuddy Payload/MyApp.app/Info.plist

在PlistBuddy编辑器中,执行以下操作:

Inside the PlistBuddy editor, do the following:

Set :CFBundleName MyApp_SIT
save
quit

然后,回到命令行,我们用它的新包名称重新签名应用程序:

Then, back at the command line, we resign the app with it's new bundle name:

cp <path_to_provisioing_profile>/AdHoc.mobileprovision Payload/MyApp.app/embedded.mobileprovision 

codesign -f -s "iPhone Distribution: Company Certificate" --resource-rules Payload/MyApp.app/ResourceRules.plist  Payload/MyApp.app

zip -qr app-resigned.ipa Payload/

General这里引用的步骤:

General steps referenced here:

https://coderwall.com/p/qwqpnw/resign-ipa-with-new-cfbundleidentifier-and-certificate

这篇关于重命名IPA应用程序名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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