简体   繁体   English

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

[英]Unable to install enterprise app - This provisioning profile cannot be installed on this device

I'm setting up Jenkins to build an enterprise version of an app in order to be distributed in our internal app store. 我正在设置Jenkins来构建应用程序的企业版,以便在我们的内部应用程序商店中分发。

If I archive the app in Xcode and then download the built .ipa on the phone the app is installed without any issue; 如果我在Xcode中存档应用程序,然后在手机上下载内置的.ipa,应用程序安装没有任何问题; but when I use the .ipa generated with Jenkins with the same private key/certificate/provisioning profile, installation fails with the following error: "Unable to Download App - App name could not be installed at this time" 但是当我使用与Jenkins一起生成的.ipa使用相同的私钥/证书/配置文件时,安装失败并出现以下错误:“无法下载应用程序 - 此时无法安装应用程序名称”

If I check the console in Xcode I can see some more details errors as "This provisioning profile cannot be installed on this device" 如果我在Xcode中检查控制台,我可以看到更多细节错误,因为“此配置文件无法在此设备上安装”

Here is part of the log 这是日志的一部分

<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

Anyone any idea? 有人有什么想法?

This has nothing with provisioning. 这与配置无关。 Offending line Failed to unhide archs means that you're not compiling for given architecture (armv7 or arm64 depending on the device you install to). 违规行Failed to unhide archs意味着您没有针对给定的体系结构进行编译(armv7或arm64,具体取决于您安装的设备)。

I had also different errors like 我也有不同的错误

Failed to unhide archs in executable file 无法取消隐藏可执行文件中的archs

as well as 以及

error MT0000: Unexpected error 错误MT0000:意外错误

or 要么

Error: error MT1006: Could not install the application 错误:错误MT1006:无法安装应用程序

or 要么

AMDeviceSecureInstallApplicationBundle returned: 0xe800801c AMDeviceSecureInstallApplicationBundle返回:0xe800801c

Now I got it running again after: 现在我在以下情况下再次运行:

  • Cleaning solution 清洁液
  • Deleting content of obj/bin folders 删除obj / bin文件夹的内容
  • Multiple restart of devices (Mac, iPad, PC, ...) 多次重启设备(Mac,iPad,PC,...)

In general, I recommend to update you development/build environment and to also check your certificates. 通常,我建议您更新开发/构建环境并检查您的证书。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法在Mac上安装Enterprise inHouse置备配置文件 - Unable to install Enterprise inHouse provisioning profile on mac 无法在 iOS 10 中使用分布式配置文件验证企业应用程序 - Cannot verify enterprise app using distributed provisioning profile in iOS 10 企业应用程序分发设置配置文件是否绑定到特定设备/设备是否需要安装该配置文件? - Is an enterprise app distribution provisioning profile tied to specific devices / do devices need to have the profile installed? 设备未采用替代企业发行设置配置文件 - Replacement enterprise distribution provisioning profile not adopted by device iOS企业版程序:无法在我们的其中一台设备上安装使用内部供应配置文件创建的IPA文件 - iOS Enterprise program: not able to install IPA file created using in-house provisioning profile on one of our device iOS企业应用分发版-设置配置文件已过期 - iOS Enterprise App Distribution – Provisioning Profile expired iOS App Enterprise部署:库的配置文件 - iOS App Enterprise Deployment: Provisioning Profile for Libraries 通过iTunes在iOS 8设备上安装配置文件 - Install a provisioning profile on iOS 8 device through iTunes 如何使用企业iOS帐户在设备上安装预配证书以进行OTA(无线)应用分发 - How to install Provisioning Certificate on the device for OTA (wireless) App distribution with Enterprise iOS account 尽管已将其配置文件从开发人员门户中删除,但已安装的iOS应用仍可以在设备中运行 - The installed iOS app can run in the device in-spite its provisioning profile has deleted from Developer portal
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM