【问题标题】:Intune wrapping tool not able to sign the ipa fileIntune 包装工具无法对 ipa 文件进行签名
【发布时间】:2022-02-23 23:16:20
【问题描述】:

我正在尝试使用 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.}

【问题讨论】:

  • 您的 ipa 是否包含任何 swift 库(在 XX.app/Frameworks/libswift* 中)?如果是,请检查您的项目是否将“始终嵌入 Swift 标准库”选项设置为“是”。尝试将其更改为 NO。

标签: ipa intune


【解决方案1】:
  1. 在您的 mac 系统上打开钥匙串。
  2. 在钥匙串的“证书”选项卡中搜索 iOS 分发证书并展开证书。
  3. 选择私钥并右键单击它 --> 点击选项“获取信息”
  4. 转到“访问控制”选项卡。
  5. 选择“允许所有应用程序访问此项目”。
  6. 输入 mac 登录名或系统管理员密码,然后单击允许保存更改。
  7. 在 mac 系统上以 root 访问权限打开终端并按给定顺序执行以下两个命令。

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

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

  1. 重新运行打包步骤以成功打包 ios 应用实例。

#如果上述步骤帮助您解决问题,请点赞此贡献。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-12-12
    • 1970-01-01
    • 2022-08-04
    • 2014-02-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多