【问题标题】:increment_version_number not working in workspaceincrement_version_number 在工作区中不起作用
【发布时间】:2020-01-30 22:12:36
【问题描述】:

我正在尝试使用 fastlane 增加我的 React Native (0.60) 应用程序的构建和版本号。

increase_build_number 工作正常,但是 increase_version_number 产生此错误: Can't increment version

我已按照错误中的推荐指南进行操作,但没有成功 - https://developer.apple.com/library/content/qa/qa1827/_index.html

increase_version_number 是否与 .xcworkspace 一起使用?

【问题讨论】:

  • 它不接受工作区作为参数。 Here 是源代码。运行命令似乎依赖于当前工作目录。
  • 从项目目录(fastlane 目录的父目录)运行agvtool what-marketing-version -terse1 时会看到什么。无论该命令输出什么,都无法解析为版本字符串(major.minor.patch,即 11.0.0)。
  • @andyaladdin 你有没有得到这个工作?
  • @bataleon 我把它指向了 xcode 项目。

标签: xcode react-native fastlane


【解决方案1】:

我首先按照 Apple 的说明解决了这个问题:

https://developer.apple.com/library/archive/qa/qa1827/_index.html

然后在最后一步,我将Bundle version string (short) (CFBundleShortVersionString) 从 $(MARKETING_VERSION) 更改为 0.1.0

希望这会有所帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-07-11
    • 2015-02-25
    • 2023-01-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多