ISBX / apprtc-ios

A native iOS video chat app based on WebRTC
BSD 3-Clause "New" or "Revised" License
1.35k stars 413 forks source link

-lstdc++.6 Xcode 10 #136

Open gabi579510 opened 6 years ago

gabi579510 commented 6 years ago

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 commented 6 years ago

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

gabi579510 commented 6 years ago

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 commented 6 years ago

Also come across this issue, please help

grago commented 5 years ago

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

Beautistar commented 5 years ago

I am also facing same issue, please help me

HelloWorldCN commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

nkllkc commented 4 years ago

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 commented 4 years ago

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

sandyrana commented 1 year ago

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.