yan*_*ano 5 xcode continuous-integration mac-app-store
我正在使用以下命令打包 Mac App Store 的应用程序
xcrun altool --upload-app --file MyApp.??? --type osx <credentials>
Run Code Online (Sandbox Code Playgroud)
我在一些示例中看到他们用作MyApp.zip
文件,有些是MyApp.pkg
.
altool
似乎对简单的 zip 文件不满意MyApp.app
,不断抛出很多关于 Info.plist 的错误,这些错误不准确。
到目前为止,我取得的最成功的是使用productbuild
创建一个pkg
,但现在要求我使用我的“3rd Party Mac Developer Installer”证书对其进行签名。
是否需要创建签名的 PKG 才能使用 部署到 Mac App Store altool
,还是有其他替代方案?
答案似乎是,是的,需要 PKG。
虽然没有详细记录,但 Mac App Store 似乎使用 PKG 在交付时安装您的应用程序。
您必须创建以下内容:
这是一个对我有用的脚本示例。
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
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1000 次 |
最近记录: |