Intune 包装工具无法对 ipa 文件进行签名

问题描述

我正在尝试使用 Intune 包装工具包装我的 .ipa 文件并出现以下错误。有人可以帮忙吗。

警告:无法验证证书吊销检查的系统设置。如果您想强制执行证书吊销检查,请运行以下命令 - 'defaults write com.apple.security.revocation CRLStyle BestAttempt' 和 'defaults write com.apple.security.revocation OCSPStyle BestAttempt'

这是完整的日志。

Application packaging in progress...
Version of MACOSX is 10.15.7
Version of XCode installed is Xcode 12.4
Build version 12D4e

Parsing provisioning profile...
Parsing main app provisioning profile...
Parsing extension provisioning profiles...
Checking that main provisioning profile has not expired...
Checking that extension provisioning profiles have not expired...
Checking if signing certificate is valid...
Provided certificate name length matches that of SHA1 hash.
Number of certificates returned by query: 4
Checking certificate at index: 0
Getting certificate common name.
Computing SHA-1 fingerprint of current certificate.
Computing SHA-1 fingerprint of provided certificate.
Checking certificate at index: 1
Getting certificate common name.
Computing SHA-1 fingerprint of current certificate.
Computing SHA-1 fingerprint of provided certificate.
Possible fingerprint match found. Checking if certificate is contained in provisioning profile...
Computing SHA-256 fingerprint of certificate.
Checking if SHA-256 hash exists in provisioning profile.
Certificate was found in the provisioning profile.
Checking if certificate issuer is Apple.
Checking if signing certificate is found in each extension profile...
Creating temporary directories...
Input Parameters
 Path to input application:     /Users/madansandiri/Downloads/XX-5.2.7-unsigned.ipa
 Path to output application:    /Users/madansandiri/Downloads/XX-wrapped.ipa
 Provisioning profile:          /Users/madansandiri/Downloads/Intune_Test.mobileprovision
 Certificate:       B7 XX XX XA X1 XX XB 2F XX 3C 1A XX 7C BD XX XX XX 57 AD FB
Packager Version: 14.3.5,Packager Build: 2104.5,App Build: 5,Concatenated Build: 2123.8.5
The app's Frameworks directory Could not be signed. This may be because it contains files whose format was unrecognized,invalid,or unsuitable.
Cause of the error to be provided for investigation:Error Domain=IntuneAppPackager Code=1 "/usr/bin/codesign exited with an error." UserInfo={Error Description=SignFrameworksError,NSLocalizedDescription=/usr/bin/codesign exited with an error.}

解决方法

  1. 在具有 root 访问权限的 Mac 系统上打开终端
  2. 按给定顺序执行以下两个命令。

默认写入 com.apple.security.revocation CRLStyle BestAttempt

默认写入 com.apple.security.revocation OCSPStyle BestAttempt

  1. 重新运行包装步骤以获得成功的 ios 应用程序包装实例