my workflow requires signing a mac .app, rsyncing to a linux box (rsync -aHv --acls --xattrs, also tried many other combinations), zipping together with other files and then deploying and unzipping to another mac.
on pre-macOS Sierra the .app opens and executes successfully, but on a Sierra osx box i'm getting "can’t be opened because it is from an unidentified developer" after verification. codesign -vv also spits "code object is not signed at all".
only if the .app is tar-ed and then transferred the .app runs without the "unidentified developer" error, but that is not an option.
any hints how to make this work? is it possible at all to preserve the .app so codesigning info is preserved? diff/cmp didn't show any differences between a rsynced/zipped file and the original file
答案 0 :(得分:0)
根据Apple的技术说明TN2206,推荐的软件分发方式是使用已签名的dmg磁盘映像。如果您希望您的软件在macOS Sierra上运行,则尤其如此。请阅读本技术说明,其中说明了可能的错误(最后)以及如何签署磁盘映像。您也可以使用zip文件,但Apple不建议这样做。