【问题标题】:Unable to install enterprise app - This provisioning profile cannot be installed on this device无法安装企业应用程序 - 此配置文件无法安装在此设备上
【发布时间】:2015-09-29 15:22:03
【问题描述】:

我正在设置 Jenkins 来构建应用的企业版,以便在我们的内部应用商店中分发。

如果我在 Xcode 中存档应用程序,然后在手机上下载构建的 .ipa,则应用程序安装没有任何问题;但是当我使用 Jenkins 生成的具有相同私钥/证书/配置文件的 .ipa 时,安装失败并出现以下错误:“无法下载应用程序 - 此时无法安装应用程序名称”

如果我在 Xcode 中检查控制台,我会看到更多详细信息错误,例如“无法在此设备上安装此配置文件”

这是部分日志

<Notice>: 0x16e12f000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=af11a784-f15d-4291-92a1-0e0c54fc4ee9; Version=13, ShortVersion=0.0.1>
<Notice>: attempt to install invalid profile: 0xe8008012
<Error>: 0x16e12f000 -[MIInstallableBundle _installEmbeddedProfileInBundle:]: Could not install embedded profile: 0xe8008012 (This provisioning profile cannot be installed on this device.)
<Error>: 0x16e12f000 MIMachOUnhideArchsSavingOriginalHeader: Failed to open "/private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.YMpQfe/extracted/Payload/appName.app/appName": No such file or directory
<Error>: 0x16e12f000 -[MIInstallableBundle performVerificationWithError:]: 696: Failed to unhide archs in executable file:///private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.YMpQfe/extracted/Payload/appName.app/appName
<Error>: 0x16e12f000 -[MIInstaller performInstallationWithError:]: Verification stage failed
<Error>: 0x16e247000 __MobileInstallationInstallForLaunchServices_block_invoke222: Returned error Error Domain=MIInstallerErrorDomain Code=14 "Failed to unhide archs in executable file:///private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.YMpQfe/extracted/Payload/appName.app/appName" UserInfo={SourceFileLine=696, NSLocalizedDescription=Failed to unhide archs in executable file:///private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.YMpQfe/extracted/Payload/appName.app/appName, FunctionName=-[MIInstallableBundle performVerificationWithError:]}
<Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil

有人知道吗?

【问题讨论】:

  • 欢迎来到 Apple 的“供应地狱”

标签: ios xcode jenkins


【解决方案1】:

这与配置无关。违规行 Failed to unhide archs 表示您没有针对给定架构进行编译(armv7 或 arm64,具体取决于您安装到的设备)。

【讨论】:

  • 我得到了同样的错误,但我正在为 ARMv7 + ARM64 编译,应该没问题。错误应该意味着不同的东西......
【解决方案2】:

我也有不同的错误,比如

无法取消隐藏可执行文件中的拱门

还有

错误 MT0000:意外错误

错误:错误 MT1006:无法安装应用程序

AMDeviceSecureInstallApplicationBundle 返回:0xe800801c

现在我让它再次运行:

  • 清洗液
  • 删除 obj/bin 文件夹的内容
  • 设备(Mac、iPad、PC...)多次重启

一般来说,我建议您更新开发/构建环境并检查您的证书。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-05-25
    • 2014-11-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多