感謝這位大神提供的解決方案:
https://github.com/cy920820/Libstdc-.6.0.9-files
Libstdc-.6.0.9-files
該項目用于Xcode 10+ 不支持使用lbstdc++插件報錯異常解決方案
類似這種報錯Info: Error: ld: library not found for "-lstdc++.6"
Usage
根據調試方式不同,真機和模擬器文件放置路徑存在差異,分別復制對應的Lib文件到下面的路徑即可解決Xcode編譯報錯
XCode10
Device(真機)
Put tbd copy to the path
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
Simulator(模擬器)
Put dylib copy to the path:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/
Put tdb copy to the path:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/
XCode11/12
Device(真機)
Put tbd copy to the path
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
Simulator(模擬器)
Put dylib copy to the path:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/
Put tdb copy to the path:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/