如何沙箱和使用Esky构建的OSX的codeign python应用程序?

时间:2016-05-26 02:46:47

标签: macos python-2.7

我已经构建了python应用程序,然后用Esky编译为OSX。 然后我想将它提交到苹果商店,我按照本教程http://dafoster.net/articles/2014/06/24/submitting-a-python-app-to-the-mac-app-store/

并检查RB检查和结果: the result of RB check

当我对两个框架中的一个进行协同编码时,使用系统名称但未经Apple签名,我会收到错误:

/Contents/Frameworks/Python.framework: bundle format unrecognized, invalid, or unsuitable

有人可以帮助我吗?

1 个答案:

答案 0 :(得分:1)

我无法告诉您如何对使用Esky构建的应用进行协同设置(这很难......)。但是为了摆脱你的错误,你可以按照以下几点做一些事情:

codesign --deep --verbose -s "Developer ID Application: Your Name" .../Contents/Frameworks/Python.framework/Versions/3.4
ln -s .../Contents/Frameworks/Python.framework/Versions/3.4 .../Contents/Frameworks/Python.framework/Versions/Current
codesign --deep --verbose -s "Developer ID Application: Your Name" your-app.app

我们的想法是对框架的特定版本进行编码,创建指向该版本的Current链接,然后对整个应用进行编码。