神剑若水哥:Xcode10会提示:ld: library not found for -lstdc++.6.0.9

Xode9有的项目到Xcode10会提示:ld: library not found for -lstdc++.6.0.9

原因:XCode 10 去掉了 这个库,原本XCode9 有的。所以,用户自己加上就行了,在路径中加入库就行了。

路径如下:

1.真机环境:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/

2.模拟器境

模拟器:

2.1放入模拟器库:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/

2.1放入runtime 的库:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib

如果上面的库找不到路径,可以放入下面路径

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/

注意在/Profiles/Runtimes/iOS.simruntime这里时需要右键显示包内容

库下载连接:链接:https://pan.baidu.com/s/1110UlAeKtbH3fWol5gH8ZA 密码:aa4u

##以上是自己的一点拙见,欢迎大家指正,有需要的可以留言

#喜欢😍的一点个👍喜欢,多谢支持,以后会更多创作。

参考网址:https://zhuanlan.zhihu.com/p/66954878

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容