ios 仅提供 IPA 文件更改应用程序版本(无 xcode)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16975049/
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
Change app Version with only IPA file provided (no xcode)
提问by user2461863
I have an app that was developed for my company. Unfortunately it needs to be resigned (i know how do this part) because the distribution cert has expired. The problem is we need to change the version number so it allows for an update on all iPads. Does anyone know how to do this using terminal (i have xcode installed but i dont have and of the files from the developers). Once again, i only have the IPA file for the app.
我有一个为我的公司开发的应用程序。不幸的是,它需要辞职(我知道这部分是怎么做的),因为分发证书已过期。问题是我们需要更改版本号,以便在所有 iPad 上进行更新。有谁知道如何使用终端来做到这一点(我安装了 xcode,但我没有来自开发人员的文件)。再一次,我只有应用程序的 IPA 文件。
Thanks for any help.
谢谢你的帮助。
回答by Matt Bridges
- Rename the .ipa to .zip, and unzip the archive.
- Inside should be a folder called "payload", and inside that folder should be your application archive.
- Right-click the application archive, and choose "show package contents."
- Find the Info.plist file (either named "Info.plist" or "AppName_Info.plist"). Open that file with a text editor
- Change the value of "CFBundleVersion" and "CFBundleShortVersionString" to your desired version number.
- Re-zip the archive
- Rename the .zip to .ipa
- Re-sign the .ipa
- 将 .ipa 重命名为 .zip,然后解压缩存档。
- 里面应该是一个名为“payload”的文件夹,该文件夹内应该是您的应用程序存档。
- 右键单击应用程序存档,然后选择“显示包内容”。
- 找到 Info.plist 文件(命名为“Info.plist”或“AppName_Info.plist”)。使用文本编辑器打开该文件
- 将“CFBundleVersion”和“CFBundleShortVersionString”的值更改为您想要的版本号。
- 重新压缩存档
- 将 .zip 重命名为 .ipa
- 重新签署 .ipa
回答by AMTickityB
In answer to Chris Emerson's comment above (sorry, I don't have enough reputation to add another comment so I'm adding an answer) it is still possible to do this! I have just done it for an IPA with latest updates to everything iOS 8.3, OX Mavericks. I was getting the same message "... could not be installed at this time" and it turned out to be an issue with the entitlements in the provisioning profile not matching the entitlements in the *.app.
为了回答上面 Chris Emerson 的评论(抱歉,我没有足够的声誉来添加另一条评论,所以我要添加一个答案)仍然可以这样做!我刚刚为 IPA 完成了它,其中包含对所有 iOS 8.3、OX Mavericks 的最新更新。我收到相同的消息“...此时无法安装”,结果是配置文件中的权利与 *.app 中的权利不匹配。
You can check the entitlements in both like this: https://developer.apple.com/library/ios/technotes/tn2318/_index.html#//apple_ref/doc/uid/DTS40013777-CH1-TNTAG68, and I put an answer detailing how I fixed the entitlements of my IPA so that they matched here: Alter Minimum OS Version of IPA without XCode, iOS 8+.
您可以像这样检查两者的权利:https: //developer.apple.com/library/ios/technotes/tn2318/_index.html#//apple_ref/doc/uid/DTS40013777-CH1-TNTAG68,我放了一个回答详细说明我如何修复我的 IPA 的权利,以便它们在此处匹配:Alter Minimum OS Version of IPA without XCode, iOS 8+。