OGeek|极客世界-中国程序员成长平台

标题: ios - ld : library not found for -lstdc++. 6 - Xcode 10 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 20:37
标题: ios - ld : library not found for -lstdc++. 6 - Xcode 10

ld: library not found for -lstdc++.6

clang: error: linker command failed with exit code 1 (use -v to see invocation)

有很多像我这样的问题, 但我没有找到任何解决这个问题的方法。



Best Answer-推荐答案


尝试像我一样从以前的 Xcode 版本复制: cp -r/Applications/Xcode_9.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/c++ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/

cp/Applications/Xcode_9.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/libstdc++.* /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/

关于ios - ld : library not found for -lstdc++. 6 - Xcode 10,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52453917/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4