“目标文件格式无法识别,无效或不适合” Xcode错误 [英] "object file format unrecognized, invalid, or unsuitable" Xcode error

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

问题描述

我没有看到为什么这条消息应该在日志末尾出现的原因:

I don't see any reasons why this message should come at the end of the log:

/Users/Val/Library/Developer/Xcode/DerivedData/Mathematics-dzakmzlewrmgvibasvuixiwmkwwp/Build/Products/Debug-iphoneos/Mathematics.app: object file format unrecognized, invalid, or unsuitable
Command /usr/bin/codesign failed with exit code 1    

如何解决此错误?

我很绝望,我所有的证书和配置文件是有效的,应用程序本身没有任何错误。

How can I fix this error?
I am desperate, all my certificates and profiles are valid, the app itself has no bugs at all.

推荐答案

确保'可执行文件名'(CFBundleExecutable)条目在您的目标的info.plist中匹配目标设置中指定的产品名称。

Make sure the 'Executable Name' (CFBundleExecutable) entry in your target's info.plist matches the 'Product Name' specified in your target settings.

iPhone Codeign目标文件格式无效或不合适

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

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