简体   繁体   English

使用Windows C#第三方程序更改IOS应用程序名称

[英]Change IOS Application Name with windows C# third party program

I have an IPhone application that change its resources in C# application and change its UI with changing images and styles. 我有一个IPhone应用程序,可以在C#应用程序中更改其资源,并通过更改图像和样式来更改其UI。 Now i want to change application name that appear blow icon when installed in IOS phone with my C# program. 现在我想用我的C#程序在IOS手机中安装时更改应用程序名称。 I know that i should extract .ipa package as zip file and open info.plist and change search my previous or old app name and replace with new string and then repack again. 我知道我应该提取.ipa包作为zip文件并打开info.plist并更改搜索我以前或旧的应用程序名称并替换为新字符串然后再次重新打包。 but because it's format is binary when new string length is different with previous one , when i install .ipa in IOS phone show me an error message that ipa file is invalid. 但是因为当新的字符串长度与前一个不同时,它的格式是二进制,当我在IOS手机中安装.ipa时,显示ipa文件无效的错误消息。 what tool maybe exist that can i use with my C# code to rename it without problem. 可以使用什么工具,我可以使用我的C#代码重命名它没有问题。 Thanks. 谢谢。

I don't think it's a problem that you rename the app in the plist. 我不认为你在plist中重命名应用程序是个问题。 You just need to sign the ipa again with your developer certificate after renaming. 重命名后,您只需使用开发人员证书再次签署ipa。

The easiest way is to use xcode's command tools, but unfortunately you need mac os x. 最简单的方法是使用xcode的命令工具,但不幸的是你需要mac os x。 You can look at https://github.com/maciekish/iReSign , which is a great/easy tool built on top of xcode command tools. 您可以查看https://github.com/maciekish/iReSign ,这是一个基于xcode命令工具构建的优秀/简单工具。

Maybe you can find a windows tool that allows you to sign an ipa file. 也许你可以找到一个允许你签署ipa文件的Windows工具。 I haven't looked into such a tool... so it's just a maybe. 我没有调查过这样的工具......所以它只是一个可能。

you should extract the ipa package. 你应该提取ipa包。 then find info.plist file in extracted file and then open file. 然后在解压缩的文件中找到info.plist文件,然后打开文件。 then search your previous application name in file and replace it with new name. 然后在文件中搜索您以前的应用程序名称并将其替换为新名称。 consider your new name characters count should equal to old name character count. 考虑你的新名字字符数应该等于旧名字符数。 good luck. 祝好运。

您可以使用apple公司的plconvert.exe来编辑info.plist:
plconvert.exe <inBinaryFileName> <outXmlFileName>
plconvert.exe <inXMLFilName> <outBinaryFileName> -binary

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM