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

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

IOS 太平洋学习网 浏览 评论

我们在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/2019/0413/927.html

    与本文相关的文章

    发表我的评论
    取消评论

    表情

    您的回复是我们的动力!

    • 昵称 (必填)

    网友最新评论