前言
WWDC 2018栓霜,手機(jī)裝好了iOS12,體驗(yàn)了一番臭笆,感覺比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)
Build Phases里的Link Binary With Libraries進(jìn)行添加茵乱,然后發(fā)現(xiàn)選擇frameworks and libraries里已經(jīng)沒有了這個庫了??茂洒,又回去看了一下Xcode9里是有的。
Pods-xxxx.xcconfig文件瓶竭,果然找到了這個-l stdc++.6.0.9督勺,但是這邊是匯總了所有的依賴渠羞,無法找到源頭。
臨時方案:
將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? ?復(fù)制一份到
/Applications/Xcode10-bate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib
再add other 添加到Xcode10中
開發(fā)者論壇中看到Where is libstdc++.6.dylib in xcode10 beta?以及?libstdc++ is not supported by the tvOS platform??中 staff的回應(yīng)是請遷移到libc++庫次询。