Renaming of IPA app name

寵の児 提交于 2019-12-06 08:11:10

问题


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.


回答1:


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:

From the terminal:

unzip app.ipa

rm -rf Payload/MyApp.app/_CodeSignature/

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

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 steps referenced here:

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




回答2:


In Xcode 8 onwards simply changing Scheme name does the job , now . Just go to scheme manager and first select the scheme and then it enter , whatever name you put that would be the name of ipa and app file.




回答3:


I think its not possible , Because if extract plist file from ipa and try to modify it then it will be not work .




回答4:


Check it. just change selected one.




回答5:


You can't modify an .ipa, but you can recompile it if you have the source code.

Simply go in your info.plist file and change the Bundle Display Name key. If it's not there you can add it yourself.

That key is the name that will appear under the icon of your app. The user will see a different name even though your bundle name/project name are still the old ones.



来源:https://stackoverflow.com/questions/30370320/renaming-of-ipa-app-name

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!