ISBX / apprtc-ios

A native iOS video chat app based on WebRTC
BSD 3-Clause "New" or "Revised" License
1.35k stars 413 forks source link

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

Open rptwsthi opened 5 years ago

rptwsthi commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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