阅读 39

【iOS】关于-lstdc++.6.0.9的问题

本文抄自:

关于-lstdc++.6.0.9的问题:https://www.jianshu.com/p/62769ce6ca9e

Xcode11恢复libstadc++6.0.9:https://linconz.net/?p=80

lstdc++.6.0.9下载:https://github.com/WJYJane/-Xcode10-


  • Xcode11的处理:

【1】libstdc++_sim
解压出来的三个文件 libstdc++.6.0.9.tbd libstdc++.6.tbd libstdc++.tbd,复制到下面路径:
open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib

【2】libstdc++.6.0.9.tbd
解压出来的libstdc++.6.0.9.tbd复制到下面路径:
open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib

【3】libstdc++.dylib_sim
解压出来的三个文件 libstdc++.6.0.9.dylib libstdc++.6.dylib libstdc++.dylib,复制到下面路径:
open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib复制代码
  • Xcode10的处理:

设备
将tbd副本放到下面路径中:
open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/

模拟器
将tdb副本放到下面路径中:
open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/

将dylib副本放到下面路径中:
open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/
复制代码