/usr/bin/codedesign 失败,退出代码为 1

/usr/bin/codedesign 失败,退出代码为 1

问题描述:

我正在尝试部署我的第一个开发 iPhone 应用程序,但遇到了一些问题.我已经成功通过在线 Provisioning Assistant,但现在我被卡住了.无论我做什么,我总是收到以下错误.

I am attempting to deploy my first development iPhone app, and am running into some problems. I have successfully went though the online Provisioning Assistant, but now I am stuck. No matter what I do, I always get the following error.

/usr/bin/codesign 失败,退出代码为 1

/usr/bin/codesign failed with exit code 1

有人知道为什么会这样吗?

Anyone have any ideas why this is happening?

更新:
我的原始答案中的技术说明现已弃用.Apple 在新文档中发布了一系列代码签名问题(以及一些解决方案):技术说明 TN2407代码签名故障排除索引

检查构建设置中的 CODE_SIGN_IDENTITY 属性.是否在那里选择了您的配置文件?
您还需要在您的应用 .plist 中输入一个有效的包标识符.
标识符必须与您在生成配置文件时提供的标识符相匹配.
Apple 在此处有关于此的技术说明.

Check the CODE_SIGN_IDENTITY property in your build settings. Is your provisioning profile selected there?
You also need to enter a valid bundle identifier in your apps .plist.
The identifier has to match the one you provided when generating the profile.
Apple has a technote about that here.