因?yàn)椴糠猪?xiàng)目依賴(lài) libstdc++.6.0.9 升級(jí)后在Xcode 10直接爆紅
原因是Xcode 10中將libstdc++.6.0.9庫(kù)文件刪除 解決方法如下
第一種問(wèn)題如下
```
:-1: Multiple commands produce '/Users/apple/Library/Developer/Xcode/DerivedData/***-bhlqprgipomplmdvezvqeblrssva/Build/Products/Debug-iphonesimulator/***.app/Info.plist':
1) Target '***' (project '***') has copy command from '/Users/apple/Desktop/iOS 項(xiàng)目最新版/***/CommonLibrary/Masonry/Info.plist' to '/Users/apple/Library/Developer/Xcode/DerivedData/***-bhlqprgipomplmdvezvqeblrssva/Build/Products/Debug-iphonesimulator/***.app/Info.plist'
2) Target '***' (project '***') has process command with output '/Users/apple/Library/Developer/Xcode/DerivedData/***-bhlqprgipomplmdvezvqeblrssva/Build/Products/Debug-iphonesimulator/***.app/Info.plist'
```
真機(jī)運(yùn)行庫(kù)
打開(kāi)你的終端工具復(fù)制下面路徑
```
open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib
```
如果安裝到別的地方直接點(diǎn)擊Xcode顯示包內(nèi)容 根據(jù)尚敏啊這個(gè)跟路徑找到對(duì)應(yīng)的文件夾即可
模擬器運(yùn)行庫(kù)
打開(kāi)你的終端工具復(fù)制下面路徑
```
open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib
```
如果安裝到別的地方直接點(diǎn)擊Xcode顯示包內(nèi)容 根據(jù)上面這個(gè)跟路徑找到對(duì)應(yīng)的文件夾即可
最后后一步
找你的開(kāi)發(fā)小伙伴要Xcode9版本的 要一個(gè)這個(gè)文件?libstdc++.6.0.9.tbd 放進(jìn)去 退出xcode 重新運(yùn)行