Xcode :error: linker command failed with exit code 1(use -v to see invocation) 或 libstdc++.6.0缺失问题
注:可参考第一条链接
报错原因是升级以后iOS10 将libstdc++.6.0.9库文件删除,所以只需要下载下来放进去就OK了。
1.下载 libstdc++.6.0.9.tbd
下载地址:
https://pan.baidu.com/s/10gZrtGtspgpKT7qSY-bBDg
2.下载下来注意文件名可能不是这个更改文件名为libstdc++.6.0.9.tbd
3.将下载文件放到指定位置
(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
(访问- 前往-> 前往文件夹->复制以上位置前往找到位置然后把下载下来的文件粘贴到lib文件下 重启一下Xcode就行了 )
参考链接: