用于Mac OS App Store应用程序的altool upload-app的预期文件格式?

问题描述 投票:1回答:1

我使用以下命令打包我的Mac App Store应用程序

xcrun altool --upload-app --file MyApp.??? --type osx <credentials>

[在一些示例中,他们使用MyApp.zip作为文件,有些是MyApp.pkg

[altool似乎不满意简单地将MyApp.app作为一个zip文件,它不断抛出有关Info.plist的许多错误,这些错误是不准确的。

到目前为止,我获得的最大成功是使用productbuild创建了pkg,但是现在要求我使用“第三方Mac开发者安装程序”证书对其进行签名。

是否需要创建一个签名的PKG才能使用altool部署到Mac App Store,还是有其他选择?

xcode continuous-integration mac-app-store
1个回答
0
投票

答案似乎是,是的,需要PKG。

没有充分的文档证明,但是Mac App Store似乎在交付时使用PKG来安装您的应用程序。

您必须创建以下内容:

  • PKG交货
  • Mac App的签名证书
  • Mac安装程序的签名证书。

这是一个对我有用的脚本示例。

codesign -vfs "3rd Party Mac Developer Application: MyGreatCompany (XXXXXXXX)" MyApp.app

xcrun productbuild --component MyApp.app /Applications/ myapp.unsigned.pkg

xcrun productsign --sign "3rd Party Mac Developer Installer: MyGreatCompany (XXXXXXXX)" myapp.unsigned.pkg myapp.pkg

xcrun altool --upload-app --file myapp.pkg --type osx
© www.soinside.com 2019 - 2024. All rights reserved.