更新到OSX 10.9.5后如何更改对Java应用程序进行签名的方式 [英] How do I change how I sign Java application after updating to OSX 10.9.5

查看:164
本文介绍了更新到OSX 10.9.5后如何更改对Java应用程序进行签名的方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚从OSX 10.9.4更新到10.9.5,看起来我必须在更新后更改对Java应用程序进行签名的方式,因为Im现在在使用进行签名后就得到了此输出

Just updated from OSX 10.9.4 to 10.9.5, looks like I have to change how I sign Java application after updating because Im now getting this output after signing with

export CODESIGN_ALLOCATE="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate"
/usr/bin/codesign --sign "Developer ID Application: P Taylor" --force --deep --verbose /Applications/SongKong.app

我得到了

/Applications/SongKong.app: the main executable or Info.plist must be a regular file (no symlinks, etc.)
In subcomponent: /Applications/SongKong.app/Contents/PlugIns/jdk1.8.0_20.jdk

并通过

/usr/bin/codesign --verify --deep  --verbose /Applications/SongKong.app

给我

/Applications/SongKong.app: code object is not signed at all
In architecture: x86_64

要解决此问题,我需要更改什么?

What do I have to change to fix this ?

推荐答案

问题是从19.9.5版本开始,codesign不允许您对包含符号链接的文件夹进行签名,我认为以前它忽略了该问题.

The problem is that from 19.9.5 onwards codesign doesn't let you sign folders containing symbolic links, I think previously it ignored the problem.

在我的特殊情况下,我制作了libjli.dylib的副本,并用该副本替换了symblic链接.这项工作奏效了,由于进行了更改,我没有遇到任何问题.

In my particular case I made a copy of the libjli.dylib and replaced the symblic link with this copy. This worked and Ive not encountered any problems due to making this change.

rm /Applications/MyApp.app/Contents/PlugIns/jdk1.8.0_25.jdk/Contents/MacOS/libjli.dylib
cp /Applications/MyApp.app/Contents/PlugIns/jdk1.8.0_25.jdk/Contents/Home/jre/lib/jli/libjli.dylib /Applications/SongKong.app/Contents/PlugIns/jdk1.8.0_25.jdk/Contents/MacOS
export CODESIGN_ALLOCATE="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate"

/usr/bin/codesign --sign "Developer ID Application: My Name" --force --deep --verbose /Applications/MyApp.app
/usr/bin/codesign --verify --deep  --verbose /Applications/MyApp.app

这篇关于更新到OSX 10.9.5后如何更改对Java应用程序进行签名的方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆