Xcode 10 编译报错Multiple commands produce ,library not found for -lstdc++.6.0.9 Xcode10适配——Error:Multiple commands produce

前提:我的项目中含有两个target,每个target有自己的LaunchScreen.storyboard,但是没有使用。

一、使用Xcode10 编译的时候错误提示:

Multiple commands produce '/Users/x x x/Library/Developer/Xcode/DerivedData/xxx-dbuchqhsvjorxseqerftzqpstqrq/Build/Products/Debug-iphonesimulator/xxx.app/Base.lproj/LaunchScreen.storyboardc':

1) Target 'xxx' (project 'xx'): LinkStoryboards

2) Target 'xxx' (project 'xx'): LinkStoryboards

如下图:

根据提示可以判断和xxxtarget中的LaunchScreen.storyboard有关, 但是实际并没有用到LaunchScreen.storyboard,清除缓存或者清除DerivedData重新编译都没有效果

解决方法:删除xxxtarget中的LaunchScreen.storyboard,编译成功。

类似错误参考文档: 

Xcode10适配——Error:Multiple commands produce

  Xcode 10 beta3 Error: Multiple commands produce

二、编译错误提示如下图:

 

解决方法:删除项目中用到的libstdc++.6.0.9.tbd

 

参考文档:https://blog.csdn.net/ZhaiAlan/article/details/82789465

猜你喜欢

转载自www.cnblogs.com/lulushen/p/9712285.html