Because apple removes libstdc++ in Xcode 10.0, so if you want to solve the problem, you can try to manually copy the file to lib.
1.iPhoneOS and iPhoneSimulator file
copy the file: libstdc++.6.0.9.tbd and libstdc++.6.tbd and libstdc++.tbd to :
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/
2.iOS.simruntime file
copy the file: libstdc++.6.0.9.dylib and libstdc++.6.dylib and libstdc++.dylib to:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib
下载地址:(需要分开真机和模拟器,还有.dylib)
链接: https://pan.baidu.com/s/1cGBjvoaF-4MgwbgwFdwfKw 提取码: pd2n 复制这段内容后打开百度网盘手机App,操作更方便哦