升级到Xcode10后,由于几个库被弃用,编译会报错 ;
其中library not found for -lstdc++.6.0.9 No Found 解决办法就是 将过往版本中的库 libstdc++.6.0.9.tbd添加到以下路径中;
真机运行所需库路径:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
模拟器运行所需库路径:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/
然后在Xcode中TARGETS -> Linked Frameworks and Lobraries -> Add Others 以此方式添加至项目;
Xcode10以下版本的lib文件夹的压缩包,分享链接:https://pan.baidu.com/s/1aSgVmRmJT7cIRndLCiIA1w 密码:fm3t