[英]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: 现在我在以下情况下再次运行:
In general, I recommend to update you development/build environment and to also check your certificates. 通常,我建议您更新开发/构建环境并检查您的证书。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.