수상한 프로그래머/죽은 소스 살려내는 꾸르팁

xcode10 버전으로 업그레이드시 library not found for -lstdc++.6 xcode 오류 발생시 대처방법

산산지 2019. 3. 13. 20:44
반응형

xcode10 버전으로 업그레이드 되면서 라이브러리에 lstdc++.6 이 제거 되었다. 

아마 기존 프로젝트에서 관련 라이브러리를 참고하고 있는 소스가 있다면

library not found for -lstdc++.6 라고 오류가 발생할 것이다.

수정하는 것이 가정 정확한 방법이고 급할 경우는 아래와 같이 해결하면 된다.


xcode9의 라이브러리를 추가해주면 되는데 파일이 없을테니 git에서 다운받도록 하자.

감사하는 마음으로 다운받아서 써져있는 경로에 복붙하면 해결된다.

모바일용

put tbd copy to the path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/

시뮬레이터용

put dylib copy to the path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/

put tbd copy to the path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/


라이브러리 다운 주소 : https://github.com/Kila2/libstdc-.6.0.9.tbd

반응형