codesign --deep on Mavericks xcode 5.0 (5A1412) [英] codesign --deep on mavericks xcode 5.0 (5A1412)
问题描述
我正在使用 codesign
和 —deep
选项.
I am using codesign
with —deep
option.
/usr/bin/codesign --verbose --force --sign "Developer ID Application: myCompany" —deep myApp.app
在 10.8 上运行良好
on 10.8 its working fine
$ codesign -vvv myApp.app
myApp.app: valid on disk
myApp.app: satisfies its Designated Requirement
但在 10.9 上,我收到 嵌套代码被修改或无效
.
But on 10.9 i am getting nested code is modified or invalid
.
$ codesign -vvv myApp.app
myApp.app: nested code is modified or invalid
file modified: myApp.app/Contents/MacOS/SecondUtility
我在 MacOS 文件夹中有两个可执行文件,一个来自构建阶段(目标:可执行文件)
I have two executable in MacOS folder, one is from build phase(Destination: executables)
$codesign -vvv myApp.app/Contents/MacOS/SecondUtility
myApp.app/Contents/MacOS/SecondUtility: valid on disk
myApp.app/Contents/MacOS/SecondUtility: does not satisfy its designated Requirement
使用代码签名 shell 命令运行脚本 对我也不起作用.
有人可以帮我吗?
推荐答案
在 Xcode 5 中创建构建后,再次对 SecondUtility 和 myApp.app 进行代码签名.
After creating build in Xcode 5, again code sign SecondUtility and myApp.app.
sudo /usr/bin/codesign --verbose --force --sign "Developer ID Application: myCompany" myApp.app/Contents/MacOS/SecondUtility
sudo /usr/bin/codesign --verbose --force --sign "Developer ID Application: myCompany" myApp.app
现在工作正常.
使用代码签名 shell 命令运行脚本对我不起作用.
Run Script with the code sign shell command is not working for me.
编辑
看看 OS X 代码深度签名
从 OS X 版本 10.9.5 开始,OS X 识别签名应用的方式将会发生变化
Beginning with OS X version 10.9.5, there will be changes in how OS X recognizes signed apps
Structure your bundle according to the expectations for OS X version 10.9 or later:
- 仅在应包含已签名的目录中包含已签名的代码代码.
- 只包含目录中应该包含的资源
资源. - 不要使用 --resource-rules 标志或 ResourceRules.plist.他们已过时,将被拒绝.
这篇关于codesign --deep on Mavericks xcode 5.0 (5A1412)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!