最新消息:关注【已取消】微信公众号,可以获取全套资料,【全套Java基础27天】【JavaEE就业视频4个月】【Android就业视频4个月】

Xcode 10 error: Multiple commands produce 'xxx'错误解决

IOS 太平洋学习网 0浏览 评论

我们在Xcode 10编译ios项目时,出现error: Multiple commands produce 'xxx'类似的错误,具体的错误代码如下所示:

error: Multiple commands produce '/Users/dxlawj/Library/Developer/Xcode/DerivedData/SinforChat-heyfvedklspziwftlxltyhkkvqbs/Build/Products/Debug-iphonesimulator/SinforChat.app/RGBColor.plist':

1) Target 'SinforChat' (project 'SinforChat') has copy command from '/Users/dxlawj/Documents/xcode/SinforChatGit/SinforChat/Contacts/Controller/Message/RGBColor.plist' to '/Users/dxlawj/Library/Developer/Xcode/DerivedData/SinforChat-heyfvedklspziwftlxltyhkkvqbs/Build/Products/Debug-iphonesimulator/SinforChat.app/RGBColor.plist'

2) Target 'SinforChat' (project 'SinforChat') has copy command from '/Users/dxlawj/Documents/xcode/SinforChatGit/SinforChat/Message/Model/RGBColor.plist' to '/Users/dxlawj/Library/Developer/Xcode/DerivedData/SinforChat-heyfvedklspziwftlxltyhkkvqbs/Build/Products/Debug-iphonesimulator/SinforChat.app/RGBColor.plist'

错误问题分析:

之所以我们的xcode在编译时出现上方的错误,时因为我们的Bundle Resource资源文件里面导入了两个“RGBColor.plist”文件,我们只需要删除一条重复的plist文件即可,在Build Phases里面找到重复的文件,如图所示:

屏幕快照 2019-04-13 上午9.49.03.png

删除掉第一条RGBColor.plist(Message/Model)即可,只要没有重复的资源文件,就不会报“error: Multiple commands produce”错误了。

来源网站:太平洋学习网,转载请注明出处:http://www.tpyyes.com/a/object-c_ios/927.html
"文章很值,打赏犒劳作者一下"
微信号: Javaweb_engineer

打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

与本文相关的文章

发表我的评论
取消评论

表情

您的回复是我们的动力!

  • 昵称 (必填)

网友最新评论