陷入“命令/ usr / bin / codesign失败并退出代码1”错误

时间:2011-10-15 10:21:01

标签: iphone xcode4 xcode3.2 codesign

在我与xcode 3.2.5并行安装xcode 4.2后,我的所有项目都出现以下错误。当我为测试人员创建一个adhoc包时,我收到错误。

enter image description here

我该如何解决这个问题?

我已经浏览了以下博客,但找不到任何解决方案。

  1. Command /usr/bin/codesign failed with exit code 1

  2. http://www.iphonedevsdk.com/forum/iphone-sdk-development/9370-codesign-failed-exit-code-1-a.html

  3. http://blog.emmerinc.be/index.php/2009/03/26/codesign-failed-with-exit-code-1/
  4. /usr/bin/codesign failed with exit code 1

1 个答案:

答案 0 :(得分:3)

当我使用Makefile手动构建和签署iOS应用程序包时,我看到了这个错误。在这种情况下,我的Info.plist缺少CFBundleResourceSpecification密钥(可能应该具有值ResourceRules.plist)。我现在做了一些测试,如果缺少键CFBundleExecutable,也会发生这种情况。

应该在Xcode的某个构建阶段添加

CFBundleResourceSpecification,但是如果它确实在那里,那么检查构建目录中的结果Info.plist是个好主意。

也许这篇博文可能会有所帮助,这是codesign找到错误的Info.plist文件(没有CFBundleResourceSpecification的文件) http://infinite-sushi.com/2010/08/the-case-of-the-missing-cfbundleresourcespecification/

相关问题