- 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++库
百度云盘下载链接 提取密码:ggob
腾讯微云下载链接 提取密码:9jinsw
三、将 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/
网友评论