分段错误:尝试对.app进行代码签名时为11 [英] Segmentation fault: 11 when attempting to codesign .app
问题描述
我无法找到与代码签名有关的此错误的定义.我真的很沮丧.
I haven't been able to find a definition for this error in relation to codesigning. I'm really quite stumped as of what to do.
尝试执行此命令行时发生错误:
The error occurs when attempting to execute this command line:
codesign -s "Developer ID Application: Name (ID)" -fv --deep Application.app/
系统:
优胜美地10.10.3上的XCode 6.2
XCode 6.2 on Yosemite 10.10.3
我重新安装了XCode,仍然没有任何运气.这是用于桌面应用程序.
I've reinstalled XCode, still without any luck. This is for a desktop application.
很抱歉,这是一个愚蠢的问题!
Apologies if this is a silly question!
推荐答案
我在 Apple论坛为我工作:首先,运行以下命令以找到您身份的十六进制ID:
A solution I found on the Apple forum worked for me: first, run the following command to find your identity's hex ID:
$ security find-identity -v
1) A048017A43F8C9C993128B0101B81CD07049601E "lldb_codesign"
...
然后您可以使用该十六进制标识符进行签名:
Then you can use that hex identifier to sign:
codesign -s A048017A43F8C9C993128B0101B81CD07049601E /usr/local/bin/gdb
我在调试时遇到了一些其他提示:
Some other tips I came across while debugging this:
- 您必须提供二进制文件的完整路径(
/usr/local/bin/gdb
,而不仅仅是gdb
).出于安全原因,我认为它不会显示在PATH上. - 如果二进制文件所在的目录不是用户所有,则必须以root用户身份运行codesign.
- You have to give the full path to the binary (
/usr/local/bin/gdb
, not justgdb
). It won't look on the PATH, I assume for security reasons. - You have to run the codesign as root if the directory your binary is in is not user-owned.
这篇关于分段错误:尝试对.app进行代码签名时为11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!