The reason: apple scrapped libstdc++ in Xcode 8, giving developers two years to transition, and it’s no longer supported in Xcode 10. Libstdc++ is not available in Build Phases > Link Binary With Libraries
Libstdc++.6.0.9 file resources can be obtained from baidu web disk. The file extraction code is njj8
platform | folder | The file name | The file size | The path |
---|---|---|---|---|
Simulator operation | CoreSimulator | Libstdc++. 6.0.9. Dylib | 766624 | /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes /iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/ |
Simulator compilation | iPhoneSimulator | Libstdc++. 6.0.9. TBD | 206800 B, | /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib / |
IOS: | iPhoneOS | Libstdc++. 6.0.9. TBD | 209673 B, | /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/ |
macAPP | MacOSX | Libstdc++. 6.0.9. TBD | 206751 B, | /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/ |