Library not found for -lstdc++.6.0.9

668 阅读1分钟
  • 1.编译完成之后报如下错误:
ld: library not found for -lstdc++.6.0.9
clang: error: linker command failed with exit code 1 (use -v to see invocation)
  • 2.解决方法: (1).尝试在xcode搜索这个库却找不到

image.png

Snip20211018_1.png

(2).所以想着应该是xcode 13中废弃这个库了,然后就在网上找了一下这个几个库分别给放到指定的位置下边就可以了。


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

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/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/

lstdc++.6.0.9下载链接