Xcode10.0踩坑之旅(0)

前言

WWDC 2018,手机装好了iOS12,体验了一番,感觉比iOS11快多了。

Xcode10解压了一下,开始初步评估一下适配。工程跑不起来了...好了果然不能低估,开干。

err:如图一

ld: library not found for -lstdc++.6.0.9

clang: error: linker command failed with exit code 1 (use -v to see invocation)


图1

Build Phases里的Link Binary With Libraries进行添加,然后发现选择frameworks and libraries里已经没有了这个库了,又回去看了一下Xcode9里是有的。


Xcode10.0踩坑之旅(0)_第1张图片
图2   xcode10


Xcode10.0踩坑之旅(0)_第2张图片
图3  Xcode9

Pods-xxxx.xcconfig文件,果然找到了这个-l stdc++.6.0.9,但是这边是汇总了所有的依赖,无法找到源头。

Xcode10.0踩坑之旅(0)_第3张图片
图4

临时方案:

将Xcode9的libstdc++6.0.9.tbd拷贝到Xcode10中使用。


具体方法:  cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib

找到libstdc++6.0.9.tbd   复制一份到

/Applications/Xcode10-bate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib

再add other 添加到Xcode10中

开发者论坛中看到Where is libstdc++.6.dylib in xcode10 beta 以及 libstdc++ is not supported by the tvOS platform? 中 staff的回应是请迁移到libc++库。

你可能感兴趣的:(Xcode10.0踩坑之旅(0))