【问题标题】:iOS Provisioning Profile - Cannot install (developer cert trust result = 5)iOS 配置文件 - 无法安装(开发者证书信任结果 = 5)
【发布时间】:2023-04-10 03:04:01
【问题描述】:

我最近生成了一个新证书和配置文件,但我无法在设备上安装(安装循环)IPA。

  • 设备已在配置文件中注册
  • 配置文件在设备上
  • 个人资料有效
  • 配置文件在 Xcode 中列出
  • 证书在我的钥匙串里,全是绿色的

我正在使用 Hudson 构建 IPA,在我不得不更新证书和配置文件之前一切正常。

安装时得到的控制台日志:

1 月 10 日 12:12:52 Martins-iPhone SpringBoard[1790]:杀死 com.wci.turntape 以进行应用安装

1 月 10 日 12:12:52 Martins-iPhone itunesstored[1788]:LaunchServices:为现有占位符安装应用程序 LSApplicationProxy:com.wci.turntape(占位符)

1 月 10 日 12:12:52 Martins-iPhone itunesstored[1788]:LaunchServices:创建 installProgressForApplication:LSApplicationProxy:com.wci.turntape (Placeholder) withPhase:1

1 月 10 日 12:12:52 Martins-iPhone lsd[1787]:LaunchServices:将父级的 installPhase 更新为 1

1 月 10 日 12:12:52 Martins-iPhone installd[62] : 0x303000 handle_install_for_ls: 安装 itunesstored 请求的“/var/mobile/Media/Downloads/-3941318386609200153/2973774017215790161”

1 月 10 日 12:12:55 Martins-iPhone installd[62] : 0x303000 MobileInstallationInstall_Server: 安装应用程序 com.wci.turntape

1 月 10 日 12:12:56 Martins-iPhone installd[62] : developer cert trust result = 5

1 月 10 日 12:12:56 Martins-iPhone installd[62] : 0x303000 verify_signer_identity: MISValidateSignatureAndCopyInfo 失败 /var/tmp/install_staging.p38MaR/foo_extracted/Payload/Turntape.app/turntape: 0xe8008018

1 月 10 日 12:12:56 Martins-iPhone installd[62] : 0x303000 do_preflight_verification: 无法在 /var/tmp/install_staging.p38MaR/foo_extracted/Payload/Turntape.app 验证可执行文件

1 月 10 日 12:12:56 Martins-iPhone installd[62] : 0x303000 install_application: 无法预检应用程序安装

1 月 10 日 12:12:56 Martins-iPhone itunesstored[1788] : 0x1e60000 MobileInstallationInstallForLaunchServices: failed with -1

1 月 10 日 12:12:56 Martins-iPhone itunesstored[1788]:错误:MobileInstallationInstallForLaunchServices 返回 nil

1 月 10 日 12:12:56 Martins-iPhone lsd[1787]:LaunchServices:应用程序 com.wci.turntape 安装失败

日志中的任何内容对任何人都有影响吗? 但我所有的

我发现这个人有同样的问题 http://community.phonegap.com/nitobi/topics/error_on_installation-p3psw 但他的解决方案是更新他过期的证书(这是我最初所做的)。

【问题讨论】:

    标签: ios certificate provisioning-profile


    【解决方案1】:

    流了很多血后,我找到了问题的原因......

    新证书现在有一个组织单位 ID(我的是 YXW8YWB9K4)有一个证书后缀。 Hudson 被配置为查找不带此后缀的证书。

    问题是我们还有一个企业证书,而构建在两个证书之间变得混乱。有了以前的证书,就没有歧义了,因为没有后缀。

    所以我必须添加后缀我的构建参数。

    示例: “iPhone 分销:Company Inc”

    我的证书是:

    “iPhone 分销:Company Inc (YXW8YWB9K4)” “iPhone 分销:Company Inc (Ent)”

    顺便说一句,对于那些拥有企业帐户的人,Apple 的建议是为这些证书使用单独的钥匙串。

    【讨论】:

    • 我还有一个开发者和一个企业程序。当我更新证书时,我的开发人员程序得到了后缀。我遇到了这个问题,因为我试图用我自己的脚本重新签署一个没有考虑后缀的 .ipa 文件。感谢您发布此解决方案。
    【解决方案2】:

    请再次检查您分发的 IPA 是否使用正确的配置文件进行签名。确保您的新证书具有匹配配置文件的捆绑标识符。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-05-21
      • 2011-07-11
      • 2011-09-23
      • 1970-01-01
      • 2012-05-08
      • 1970-01-01
      • 2016-12-21
      • 1970-01-01
      相关资源
      最近更新 更多