无法安装企业应用程序 - 无法在此设备上安装此配置文件

7
我正在设置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

有人有什么想法吗?


2
欢迎来到苹果的“证书配置地狱”。 - Coldstar
2个回答

0

我也遇到了不同的错误,例如:

无法在可执行文件中取消隐藏archs

以及

错误MT0000:意外错误

或者

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

或者

AMDeviceSecureInstallApplicationBundle返回:0xe800801c

现在,我通过以下步骤使其重新运行:

  • 清理解决方案
  • 删除obj/bin文件夹中的内容
  • 多次重启设备(Mac、iPad、PC等)

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


0
这与配置无关。 Failed to unhide archs 错误意味着您没有为给定的架构进行编译(根据您安装到的设备而定,可能是armv7或arm64)。

1
我遇到了相同的错误,但我正在为ARMv7 + ARM64编译,这应该是可以的。这个错误应该意味着不同的东西... - testing

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接