Xcode 10 (iOS 12) does not contain libstdc++6.0.9

后端 未结 14 1942
礼貌的吻别
礼貌的吻别 2020-11-28 21:28

I download the newest Xcode from Apple, but I found I cannot search the library named \"libstdc++6.0.9\".

14条回答
  •  情书的邮戳
    2020-11-28 21:34

    libstdc++ was deprecated 5 years ago. Apple's more recent platforms (tvOS and watchOS) don't support it.

    Support was removed from the iOS 12.0 Simulator runtime, but it remains in the iOS 12.0 (device) runtime for binary compatibility with shipping apps.

    You should update your project to use libc++ rather than libstdc++ by setting the CLANG_CXX_LIBRARY build setting ("C++ Standard Library") to libc++.

    If you have any static libraries that depend on libstdc++.tbd, you can workaround it for now by copying the file from the SDKs in Xcode 9.4 (and libstdc++.*.dylib in the iOS simulator runtime), but that is not a long term solution. You should contact the provider of those libraries and request versions built using libc++.

提交回复
热议问题