【问题标题】:Alttool Manual Notarisation of App - The operation couldn’t be completed. Is a directory Is a directory (21)Alttool Manual Notarisation of App - 操作无法完成。是目录 是目录 (21)
【发布时间】:2021-12-22 11:04:24
【问题描述】:

我在直接在 Xcode 中对应用程序进行公证时遇到问题。即使我已接受所有协议并更新了所需的银行信息,上传步骤仍停留在使用 Apple 服务进行身份验证时。所以我正在尝试使用 alttool 来公证我的应用程序。

  • 生成的应用专用密码
  • 使用以下命令

但我不断收到错误

my-MacBook-Pro:1.3 my$ xcrun altool --notarize-app --primary-bundle-id "me.myapp" --username me@live.com --password mypass  --file "myapp.app"
*** Error: Notarization failed for 'myapp.app'.
*** Error: The operation couldn’t be completed. Is a directory Is a directory (21)
 {
    "_kCFStreamErrorCodeKey" = 21;
    "_kCFStreamErrorDomainKey" = 1;
}

我在 macOS Monterey 12.0.1 上运行 Xcode 13.1

【问题讨论】:

    标签: xcode macos xcrun


    【解决方案1】:

    如果它仍然是实际的,你需要先压缩你的二进制文件,然后尝试对其进行公证

    xcrun altool --notarize-app --primary-bundle-id "your.app.id.here" --username="your_account" --password "keychain_or_password" --file your_binary.zip
    

    不要忘记用真实值更新

    【讨论】:

      猜你喜欢
      • 2012-12-24
      • 1970-01-01
      • 2021-06-13
      • 2023-03-10
      • 2018-06-20
      • 2022-12-07
      • 2021-06-02
      • 2017-01-14
      • 1970-01-01
      相关资源
      最近更新 更多