我正在设置Jenkins来构建企业版应用程序,以便在我们的内部应用商店中分发。
如果我在Xcode中存档该应用程序,然后下载构建的.ipa文件到手机上安装,就没有任何问题;但是当我使用与相同私钥/证书/配置文件生成的Jenkins .ipa时,安装失败,并显示以下错误:“无法下载应用程序-此时不能安装应用程序名称”。
如果我在Xcode中检查控制台,我可以看到更多详细的错误,“此配置文件无法安装在此设备上”。
以下是日志的一部分。
如果我在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
有人有什么想法吗?