![](/img/trans.png)
[英]Unable to install Enterprise inHouse provisioning profile on mac
[英]Unable to install enterprise app - This provisioning profile cannot be installed on this device
我正在設置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
有人有什么想法?
這與配置無關。 違規行Failed to unhide archs
意味着您沒有針對給定的體系結構進行編譯(armv7或arm64,具體取決於您安裝的設備)。
我也有不同的錯誤
無法取消隱藏可執行文件中的archs
以及
錯誤MT0000:意外錯誤
要么
錯誤:錯誤MT1006:無法安裝應用程序
要么
AMDeviceSecureInstallApplicationBundle返回:0xe800801c
現在我在以下情況下再次運行:
通常,我建議您更新開發/構建環境並檢查您的證書。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.