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

Ios 无法安装企业应用程序-无法在此设备上安装此配置文件,ios,xcode,jenkins,Ios,Xcode,Jenkins,我正在设置Jenkins来构建应用程序的企业版,以便在我们的内部应用程序商店中分发 如果我将应用程序存档在Xcode中,然后在手机上下载build.ipa,则应用程序安装时不会出现任何问题;但当我使用Jenkins生成的具有相同私钥/证书/配置文件的.ipa时,安装失败,并出现以下错误:“无法下载应用程序-此时无法安装应用程序名” 如果我在Xcode中检查控制台,我可以看到更多详细信息错误,如“此配置文件无法安装在此设备上” 这是日志的一部分 <Notice>: 0x16e12f00

我正在设置Jenkins来构建应用程序的企业版,以便在我们的内部应用程序商店中分发

如果我将应用程序存档在Xcode中,然后在手机上下载build.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
:0x16e12f000-[MIInstaller performInstallationWithError:]:安装
:尝试安装无效的配置文件:0xe8008012
:0x16e12f000-[MIInstallableBundle\u installEmbeddedProfileInBundle:]:无法安装嵌入式配置文件:0xe8008012(无法在此设备上安装此配置文件。)
:0x16e12f000 MimachounhidearchsAvingoriginalHeader:未能打开“/private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.YMpQfe/extracted/Payload/appName.app/appName”:无此类文件或目录
:0x16e12f000-[MIInstallableBundle性能验证错误:]:696:未能取消隐藏可执行文件中的ARCHfile:///private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.YMpQfe/extracted/Payload/appName.app/appName
:0x16e12f000-[MIInstaller performInstallationWithError:]:验证阶段失败
:0x16e247000 uu mobileininstallationinstallforlaunchservices u block u invoke222:返回错误Domain=miinstallerrordomain Code=14“未能取消隐藏可执行文件中的ARCHfile:///private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.YMpQfe/extracted/Payload/appName.app/appName“用户信息={SourceFileLine=696,NSLocalizedDescription=未能取消隐藏可执行文件中的ARCHfile:///private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.YMpQfe/extracted/Payload/appName.app/appName,FunctionName=-[MIInstallableBundle performVerificationWithError:]
:错误:MobileInstallationInstallForLaunchServices返回零

有人知道吗?

这与设置无关。有问题的行
未能取消隐藏ARCH
意味着您没有针对给定的体系结构(armv7或arm64,具体取决于您安装到的设备)进行编译。

我还遇到了不同的错误,如

未能取消隐藏可执行文件中的ARCH

以及

错误MT0000:意外错误

错误:错误MT1006:无法安装应用程序

返回的AMDeviceSecurityApplicationBundle:0xe800801c

现在,我让它再次运行后:

  • 清洗液
  • 删除obj/bin文件夹的内容
  • 多次重启设备(Mac、iPad、PC等)

一般来说,我建议您更新开发/构建环境,并检查您的证书。

欢迎来到苹果的“配置地狱”,我收到了相同的错误,但我是为ARMv7+ARM64编译的,这应该没问题。错误的含义应该有所不同。。。