Xcode10升级后会报错如下:模拟器或者真机均报错Multiple commands produce /路径
![](https://img.haomeiwen.com/i3807682/6c1a78508f3ee063.png)
1.打开File—Workspace Settings
![](https://img.haomeiwen.com/i3807682/40243651ad731f06.png)
2.把Bulid System里的Use Shared Setting 改成 Legacy Build System
![](https://img.haomeiwen.com/i3807682/e988c6978bdb3e9a.png)
3.运行后可能会报错:library not found for -lstdc++.6.0.9
![](https://img.haomeiwen.com/i3807682/a2ba5e6469f0fef8.png)
这个错误原因是因为iOS12.0中去掉了lstdc++.6.0.9.tbd动态库
找到lib文件夹:把libstdc++.6.0.9.tbd 和libstdc++.6.tbd 复制进去就可以了
lib文件夹路径:
真机:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib
模拟器:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib
网友评论