Solve the error library not found for -libstdc++.6.0.9 in Xcode10 and above
Description
Apple removed the libstdc++ library after XCode10 and after the iOS12 version and replaced it with the libc++ library.
Apple’s official explanation is that libstdc++ has been marked as obsolete. It is recommended that you use the libc++ library that has been optimized by llvm and fully supports C++11.
Temporary solution
Import the libstdc++.6.0.9 library in xcode9 to the following two paths in xcode10 or higher.
Enter path shortcutcmd+shift+G
- Simulator path
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
- Device path
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/