无法安装企业应用程序 – 此设备无法安装此配置文件

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

如果我在Xcode中存档应用程序,然后在手机上下载内置的.ipa,应用程序安装没有任何问题; 但是当我使用与Jenkins一起使用相同的私钥/证书/配置文件生成的.ipa时,安装失败并出现以下错误:“无法下载应用程序 – 此时无法安装应用程序名称”

如果我在Xcode中检查控制台,我可以看到更多细节错误,因为“此设备无法安装此配置文件”

这是日志的一部分

: 0x16e12f000 -[MIInstaller performInstallationWithError:]: Installing  : attempt to install invalid profile: 0xe8008012 : 0x16e12f000 -[MIInstallableBundle _installEmbeddedProfileInBundle:]: Could not install embedded profile: 0xe8008012 (This provisioning profile cannot be installed on this device.) : 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 : 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 : 0x16e12f000 -[MIInstaller performInstallationWithError:]: Verification stage failed : 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:]} : ERROR: MobileInstallationInstallForLaunchServices returned nil 

谁有任何想法?

这与配置无关。 违规行Failed to unhide archs意味着您没有针对给定的体系结构进行编译(armv7或arm64,具体取决于您安装的设备)。