程序员

Xcode10升级,工程报错列举

2018-10-30  本文已影响0人  书写不简单

暂时列出两个报错:

path2.png path3.png

这种方式的配置是针对workspace下所有target生效。

如果想指定当前的target,是下面的情况:


path4.png

由于Xcode10 废弃了libstdc++,库文件libstdc++.6.0.9. dylib、libstdc++.6. dylib、libstdc++. dylib、libstdc++.6.0.9.tbd、libstdc++.6.tbd、libstdc++.tbd也删除,所以在编译时某些模块会error或crash。


crash1.png crash2.png

找到lib文件夹:把libstdc++.6.0.9.tbd 和libstdc++.6.0.9.dylib 复制进去就可以了

路径 1:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/libstdc++.6.0.9.tbd

路径2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libstdc++.6.0.9.dylib

libstdc++.6.0.9.tbd 和libstdc++.6.tbd 下载可以用xcode9里面获取,点击这里也可以下载

添加后若是用模拟器还报找不到libstdc++.6.0.9.tbd 那就 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib也添加一份

上一篇下一篇

猜你喜欢

热点阅读