Apple在iOS12中取消了对stdlic++的支持临时的解决方案是将老版本的Xcode中的文件copy到新版Xcode的目录中模拟器/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/需要说明的是,iOS12模拟器即使添加了这个文件仍然不支持libstdc++,需要低于iOS12版本的模拟器才能正常使用真机/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/