您的位置:首页 > 其它

【Xcode错误日志】【一秒就懂】拷贝文件等⚠️消除

2016-11-24 00:00 295 查看
贡献作者 -【XJDomain】
博客XJ: https://my.oschina.net/shengbingli/blog GitHub: https://github.com/lishengbing/XJQRCodeToolDemo

警告如下:

Multiple build commands for output file /Users/lishengbing/Library/Developer/Xcode/DerivedData/Chihiro-cagxpspqlmidfegcdkktahpmeunz/Build/Products/Release-iphonesimulator/Chihiro.app/Contents.json

解决办法

以我的角度
>>>>>当时解决问题是因为在项目目录上 那些放在Assets.xcassets资源里面的图片文件夹,有些移到外面来了,将外面的那个图片文件夹移除就可以了,Assets.xcassets里面的图片保持不动

Warning: Multiple build commands for output file /Users/me/Library/Developer/Xcode/DerivedData/myapp-csoyvdzaugzkszeagjrtzrfssudr/Build/Products/Debug-iphonesimulator/myapp.app/icon-72.png
Warning: Multiple build commands for output file /Users/me/Library/Developer/Xcode/DerivedData/myapp-csoyvdzaugzkszeagjrtzrfssudr/Build/Products/Debug-iphonesimulator/myapp.app/Default-Landscape@2x~ipad.png
Warning: Multiple build commands for output file /Users/me/Library/Developer/Xcode/DerivedData/myapp-csoyvdzaugzkszeagjrtzrfssudr/Build/Products/Debug-iphonesimulator/myapp.app/Default-Landscape~ipad.png


>>>>>网络上有还有另外一种情况解决方案,我觉得以后如果不是我上述的那种情况,可以按照这种方案操作试试:

链接:
http://stackoverflow.com/questions/17121371/xcode-warning-multiple-build-commands-for-output-file-but-i-get-error-if-i-d

1.选择你的工程
2.选择target
3.点击 Build Phases
4.展开Copy Bundle Resources
5.删除里面的刚才提示警告的文件,一般为红色的名字的文件



内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐