Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 10 issue with -lstdc++.6 #141

Open
rptwsthi opened this issue Oct 31, 2018 · 3 comments
Open

Xcode 10 issue with -lstdc++.6 #141

rptwsthi opened this issue Oct 31, 2018 · 3 comments

Comments

@rptwsthi
Copy link

rptwsthi commented Oct 31, 2018

This is the error I am getting.

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

Deprecation Notices:
Building with libstdc++ was deprecated with Xcode 8 and is not supported in Xcode 10 when targeting iOS. C++ projects must now migrate to libc++ and are recommended to set a deployment target of iOS 7 or later. Besides changing the C++ Standard Library build setting, developers should audit hard-coded linker flags and target dependencies to remove references to libstdc++ (including -lstdc++, -lstdc++.6.0.9, libstdc++.6.0.9.tbd, and libstdc++.6.0.9.dylib). Project dependencies such as static archives that were built against libstdc++ will also need to be rebuilt against libc++. (40885260)

Please let me know if any further information needed. I am not sure how to change it's -lstdc++.6 dependency.

@Beautistar
Copy link

Beautistar commented Oct 31, 2018

Duplicate of #136

Libstdc++.6.tbd has been removed in xcode10, you remove it directly in the xcode build setting, and search for the entire project,...xocde project), all The place where it appears is deleted.

It is solved and works well

@tiritea
Copy link

tiritea commented Nov 13, 2018

In Xcode, Find -> Find in Workspace... and search for "stdc++.6". It should pull up 3 occurrences. Just delete them all and it should rebuild w/o errors now. Tested in XCode 10.1.

@ctmelki
Copy link

ctmelki commented Nov 22, 2018

Is there any other way to remove "stdc++.6" automatically ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants