无法安装企业应用程序 - 此设备无法安装此配置文件 [英] Unable to install enterprise app - This provisioning profile cannot be installed on this device
问题描述
我正在设置Jenkins来构建应用程序的企业版,以便在我们的内部应用商店中发布。
I'm setting up Jenkins to build an enterprise version of an app in order to be distributed in our internal app store.
如果我在Xcode中存档应用程序然后在手机上下载内置的.ipa,应用程序安装没有任何问题;但是当我使用与Jenkins一起使用相同的私钥/证书/配置文件生成的.ipa时,安装失败并出现以下错误:无法下载应用程序 - 此时无法安装应用程序名称
If I archive the app in Xcode and then download the built .ipa on the phone the app is installed without any issue; 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"
如果我在Xcode中查看控制台,我可以看到更多细节错误,因为此设备上无法安装此配置文件
If I check the console in Xcode I can see some more details errors as "This provisioning profile cannot be installed on this device"
以下是日志的一部分
<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
有人知道吗?
推荐答案
这与配置无关。违规行无法取消隐藏拱门
表示您没有针对给定的体系结构进行编译(armv7或arm64,具体取决于您安装的设备)。
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).
这篇关于无法安装企业应用程序 - 此设备无法安装此配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!