升級 Xcode 10 報錯libstdc++.6.0.9 或info.plist

weixin_34148340發表於2018-10-22

因為部分專案依賴 libstdc++.6.0.9 升級後在Xcode 10直接爆紅
原因是Xcode 10中將libstdc++.6.0.9庫檔案刪除 解決方法如下
第一種問題如下

```

:-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 專案最新版/***/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'

```

1975889-0b25ec899b024fab.png
Xcode - File - Project Settings - Build System - 選擇LegacyBuild System - Done


1975889-794f0d094b35f7b1.png
遇到這個問題不要怕慢慢來

真機執行庫

開啟你的終端工具複製下面路徑

```

open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib

```

如果安裝到別的地方直接點選Xcode顯示包內容 根據尚敏啊這個跟路徑找到對應的資料夾即可

模擬器執行庫

開啟你的終端工具複製下面路徑

```

open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib

```

如果安裝到別的地方直接點選Xcode顯示包內容 根據上面這個跟路徑找到對應的資料夾即可

最後後一步

找你的開發小夥伴要Xcode9版本的 要一個這個檔案 libstdc++.6.0.9.tbd 放進去 退出xcode 重新執行

相關文章