xcodebuild PRODUCT_NAME

时间:2014-03-12 08:31:46

标签: ios xcode xcodebuild command-line-interface

我可以使用CLI xcodebuild更改我的产品名称但是当我打开我的项目时,我仍然使用旧名称。我想用CLI永久地影响我的产品名称项目。

有可能吗?或许我做错了什么:

/usr/bin/xcodebuild -configuration Debug PRODUCT_NAME="NewName"

2 个答案:

答案 0 :(得分:5)

PRODUCT_NAME传递给xcodebuild调用不会更改项目中的产品名称,只会在此特定版本中更改。如果需要永久完成,您需要在GUI模式下通过Xcode进行设置。看here

答案 1 :(得分:2)

尝试以下方法:

提示1

how-to-change-the-product-name-with-command-line-builds

/usr/bin/xcodebuild -configuration Debug BUILD PRODUCT_NAME="NewName".

您可能需要在那里添加BUILD关键字。

确保您的配置也是CLEAN