【问题标题】:Fastlane provision profile madnessFastlane 配置文件疯狂
【发布时间】:2015-12-03 18:46:57
【问题描述】:

如果我遗漏了什么,很抱歉提出问题。

我正在使用如下所示的车道:

  desc "Submit a new Beta Build to Apple TestFlight"
  desc "This will also make sure the profile is up to date"
  lane :beta do
    ...
    # download certificate
    cert
    # download provisioning profile
    sigh
    # set profile uiid
    # https://github.com/fastlane/fastlane/blob/master/docs/CodeSigning.md
    ENV["PROFILE_UUID"] = lane_context[SharedValues::SIGH_UDID]
    # build
    gym(
      scheme: "Release"
    )
    pilot
  end

在健身房步骤之后,我一直在失败,并出现以下错误:

❌  Code Sign error: No matching provisioning profile found: Your build settings specify a provisioning profile with the UUID “8bd6dafb-2596-41d9-8907-8c012d23a5ac”, however, no such provisioning profile was found.

[19:27:21]: Exit status: 65
[19:27:21]: Invalid code signing settings
[19:27:21]: Your project defines a provisioning profile which doesn't exist on your local machine
[19:27:21]: You can use sigh (https://github.com/KrauseFx/sigh) to download and install the provisioning profile
[19:27:21]: Follow this guide: https://github.com/KrauseFx/fastlane/blob/master/docs/CodeSigning.md

但是,我可以在我的应用目录中看到正在下载的正确配置文件。我也可以在~/Library/MobileDevice/Provisioning Profiles 中找到这个配置文件,最后我的Xcode 项目配置为使用sigh 下载的uuid 使用:

PROVISIONING_PROFILE = "$(PROFILE_UUID)";

变量转储:

{
    :DEFAULT_PLATFORM=>:ios, 
    :PLATFORM_NAME=>:ios, 
    :LANE_NAME=>"ios beta", 
    :GIT_REPO_WAS_CLEAN_ON_START=>true, 
    :BUILD_NUMBER=>"55", 
    :VERSION_NUMBER=>"1.0", 
    :CERT_FILE_PATH=>"/Users/xxx/Developer/xxx/56HRT5HYC6.cer", 
    :CERT_CERTIFICATE_ID=>"56HRT5HYC6", 
    :SIGH_PROFILE_PATH=>"/Users/xx/Developer/xx/AppStore_com.xx.xx.mobileprovision", 
    :SIGH_PROFILE_PATHS=>["/Users/xxx/Developer/WiredResearch/AppStore_com.xx.xx.mobileprovision"], 
    :SIGH_UDID=>"8bd6dafb-2596-41d9-8907-8c012d23a5ac", 
    :SIGH_PROFILE_TYPE=>"app-store"
 }

编辑:2015/12/04 - 添加证书和叹息输出

[09:46:47]: ------------------
[09:46:47]: --- Step: cert ---
[09:46:47]: ------------------

+-------------+----------------------------------+
|             Summary for cert 1.2.6             |
+-------------+----------------------------------+
| development | false                            |
| force       | false                            |
| username    | xx@xx.com |
| output_path | .                                |
+-------------+----------------------------------+

[09:46:49]: Starting login with user 'xx@xx.com'
[09:46:53]: Successfully logged in
[09:46:56]: Found the certificate 56HRT5HYC6 (WB Technologies) which is installed on the local machine. Using this one.
[09:46:56]: Use signing certificate '56HRT5HYC6' from now on!


[09:46:57]: ------------------
[09:46:57]: --- Step: sigh ---
[09:46:57]: ------------------
+-------------------------------+----------------------------------+
|                      Summary for sigh 1.1.4                      |
+-------------------------------+----------------------------------+
| adhoc                         | false                            |
| skip_install                  | false                            |
| development                   | false                            |
| force                         | false                            |
| app_identifier                | com.xx.xx   |
| username                      | xx@xx.com |
| output_path                   | .                                |
| cert_id                       | 56HRT5HYC6                       |
| skip_fetch_profiles           | false                            |
| skip_certificate_verification | false                            |
+-------------------------------+----------------------------------+

[09:46:57]: Starting login with user 'xx@xx.com'
[09:46:58]: Successfully logged in
[09:46:58]: Fetching profiles...
[09:47:01]: Found 1 matching profile(s)
[09:47:01]: Downloading provisioning profile...
[09:47:02]: Successfully downloaded provisioning profile...
[09:47:02]: Installing provisioning profile...
/Users/hugues/Developer/xx/AppStore_com.xx.xx.mobileprovision
[09:47:02]: Setting 

Provisioning Profile type to 'app-store'

【问题讨论】:

  • certsigh 操作的输出是什么?
  • @mokagio 我已经编辑了我的答案以添加它。谢谢!
  • 我也有同样的问题。你解决了吗?

标签: provisioning-profile fastlane


【解决方案1】:

不要直接使用sighcert,建议使用新的matchcodesigning.guide

【讨论】:

  • 感谢@KrauseFX 提供答案(顺便说一下fastlane)。我看过这个新项目,但我是该项目的唯一开发人员,所以不想设置它,因为我真的不需要它,但如果需要的话,我会的。谢谢
  • @KrauseFx 快速提问,我的用例将使此更改难以维护,因为我有多个 Apple 开发人员帐户(10 多个)用于多个客户应用程序。关于如何在每次我有新客户时无需创建这么多新回购的情况下进行的任何建议?另外,sigh/cert 会被完全弃用并放弃以支持匹配方法吗?
  • sigh 和 cert 将始终存在,因为它们都被 match 用作底层工具。
  • @ KrauseFx 我阅读了CodeSigning.md 文档并决定使用已弃用的 $(PROFILE_UUID) 环境变量方法,因为我对不同的环境(alpha、beta、appstore)有不同的应用标识符并指定@ XCode 项目中的 987654326@ 会阻止我使用不同的应用标识符。所以在我的 Fastfile 中的matchgym 之间,我添加了ENV["PROFILE_UUID"] = ENV["sigh_#{app_id}_adhoc"]。你觉得这对吗?
猜你喜欢
  • 1970-01-01
  • 2010-12-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-02-01
  • 1970-01-01
  • 1970-01-01
  • 2010-10-29
相关资源
最近更新 更多