xcode10 開發環境 比 以前有了稍微的變更c++
1. 代碼塊 界面控件 圖片資源等 的查看位置發生了變化xcode
以前的開發環境 代碼塊 統一放在 右側欄的下方的幾個選項中app
如今 統一放到了上方iphone
就是圖中 最左邊這個。ui
要查看代碼塊的話 須要單機這個 { }spa
看圖片資源的話 方法相似 code
2. 代碼 能夠從新 根據 { }來收起展開了。 中間有一段時間 只容許收起整個方法 而對於方法裏面的 判斷 是不能夠單獨收起的, xcode10 又把 根據 { } 收起代碼塊的功能加上了regexp
3.新增了個編譯系統 用xcode10新建立的項目默認都會選擇 new Build system . orm
在xcode10中打開用xcode10以前打開的工程 可能會報錯blog
error: Multiple commands produce '/Users//Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphoneos/xxx.app':
1) Target 'xxxx' has create directory command with output '/Users/xxxx/xxxx.app'
2) That command depends on command in Target 'xxxx': script phase 「[CP] Copy Pods Resources」
修改build system
在Xcode菜單欄 -> File -> Workspace Setting,將build system修改成legacy build system,而後clean後編譯。
就是切換成老的編譯系統,就OK了。
4. 找不到libstdc++.6.0.9
升級到Xcode10,因爲iOS12移除了libstdc++.6.0.9,因此好的辦法就是把這個庫用libc++替換掉。可是項目中有的第三方的靜態庫裏面使用到了,而且還沒來得及修復這個問題,實在是沒得什麼好辦法,因此就暫時把Xcode9中的libstdc++移動到了Xcode10對應目錄下,一個筆記本保存多個不一樣版本的xcode 是多麼的重要。具體路徑-->
cp /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/libstdc++.* /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/ cp /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/libstdc++.* /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/
5. 歡迎評論補充、、、