我有一个不容置疑的问题。 签署法典拒绝签署我已经签署的大型项目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