由于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/
本文详细介绍了在Xcode升级到10版本后,因缺失libstdc++.6.0.9导致项目无法编译的问题,并提供了具体的解决方案,指导如何在不同平台下正确添加该库文件。
596

被折叠的 条评论
为什么被折叠?



