Xcode10升级后会报错如下:模拟器或者真机均报错Multiple commands produce /路径
image.png1.打开File—Workspace Settings
image.png2.把Bulid System里的Use Shared Setting 改成 Legacy Build System
image.png3.运行后可能会报错:library not found for -lstdc++.6.0.9
20180919143001335.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
网友评论