xcode libstdc++.6.0.0.tbd 或 .dylib
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/36057291/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
libstdc++.6.0.0.tbd or .dylib
提问by Allen
So folks I'm developing an app and an SDK I use require adding libstdc++.6.0.0.dylib, and there's no .dylib when I search it and a .tbd shows up instead.
I just googled the difference between the two and wanna know if it's okay that I add .tbdinto my project instead of .dylib?
所以人们我正在开发一个应用程序和一个我使用的 SDK 需要添加libstdc++.6.0.0.dylib,当我搜索它时没有 .dylib 并且显示一个 .tbd 。我只是在谷歌上搜索了两者之间的区别,想知道我是否可以将其添加.tbd到我的项目中而不是.dylib?
采纳答案by Adrian Sluyters
When you add the library, rather than hunt though the list, just press "Add Other" then manually navigate to /usr/lib or just press "CMD + Shift + G" then type in "/usr/lib/libstdc++.dylib"
当你添加库时,而不是通过列表搜索,只需按“添加其他”然后手动导航到 /usr/lib 或只需按“CMD + Shift + G”然后输入“/usr/lib/libstdc++.dylib”
回答by RamboLu
if you want to solve the problem, you can try to manually copy the file to lib.
如果你想解决问题,你可以尝试手动将文件复制到lib。
1.iPhoneOSand iPhoneSimulatorfile
1.iPhoneOS和iPhoneSimulator文件
copy the original file: libstdc++.6.0.9.tbd and libstdc++.6.tbd and libstdc++.tbd to :
将原始文件:libstdc++.6.0.9.tbd 和 libstdc++.6.tbd 和 libstdc++.tbd 复制到:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/
2.iOS.simruntimefile
2.iOS.simruntime档案
copy the original file: libstdc++.6.0.9.dylib and libstdc++.6.dylib and libstdc++.dylib to:
将原始文件:libstdc++.6.0.9.dylib 和 libstdc++.6.dylib 和 libstdc++.dylib 复制到:
- /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/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
回答by redlasha
If you are using xcode 11, you need to check the path to copy the library libstdc++. ~~/usr/lib path has changed.
如果您使用的是xcode 11,则需要检查复制库libstdc++的路径。~~/usr/lib 路径已更改。
simulator
/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/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/
ios
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
ios
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
回答by huowenxuan
Here is a temporary solution.
这是一个临时解决方案。
- Download libstdc++. https://raw.githubusercontent.com/luapower/libstdcxx/master/bin/linux64/libstdc%2B%2B.a
- Unzip, copy
/libstdcxx-master/bin/linux64/libstdc++.ato Xcode Frameworks, renamedlibstdc++.6.0.9.a, make sure the Link Binary With Libraries also add in this file. - Run again and pass the compilation.
- 下载 libstdc++。https://raw.githubusercontent.com/luapower/libstdcxx/master/bin/linux64/libstdc%2B%2B.a
- 解压,复制
/libstdcxx-master/bin/linux64/libstdc++.a到 Xcode Frameworks,重命名libstdc++.6.0.9.a,确保 Link Binary With Libraries 也添加到这个文件中。 - 再次运行,编译通过。

