Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-lstdc++.6 Xcode 10 #136

Open
gabi579510 opened this issue Sep 18, 2018 · 13 comments
Open

-lstdc++.6 Xcode 10 #136

gabi579510 opened this issue Sep 18, 2018 · 13 comments

Comments

@gabi579510
Copy link

ld: library not found for -lstdc++.6
clang: error: linker command failed with exit code 1 (use -v to see invocation)
You need to update -lstdc++.6 to -libc++

In Pods/Development Pods/AppRTC/Support Files/AppRTC.Xcconfig you have this line code
OTHER_LDFLAGS = -l"c++" -l"icucore" -l"sqlite3" -l"stdc++.6" -framework "AVFoundation" -framework "AudioToolbox" -framework "CFNetwork" -framework "CoreAudio" -framework "CoreGraphics" -framework "CoreMedia" -framework "CoreVideo" -framework "GLKit" -framework "OpenGLES" -framework "QuartzCore" -framework "Security"

@tinder-jhan
Copy link

no you need to remove -l"stdc++.6"

@gabi579510
Copy link
Author

gabi579510 commented Sep 20, 2018

no you need to remove -l"stdc++.6"

-l"stdc++.6" this library is using in the Pods AppRTC Classes. When I build the project I receive the error that -l"stdc++.6" is missing because this doesn't appear in Xcode 10. He was removed. Also, I found a solution can I added this library manually in Xcode libs but the application will be rejected on App Store.

@JimmyNi
Copy link

JimmyNi commented Sep 20, 2018

Also come across this issue, please help

@grago
Copy link

grago commented Oct 12, 2018

I am having this problem too! Any help would be very appreciated. Thanks!

@Beautistar
Copy link

I am also facing same issue, please help me

@HelloWorldCN
Copy link

Libstdc++.6.tbd has been removed in xcode10, you remove it directly in the xcode build setting, and search for the entire project,...xocde project), all The place where it appears is deleted.

@ciet1202
Copy link

ciet1202 commented Nov 2, 2018

so Libstdc++.6.tbd I need to remove or add please explain me where I have to remove or add that. it's urgent please help me detail @thanks in advance

@ciet1202
Copy link

ciet1202 commented Nov 2, 2018

Libstdc++.6.tbd has been removed in xcode10, you remove it directly in the xcode ### build setting, and search for the entire project,...xocde project), all The place where it appears is deleted.

as above build settings I didn't find anything please explain me in detail@HelloWorldCN

@HelloWorldCN

@ciet1202
Copy link

ciet1202 commented Nov 2, 2018

GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/AppRTC" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AppRTC" "${PODS_ROOT}/Headers/Public/SocketRocket" "${PODS_ROOT}/Headers/Public/libjingle_peerconnection"
OTHER_LDFLAGS = -l"c++" -l"icucore" -l"sqlite3" -framework "AVFoundation" -framework "AudioToolbox" -framework "CFNetwork" -framework "CoreAudio" -framework "CoreGraphics" -framework "CoreMedia" -framework "CoreVideo" -framework "GLKit" -framework "OpenGLES" -framework "QuartzCore" -framework "Security"
PODS_ROOT = ${SRCROOT}
SKIP_INSTALL = YES

I have removed -l"stdc++.6" still facing

@gabi579510
Copy link
Author

I found a temporary solution. Download the file stdc++6 and add it in Xcode.

@nkllkc
Copy link

nkllkc commented Feb 25, 2020

As it was mentioned previously, stdc++6 is now available any more. You need to remove all occurances of stdc++6 from your workspace. In order to do that do the following:

  1. Make sure you have opened AppRTC.xcworkspace (not AppRTC.xcproject!)
  2. Now search for all occurrences of stdc++6 (not -lstdc++.6, omit -l from the begging) in AppRTC.xcworkspace. You can do this by going to Find -> Find in Workspace... or by pressing Command+Shift+F.
  3. Now, remove -l"stdc++6" from all the files in search results. You should have gotten three different config files in the search result (Pods.debug.xcconfig, Pods.release.xcconfig and AppRTC.xcconfig)

:)

@iOSappssolutions
Copy link

Why it wasn't removed from pod dependency list? It would be more elegant

@sandyrana
Copy link

stdc++6

I found a temporary solution. Download the file stdc++6 and add it in Xcode.

@iOSappssolutions where can download this library I am not able to find any link can you provide me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants