【问题标题】:Set Xcode automatic signing to false and set provision profile and certificate with fastlane match and gym将 Xcode 自动签名设置为 false 并使用 fastlane match 和 gym 设置配置文件和证书
【发布时间】:2017-12-10 07:05:33
【问题描述】:

我们使用Fusetools 来构建应用程序。使用命令 uno build --target=ios --configuration=Release 我们为应用程序生成一个新的 myapp.xcodeproj 文件。

当我在 Xcode IDE 中手动打开 .xcodeproj 时,我看到 Automatically manage signing 复选框被选中。然后我们使用 Fastlane match 来获取证书并在 Xcode 中手动选择 appstore 证书。这一切都很好。

现在 - 我们尝试使用 CI 提供程序(如 Bitrise)使用无头构建过程来构建它。然后一切都停在同一点。我们的.xcodeprojAutomatically manage signing 复选框被选中。

我们的 Fastfile 如下所示:

disable_automatic_code_signing(path: "../myapp.xcodeproj")

match(git_url: "git@github.com:MyRepo/match.git",
      app_identifier: "com.myapp.myapp",
      type: "appstore",
      readonly: true)

gym(
      workspace: "myapp.xcworkspace",
      scheme: "MyApp",
      export_method: "app-store",
      xcargs: "PROVISIONING_PROFILE_SPECIFIER='match AppStore
      com.myapp.myapp'"
)

在我们的Fastfile 中,我们首先尝试禁用自动签名,在gym - 传入参数xcargs: "PROVISIONING_PROFILE_SPECIFIER='match AppStore com.myapp.myapp'" 以在构建之前设置配置文件。

然后我从 Bitrise CI 监视器得到这个:

Code signing is required for product type 'Application' in SDK 'iOS 10.3'

如果在本地运行尝试将自动签名设置为 false 并执行相同操作,我可以重现此问题。

有什么想法吗?

【问题讨论】:

    标签: ios xcode fastlane fusetools fastlane-gym


    【解决方案1】:

    xcargs: "PROVISIONING_PROFILE_SPECIFIER='match AppStore com.myapp.myapp'"

    这种方法不再适用,因为应用可能有多个目标。相反,请查看 Xcode setup guide,它描述了您可以为每个目标的配置文件名称选项使用由 match 填充的环境变量 ?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-25
      • 1970-01-01
      • 2020-04-13
      • 1970-01-01
      • 2011-02-06
      • 2020-11-11
      相关资源
      最近更新 更多