简体   繁体   English

代码符号错误XCode 4.2

[英]Code sign error XCode 4.2

i386: No such file or directory
Command /usr/bin/codesign failed with exit code 1

I'm getting this error and can't figure out why. 我收到此错误,无法弄清原因。 My valid architectures are set to armv6 armv7 i386. 我的有效架构设置为armv6 armv7 i386。 The project builds and runs fine on the iPad and iPhone simulators, but when I come to build for archive/run with a device it fails. 该项目可以在iPad和iPhone模拟器上构建并正常运行,但是当我使用设备进行存档/运行时,它会失败。 I've also tried to run the project on multiple devices but have the same problem on all. 我也尝试过在多个设备上运行该项目,但是在所有设备上都存在相同的问题。

Anyone know why I may be getting this problem? 有人知道为什么我会遇到这个问题吗? Thanks 谢谢

In Build Settings Architecture make the settings as follows on both project and also in targer and clean and build with device 在“构建设置架构”中,对项目以及targer进行如下设置,并清理并使用设备进行构建

“体系结构”的目标构建设置

我设法通过将我的架构和有效架构保留为armv6 armv7来解决了这个问题,我只需要清除项目和目标的代码签名构建设置下的“其他代码签名标志”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM