iOS ---关于Xcode10 libstdc++.6.0.9 问题快速解决

由于Xcode升级到10之后,之前系统库 libstdc++.6.0.9没有了,导致之前的项目编译都不成功,包括真机和模拟器。
只要将libstdc++.6.0.9分别添加到对应的地方即可:

模拟器运行需要 CoreSimulator
libstdc++.6.0.9.dylib
766,624B /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/

模拟器编译需要 iPhoneSimulator
libstdc++.6.0.9.tbd
206,800B /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/

iOS真机 iPhoneOS
libstdc++.6.0.9.tbd
209,673B /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/

macAPP MacOSX
libstdc++.6.0.9.tbd
206,751B /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/

你可能感兴趣的:(iOS)