適配Xcode10/11/12 libstdc++.6.0.9文件缺失

感謝這位大神提供的解決方案:
https://github.com/cy920820/Libstdc-.6.0.9-files

Libstdc-.6.0.9-files

該項目用于Xcode 10+ 不支持使用lbstdc++插件報錯異常解決方案

類似這種報錯Info: Error: ld: library not found for "-lstdc++.6"

Usage

根據調試方式不同,真機和模擬器文件放置路徑存在差異,分別復制對應的Lib文件到下面的路徑即可解決Xcode編譯報錯

XCode10

Device(真機)
Put tbd copy to the path
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/

Simulator(模擬器)
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 tdb copy to the path:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/

XCode11/12

Device(真機)
Put tbd copy to the path
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/

Simulator(模擬器)
Put dylib copy to the path:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/
Put tdb copy to the path:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容