Xcode10: -lstdc++.6.0.9 not found

解决方案: Xcode9中拷贝 -lstdc++.6.0.9以及libstdc++等库到Xcode10中(真机和模拟器都需要拷贝)

终端输入命令,打开Xcode的lib库目录,将需要的库文件从Xcode9目录下拷贝到Xcode10目录下:
打开命令如下:
1)真机:
open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib
2)模拟器:
open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib

猜你喜欢

转载自blog.csdn.net/qq_28285625/article/details/110161500