0

我的 Java 应用程序签名如下

/usr/bin/codesign --force --sign XXXXXXXXXXXXXXXXXXXXXXXXX --requirements "=designated => anchor apple generic and identifier \"com.jthink.jaikoz\" and ((cert leaf[field.1.2.840.113635.100.6.1.9] exists) or ( certificate 1[field.1.2.840.113635.100.6.2.6] exists and certificate leaf[field.1.2.840.113635.100.6.1.13] exists and certificate leaf[subject.OU] = \"9VEBH439W3\" ))" /Applications/Jaikoz.app

但它不再起作用会发出警告

/Applications/Jaikoz.app: code object is not signed at all
In subcomponent: /Applications/Jaikoz.app/Contents/PlugIns/jdk1.7.0_40.jdk
./buildosx.sh: line 16: --/usr/bin/codesign: No such file or directory

自从更新到 Mavericks 并安装 Xcode 5.0.1

所以我想知道我是否必须重新生成密钥。以前我按照一些说明在 Xcode 中创建应用程序,构建和复制一些构建输出,但我找不到要复制的构建输出,请任何人指出正确的方向。

4

1 回答 1

0

看来我现在必须使用该--deep选项

我还发现我可以只按名称引用证书

例如

    export CODESIGN_ALLOCATE="/Applications/Xcode.app/Contents/Developer
/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate"
    /usr/bin/codesign --deep  --force --sign "Developer ID Application: P Taylor" /Applications/Jaikoz.app
    /usr/bin/codesign --deep -v /Applications/Jaikoz.app
于 2013-10-30T12:19:45.380 回答