1. 同名文件报错 “ Multiple commands produce... ” (我这边遇到的是多个第三方info.plist文件重复)
解决方式有3种
(1)更改info.plist的名字,让他们各不相同
(2)删除这些info.plis文件
(3)按照此顺序 xcode--file--project settings--Build System--legacy Build System 修改Xcode的配置(这里的legacy Build System 指的 是xcode10之前使用的旧的构建系统,而xcode10 默认使用的是New Build System 新的构建系统)
2. 报错 “ library not found for -lstdc++.6.0.9 ”
解决方法有2种
(1)点击以下链接提取 lstdc++.6.0.9文件
百度网盘 提取码: ktrk
下载之后把文件导入以下目录
真机
/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/
导入之后,相当于xcode10有了lstdc++.6.0.9文件,再重新编译
(2)直接在 Targets -- General -- Linked Frameworks and libraries 中删除lstdc++.6.0.9 ,重新编译如果删除之后依然报错,则重复第一种方法!