简体   繁体   中英

Xcode 10 - Build project failed

I just updated my Xcode to version 10. And when i build my project it shows me error

ld: library not found for -lstdc++.6.0.9
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have been trying to clean project for many times but still not work for me.

Anyone has solution for this?

Xcode 10 removed support for -lstdc++. So check in your project settings under 'BuildPhases -> Link Binary With Libraries ' and remove the -lstdc++ dependency. If you use a 3rd party library which depends on -lstdc++ then you would need to ask to get a new version without this dependency. Also check: Xcode 10 (iOS 12) does not contain libstdc++6.0.9

Try to clear the derived data, paste this into your termnial:

rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"
rm -rf ~/Library/Developer/Xcode/DerivedData
rm -rf ~/Library/Caches/com.apple.dt.Xcode

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM