天天看点

Xcode10 libstdc++类库消失报错error

升级到Xcode10之后遇见的第二个坑

linker command failed whith exit code1 (use -v to see invocation)

not found for -lstdc++.6.0.9

这个错误原因是因为iOS12.0去掉了-lstdc++.6.0.9,在引用类库的时候无法引用到这个类库,而项目中有些第三方是使用到这个类库的,又不得不去引用,很头疼.

解决办法:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/ /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/

https://pan.baidu.com/s/1gi6E0YAgltRFmyfjUqQ24Q

去这个地址下载类库,把1234文件夹内的分别放到4个路径下,clean之后重新编译一下即可.

继续阅读