iPhone Codeign目标文件格式无效或不适合 [英] iPhone Codesign object file format invalid or unsuitable

查看:188
本文介绍了iPhone Codeign目标文件格式无效或不适合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在xcode中意外删除了我的目标。

I accidentally deleted my target in xcode.

因此我创建了一个名称相同的新目标。在目标设置中,我再次选择了正确的代码签名标识

so i created a new one with the exact same name. in the target settings i again selected the proper codesigning identity

但现在我无法再为该设备编译。一旦我想建立,我得到:

but now i can't compile for the device anymore. as soon as i want to build, i get:

CodeSign build/Release-iphoneos/myApp.app
....somestuff....
/Volumes/XCodeProj/myApp/build/Release-iphoneos/myApp.app: object file format invalid or unsuitable
Connad /usr/bin/codesign failed with exit code 1

我已经尝试清理目标了。
什么可能导致这个问题以及如何解决?

I already tried to clean targets. what could cause this problem and how to solve it?

推荐答案

也可能是您的安装问题。 Symlinking到最新的codesign_allocate清除了我的问题:

May also be an issue with your install. Symlinking to the latest codesign_allocate cleared up the issue in my case:

sudo mv /usr/bin/codesign_allocate /usr/bin/codesign_allocate_old
sudo ln -s /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate /usr/bin

这篇关于iPhone Codeign目标文件格式无效或不适合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆