【问题标题】:Xcode 5 iOS app not using correct product name for build idXcode 5 iOS 应用程序没有使用正确的产品名称作为构建 ID
【发布时间】:2023-04-07 17:36:01
【问题描述】:

我的应用程序的构建 ID 存在一些问题。

我设置了两个版本,DebugRelease。我已经创建了两个方案App-debugApp-release

App-debug 设置为使用Debug 配置和app-release Release 配置。在我的build settings 中,我将Product Name 字段设置为appStagingappPublish,分别用于DebugRelease 构建配置。

但是,即使我选择了 app-debug 方案,build identifier 字段也会设置为 appPublish。我不知道为什么,但它影响了我正确归档产品的能力。我错过了什么?

似乎如果我运行一个产品干净,关闭 xcode 并重新打开它,bundle identifier 会正确显示在目标信息中。但是,当我运行 Product -> Archive 时,会发生一些事情,它会为 appPublish 构建,之后,build identifier 会显示错误的名称。仍然不知道为什么会这样。

【问题讨论】:

    标签: ios xcode5 build-settings bundle-identifier


    【解决方案1】:

    好的,我找到了原因——每个方案都有一个单独的部分用于Archive 设置,与Run 设置分开。我之前错过了这个,这就是为什么我一直遇到这个问题。

    【讨论】:

      猜你喜欢
      • 2012-12-06
      • 2012-08-04
      • 1970-01-01
      • 1970-01-01
      • 2014-08-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多