0

When I want to build my app in Xcode 10.0, I'm getting this error. How I can solve this issue ?

library not found for -lstdc++.6.0.9

Mac OS version : High Sierra 10.13.6 iOS iPad version : 12.0 Xcode version : 10.0

Regards, Tuğçe.

tugceaktepe
  • 195
  • 1
  • 2
  • 17
  • https://stackoverflow.com/questions/51060596/ld-library-not-found-for-lstdc-6/51060778#51060778 – Larme Sep 19 '18 at 09:00

1 Answers1

4

From the Xcode 10 release notes,

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 macOS 10.9 or later, or 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)

Kamran
  • 14,987
  • 4
  • 33
  • 51