升級Xcode10遇到的坑
1.libstdc++.6.0.9.tbd缺失
在Xcode10中取消了這個庫,所以當?shù)谌龓焓褂玫降臅r候就會報錯。
解決辦法:
找一個Xcode10以下的版本捌锭,進入目錄中,把libstdc++.6.0.9.tbd庫拿出來放到Xcode10中對應的目錄下献宫。
真機目錄:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
模擬器目錄:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/
libstdc++.6.0.9.tbd百度云鏈接:鏈接:https://pan.baidu.com/s/1qv8GdQbxL78FTSTNwsr29g 密碼:9jgi
2.info.plist編譯報錯
Showing Recent Messages
:-1: Multiple commands produce '/Users/mc/Library/Developer/Xcode/DerivedData/xxx-cjlewfnngpnmytdofopeeyggyikv/Build/Products/Debug-iphonesimulator/xxx.app/Info.plist':
- Target 'xxx' (project 'xxx') has copy command from 'xxx/Info.plist' to '/Users/mc/Library/Developer/Xcode/DerivedData/xxx/Build/Products/xxx.app/Info.plist'
-
Target 'xxx' (project xxx') has process command with output '/Users/mc/Library/Developer/Xcode/DerivedData/xxx/Build/Products/xxx.app/Info.plist'
這是因為項目中存在了多個info.plist文件導致報錯
解決辦法:
info.plist編譯報錯
把info.plist都刪除掉即可
3.#import <>崩潰問題,不提示問題
更改編譯方式Xcode --> File --> Workspace Setttings --> Build System --> Legacy Build System