English 中文(简体)
只有在成功签署其他条码电话项目之后才能签署密码。
原标题:Codesign only succeeds after other xcode iphone project is successfully signed

我有一个不容置疑的问题。 签署法典拒绝签署我已经签署的大型项目A,但的确是另一个项目B。 然而,当我签署项目B时,它也可以突然签署项目A。 我是肯定的100%,我没有做任何改动。 我采取的步骤是:

Try to build, sign A - fails on signing
Try to build, sign B - succeeds
Try to build, sign A - succeeds

说明:

CodeSign build/Debug-iphoneos/CPPlayer.app
cd /Users/nick/CPPlayer
setenv CODESIGN_ALLOCATE /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/usr/bin/codesign -f -s "iPhone Developer: Nick Overdijk (PM7C8QKTYS)" --resource-rules=/Users/nick/CPPlayer/build/Debug-iphoneos/CPPlayer.app/ResourceRules.plist --entitlements /Users/nick/CPPlayer/build/CPPlayer.build/Debug-iphoneos/CPPlayer.build/CPPlayer.xcent /Users/nick/CPPlayer/build/Debug-iphoneos/CPPlayer.app

/Users/nick/CPPlayer/build/Debug-iphoneos/CPPlayer.app: object file format invalid or unsuitable
Command /usr/bin/codesign failed with exit code 1

图片:

我怎么会错过? 如何做到这一点的想法? 我现在谈一下一切工作,这似乎是我的问题的好兆头,但我要理解正在发生的情况。

Sometimes it also works like this:
Build/sign A - succeeds
Build/sign A - fails
Build/sign B - succeeds (B always seems to succeed)
Build/sign A - succeeds
Build/sign A - fails

因此,在成功建造A之后,我必须建造和签署B,以便能够再次签署A项目。 我可以多次重建B项目,它总是成功。

我不敢肯定,但我试图在模拟器中操作(第3章第3.1.2节的模型)时,它未能相互安装。 因此:

Build/run - Fails
Build/run - Works
Build/run - Fails
Build/run - Works

仅就A项目而言,我就能够像我这样多次建造和经营B项目,我从来没有听到安装失败的信息。

Thanks in advance,
Nick

最佳回答

问题可能太多。

我有同样的问题(替代共同设计的成功和失败)。

我在我的项目中增加了源代码目录,在名录上增加了“现有档案”。 地址是info.plist。 在名录中存档,因此,我现在的项目中有2个。 我删除了新内容,将其从该项目中删除,我的问题已经解决。

问题回答

我也正在与指挥部/usr/bin/coui公司争斗,没有出走第1条错误的信息。

在这方面,我是如何解决的。

Right-click on info.plist 检查目标。 左边的盒子是UNCHECKED。 这是缺省。

以档案为对象,不会对信息目录进行罚款。

搜索具体错误信息

object file format invalid or unsuitable

我谈到这些联系:

http://www.galloway.me.uk/2009/04/json-framework-co Design-object-file-format-invalid-or-unable/

这表明您的资源规则。 名单没有正确确定。 这种解决办法似乎帮助了许多民间人士解决这一问题。

这个问题在我身上发生,尝试了ert、提供情况简介、清理和重新启动等各种组合,挫败了大坝系统确实告诉你问题是什么。 让我保持猜测。 我的解决办法是上述条款。

“可执行名称”必须与“姓名”相匹配。

确实拯救了我在这里找寻。 感谢。

• 确保你在目标中不会有不止一份信息清单。





相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...