原因:这个错误原因是因为iOS12.0中去掉了lstdc++.6.0.9.tbd动态库
目前解决方案是下载原来的c++库的文件然后放入原来的xcode里面,更新xcode不影响原来加的库
具体位置如下
模拟器:在RuntimeRoot的lib里面增加libstdc++.6.0.9.dylib,libstdc++.6.dylib,libstdc++.dylib,路径如下:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib
真机:在iPhoneOS.sdk的lib里面增加libstdc++.6.0.9.tbd,libstdc++.6.tbd,libstdc++.tbd,路径如下:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
具体文件下载这个
文件地址 密码94cm