xcode11中library not found for -lstdc++.6.0.9

因为Xcode10开始已经libstdc++,再使用需要添加.dylib .tbd文件。

主要是4个文件夹。

1真机运行
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib
在这个文件夹下添加210kb的libstdc++.6.0.9.tbd libstdc++.6.tbd libstdc++.tbd

2模拟器运行
xcode11里
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib
在这个文件夹添加767kb的 libstdc++.6.0.9.dylib libstdc++.6.dylib libstdc++.dylib

xcode10里
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib
在这个文件夹添加767kb的 libstdc++.6.0.9.dylib libstdc++.6.dylib libstdc++.dylib

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib
在这个文件夹添加207kb的libstdc++.6.0.9.tbd libstdc++.6.tbd libstdc++.tbd

3macOS开发
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib
在这个文件夹添加207kb的libstdc++.6.0.9.tbd libstdc++.6.tbd libstdc++.tbd

如果没有对应文件夹 右键-显示包内容

参考文章https://www.jianshu.com/p/7f0af489a307

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

推荐阅读更多精彩内容