0

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?

1

2 Answers 2

2

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

Sign up to request clarification or add additional context in comments.

3 Comments

Now it throws me another error ld: symbol(s) not found for architecture x86_64
So then you might actually have a dependency on libstdc++ .
You meant when I remove libstdc++, and it throws me another error that mean i have some libraries which depend on it right?
0

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 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.