部分项目在Xcode10上运行的时候报错

报错信息类似:"Error: ld:library not found for "-lstdc++.6""

原因是Xcode10舍弃了libstdc++,涉及三个内库libstdc++、libstdc++.6、libstdc++6.0.9。

临时解决方案:

补充内库文件以及链接。
文件下载,已经存在的不用替换。
https://github.com/HuDaQian/Xcode10LibError/tree/master

文件路径:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/

 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/


/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/

iOS