升级Xcode10之后,运行项目发现libstdc++.6.0.9.tbd找不到,于是去搜索一下,发现libstdc++.6.0.9.tbd被苹果标记要废弃,在Xcode10 没有这个库,为了能够编译通过,暂时将xcode9中的libstdc++.6.0.9.tbd库复制出来,放在Xcode10里面.
真机的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
分别添加一份,这样真机和模拟器都可以正常运行.
但是要完美解决,最好下载最新的第三方库,让第三方库适配好这个变化。
这个问题首先出现是:
Error: Multiple commands produce

解决方法可以有两种,一种是不使用New Build System,在File > Project/Workspace Settings中的Share Project/Workspace Settings 里build system 将New Build System(Default)切换成Legacy build system。

另一种是根据提示信息移除相关pod

网友评论