Reputation: 1490
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?
Upvotes: 0
Views: 1706
Reputation: 234
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
Upvotes: 2
Reputation: 751
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
Upvotes: 0