Xcode 警告:“输出文件的多个构建命令" [英] Xcode warning: "Multiple build commands for output file"

查看:25
本文介绍了Xcode 警告:“输出文件的多个构建命令"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到这样的错误:

[WARN]警告:输出文件的多个构建命令/Developer/B/Be/build/Release-iphonesimulator/BB.app/no.png

[WARN]Warning: Multiple build commands for output file /Developer/B/Be/build/Release-iphonesimulator/BB.app/no.png

[WARN]警告:输出文件的多个构建命令/Developer/B/Be/build/Release-iphonesimulator/BB.app/d.png

[WARN]Warning: Multiple build commands for output file /Developer/B/Be/build/Release-iphonesimulator/BB.app/d.png

[WARN]警告:输出文件的多个构建命令/Developer/B/Be/build/Release-iphonesimulator/BB.app/n.png

[WARN]Warning: Multiple build commands for output file /Developer/B/Be/build/Release-iphonesimulator/BB.app/n.png

但是我已经检查了 Xcode,我根本没有看到此类文件的任何重复项.正如 Apple 邮件列表中的 这篇文章 所说,有没有重复.

But I have checked Xcode and I don't see any duplicates of such files at all. As this post in the Apple Mailing Lists say, there are no duplicates.

推荐答案

其实这个问题的答案很简单.

Actually, the answer to this is quite simple.

在您的 Xcode 项目中搜索引发警告的文件,然后删除其中一个.

In your Xcode project search for the files which raise the warning, and just delete one of them.

Xcode 将在搜索结果中只显示该文件的一个引用,但不要停在那里,继续删除它.(删除之前最好备份一下你的项目文件)

Xcode will show only one reference of that file in the search results, but don't stop there, go ahead and delete it. (it's better to make a backup of your project file before deleting it)

现在再次构建项目.警告现在应该消失了.(此答案适用于先前版本的 xcode)

Now build the project again. The warning should disappear now. (this answer is for a previous version of xcode)

这篇关于Xcode 警告:“输出文件的多个构建命令"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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