美文网首页程序员
Xcode 运行报library not found for -

Xcode 运行报library not found for -

作者: 晴朗Nic | 来源:发表于2020-11-02 16:26 被阅读0次

Xcode在运行时候报library not found for -lstdc++.6.0.9错误,因为在升级Xcode的时候缺少libstdc++.6.0.9导致,如下图:

报错.png

解决:只要在相对应的路径下把缺少的库添加上去就可以了,这里我在四个路径添加库:

1、在/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/ 添加源文件中的A文件夹里面的三个库。

2、在/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/ 添加源文件中的B文件夹里面的三个库。

3、在 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/里添加源文件中的C文件夹里面的三个库。

4、在 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/里添加源文件中的D文件夹里面的三个库。

怎样找文件夹目录下:找到文件夹的“应用程序”-->点击Xcode右键显示包内容就可以看见Contents,顺着Contents可以找到四个路径对应的文件下面。

然后运行就可以了。

相关文章

网友评论

    本文标题:Xcode 运行报library not found for -

    本文链接:https://www.haomeiwen.com/subject/zuemvktx.html