OGeek|极客世界-中国程序员成长平台

标题: ios - Xcodebuild & Jenkins : How to rename the product after build [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 22:40
标题: ios - Xcodebuild & Jenkins : How to rename the product after build

我想重命名在构建过程之后创建的 .ipa 文件以应用一些公司内部命名法。我们使用 Jenkins 和 Xcodebuild 插件。似乎没有办法通过 Xcodebuild 插件重命名产品,所以我想知道合适的 shell 脚本是什么。

假设我手头有一个 $filename。



Best Answer-推荐答案


您可以添加一个执行 shell 构建步骤以在 xcodeplugin 运行后运行。像这样的:

mv $WORKSPACE/build/Distribution-iphoneos/<your ipa filename>.ipa $WORKSPACE/build/Distribution-iphoneos/<new filename>.ipa

您必须检查构建服务器或从属服务器上的 WORKSPACE 目录以获取 .ipa 文件的确切位置。

关于ios - Xcodebuild & Jenkins : How to rename the product after build,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10126126/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4