ios模擬器已安裝但xcode無法顯示

來源:互聯網
上載者:User

標籤:blog   http   io   ar   os   使用   for   strong   on   

最近把系統抹盤重裝了, 然後用Time Machine恢複到原始狀態, 一切安好, 但是使用xcode的時候發現一個模擬器都沒有了:

各種折騰, 重裝SDK啊, 重裝xcode啊,最後發現, 如果你的simulator(/Applications/Xcode/Contents/Developer/Applications/iOS Simulator) 和SDK(/Applications/Xcode/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs)確定都在的情況下,就別想著各種重裝了.

同時, 這種情況下, 你去單獨運行模擬器, 會得到如下錯誤:"unable to determine device", 這種錯誤, 在一切正常的情況下, 是開了多個模擬器. 在我們今天碰到的情況下, 是一個模擬器都沒有!

解決:

  1. 開啟Xcode -> Open Developer Tool -> iOS simulator(即使此時你是看不到模擬器的, 但程式其實已經開啟了,托盤表徵圖和菜單就是證據)
  2. 找到菜單Hardware -> Device -> Manage Devices
  3. 接下來添加模擬器就行了

到此,模擬器終於出現了, 真是糾結.

ios模擬器已安裝但xcode無法顯示

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.