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 .tbd
into my project instead of .dylib
?

- 189
- 2
- 11
-
2yes .. its ok ..check this... http://stackoverflow.com/questions/31450690/why-xcode-7-shows-tbd-instead-of-dylib – Bhavin Bhadani Mar 17 '16 at 10:07
-
Thanks El Capitain – Allen Mar 17 '16 at 10:08
5 Answers
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"

- 2,186
- 1
- 16
- 21
-
`file /usr/lib/libstdc++.dylib` says that library supports `x86_64` and `i386` architectures, so will this work on a device or only on the simulator? – sgdesmet Jun 05 '18 at 10:27
If you are using xcode 11, you need to check the path to copy the library libstdc++. ~~/usr/lib path has changed.
simulator
/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/

- 81
- 4
-
I updated my XCode and faced a similar issue while running my app on the simulator. After using the correct path for the simulator and copying all related dylib, I solved the issue. Thanks :) – WasimSafdar May 13 '20 at 15:10
if you want to solve the problem, you can try to manually copy the file to lib.
1.iPhoneOS
and iPhoneSimulator
file
copy the original file: libstdc++.6.0.9.tbd and libstdc++.6.tbd and libstdc++.tbd to :
/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.simruntime
file
copy the original file: libstdc++.6.0.9.dylib and libstdc++.6.dylib and libstdc++.dylib to:
- /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib

- 69
- 1
- 2
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++.a
to 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.

- 56
- 3
Add this "libstdc++.6.dylib". at this below path
For simulator /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/

- 1,081
- 12
- 14