簡體   English   中英

無法啟動iOS模擬器-xcode 6.0.1

[英]Unable to boot the iOS Simulator - xcode 6.0.1

我在OS X Mavericks 10.9.5上的Xcode 6.0.1中出錯。

當我調試時,iOS 8模擬器顯示此錯誤:

無法啟動iOS模擬器。

幾秒鍾后,Xcode顯示另一個錯誤:

運行時遇到錯誤(域= DTiPhoneSimulatorErrorDomain,代碼= 2)

但是,iOS 7模擬器可以運行!!

您設置了DYLD_INSERT_LIBRARIES嗎? 檢查/etc/launchd.conf並在〜/ Library / Logs / DiagnosticReports中查找launchd_sim崩潰日志...如果是這樣,這是重復的

無法啟動iOS 8模擬器

到目前為止,與XCode 5相比,XCode 6中的模擬器似乎存在很多問題。在各種部署目標和模擬器設備之間進行切換時,我尤其看到了問題。 重新啟動模擬器通常可以解決問題,如果不嘗試,請嘗試重新啟動XCode。

我也遇到這個問題,並通過執行以下步驟找到了解決方案:-

 1) Initially i downloaded Xcode 6 library in Documentation section under the path Xcode --> Preferences --> Downloads and restart my xcode but didn't solve my problem. 

After that -> 

2) Downloaded and installed the iOS 7.1 Simulator under the path Xcode --> Preferences --> Downloads. 

        Restart xcode again and the problem solved.

3) I am facing same issue again next morning.

       Unsetting the DYLD_INSERT_LIBRARIES variable solves my problem:-

 a) Open terminal and type "sudo vi /etc/launchd.conf" command and press Enter
 b) Press I "Insert" mode and change this 

             "setenv DYLD_INSERT_LIBRARIES /usr/lib/libimckit.dylib" 

                                  to this 

              "unsetenv DYLD_INSERT_LIBRARIES /usr/lib/libimckit.dylib" 

       and press esc to exit from insert mode. 

    c) Save changes by typing ":wq" Press Enter
    d) Reboot your system and problem soloved.  

在此處輸入圖片說明

Prior to that i didn't found any iOS version in front of each listed devices 
but after installation or by unsetting DYLD_INSERT_LIBRARIES variable i found the same in front of each devices.

> 在此處輸入圖片說明

希望這對任何人有幫助。

謝謝伙計們,但我終於找到了解決方案。 對於那些仍在尋找解決方案的人,以下是對我有幫助的一種:

Yoseph不會使用/etc/launchd.conf文件。 我剛剛刪除了它。 您也可以在該文件中取消設置DYLD_INSERT_LIBRARIES環境變量。 希望這對大家有幫助。

如果沒有選擇,請確保已在路徑“ Xcode->首選項->位置->命令行工具-> Xcode 6.0”下進行了選擇。另一個選項是在iOS Simulator下執行“重置內容和設置”。這有幫助!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM