agvtool new-arketing-version在xcode 13上不工作

发布于 2025-02-06 09:06:43 字数 594 浏览 1 评论 0原文

由于Xcode 13,默认情况下没有info.plist。相反,公共字段位于目标编辑器中的目标信息选项卡中,并在项目编辑器中构建设置。仅在还有其他字段时,只有在项目中添加一个分开的info.plist文件。

当我运行以下命令以在jenkins上设置Marketing_version时,

$ xcrun agvtool new-marketing-version 1.0.0

除非存在键cfbundleshortversionstring,否则对info.plist文件没有任何影响。但是,每次我在目标的信息选项卡中更新字段时,info.plist文件似乎再次重新生成,并且cfbundleshortversionstring消失了。

因此,我想知道如何通过命令行设置Marketing_version在这种情况下如何使用AgvTool。任何建议都将不胜感激!

Since Xcode 13, there is no Info.plist by default. Instead, the common field are in the target’s Info tab, and build settings in the project editor. A separated Info.plist file is added to project only when there are additional fields.

When I run the following command to set MARKETING_VERSION on Jenkins

$ xcrun agvtool new-marketing-version 1.0.0

It doesn't have any effect on Info.plist file unless the key CFBundleShortVersionString exists. But every time I update field in target's Info tab, the Info.plist file seems to be regenerated again and CFBundleShortVersionString disappear.

Therefore, I'm wondering is there any suggestion about how to setting MARKETING_VERSION via command line or how to use agvtool in this case. Any suggestion would be appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

吃兔兔 2025-02-13 09:06:44

确实,在Xcode 13中,AgvTool很难更新营销版本。
为了“修复”它,将generate_infoplist_file设置为构建设置 in no。这将阻止Xcode自动生成info.plist。然后创建自己的信息。使用相同的值,它应该有效。

Maxime

Indeed, in Xcode 13 agvtool has trouble to update marketing version.
In order to "fix" it, set GENERATE_INFOPLIST_FILE to NO in Build settings. This will prevent Xcode to generate the Info.plist automatically. Then create your own Info.plist with the same values and it should works.

Maxime

怂人 2025-02-13 09:06:44

如果将generate_infoplist_file设置为build设置中的no,它将给您带来下一个错误:无法找到“ ABC.XCODEPROJ /../ no使用AGVTool来更新营销时版本。

If you set GENERATE_INFOPLIST_FILE to NO in Build settings, it will throw you the next error: Cannot find "ABC.xcodeproj/../NO when using agvtool to update the marketing version. The only way I could find to fix this was to manually delete from project.pbxproj all the GENERATE_INFOPLIST_FILE lines.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文