- library not found for -libstdc++
- library not found for -libstdc++
- library not found for -libstdc++
- library not found for -libstdc++
- library not found for -libstdc++
- library not found for -libstdc++
- library not found for -libstdc++
- library not found for -libstdc++
- library not found for -libstdc++
- iOS编译报错"library not found f
Xcode升级到Xcode10.0后,由于去掉陈旧的libstdc++库替换为libc++,libc++相对是苹果最新版的C++库,经过优化并全面支持C++11。
解决办法
下载libstdc++库,下载链接,提取码arms
将 libstdc++、libstdc++.6、libstdc++6.0.9拷贝到Xcode的如下目录:
1.真机环境:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
2.模拟器环境:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/
网友评论