无法签署Mac OS X应用 [英] Failed to sign Mac OS X app
问题描述
我正在运行以下代码行以在Mac OS X上对Java应用程序的应用程序进行签名-
I am running this lines of code to sign my app of Java application on Mac OS X -
#!/bin/sh
export CODESIGN_ALLOCATE="/Applications/Xcode.app/Contents/Developer/usr/bin/codesign_allocate"
codesign -s "my name" my.app
codesign -v -v my.app && echo my.app is Signed Successfully!
我已经将所有这些行都写到一个sh(SignApp.sh)文件中,并在成功创建应用程序时运行了这个sh文件,以便以-
I have written these all lines into one sh (SignApp.sh) file and running this sh file on creating app successfully to sign in my build.xml file as -
<target name="SigningApp">
<exec executable="/bin/sh">
<arg value="SignApp.sh"/>
</exec>
</target>
在我的系统上,同一行用于对应用程序进行签名始终可以正常工作.
The same lines to sign app work fine at my system always successfully.
我的应用是在另一台服务器上创建的.但是有时它使用此行代码成功签署了我的应用程序,有时却没有,我使用以下命令在验证应用程序时收到了这些消息: codesign -v -v my.app
-
My app is created at another server machine. But sometime it sign my app successfully with this lines of code, and sometime it do not, I get these message on verification of app using this command codesign -v -v my.app
-
my.app: code object is not signed at all
In architecture: x86_64
另一件事是,在命令提示符下运行以下这些行以手动对应用进行签名-
One more thing is that running these below lines on command prompt manually sign the app -
export CODESIGN_ALLOCATE="/Applications/Xcode.app/Contents/Developer/usr/bin/codesign_allocate"
codesign -s "my name" my.app
推荐答案
尝试使用--deep选项
Try using the --deep option
codesign --deep -s "my name" my.app
对于我来说,它没有任何错误,只是上传并重新下载以查看它是否确实有效.
That has just built without errors for me, just going to upload and redownload to see if it really has worked.
这篇关于无法签署Mac OS X应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!