【问题标题】:Unable to boot the iOS Simulator - xcode 6.0.1无法启动 iOS 模拟器 - xcode 6.0.1
【发布时间】:2014-11-22 00:53:18
【问题描述】:

我在 OS X Mavericks 10.9.5 上的 Xcode 6.0.1 中有一个错误。

当我调试时,iOS 8 模拟器显示此错误:

无法启动 iOS 模拟器。

几秒钟后,Xcode 显示另一个错误:

运行时遇到错误(Domain = DTiPhoneSimulatorErrorDomain, Code = 2)

但是,iOS 7 模拟器可以工作!!

【问题讨论】:

  • 我今天遇到了模拟器问题,我需要做的就是退出模拟器,然后重试。也许这会奏效......

标签: ios ios-simulator xcode6


【解决方案1】:

你设置了 DYLD_INSERT_LIBRARIES 吗?检查 /etc/launchd.conf 并在 ~/Library/Logs/DiagnosticReports 中查找 launchd_sim 崩溃日志......如果是这样,这是一个欺骗

Unable to boot iOS 8 Simulator

【讨论】:

    【解决方案2】:

    在这一点上,与 XCode 5 相比,XCode 6 中的模拟器似乎存在很多问题。我特别发现在各种部署目标和模拟器设备之间切换时出现问题。重新启动模拟器通常可以解决问题,如果没有尝试重新启动 XCode。

    【讨论】:

    • 不幸的是,大多数问题与模拟器本身无关,而是与操作系统有关。无需返回 Xcode 5 进行测试,只需从 Xcode 的下载(在 Xcode 的首选项中)下载并安装 iOS 7.1 模拟器运行时。此外,大多数主要问题似乎都在 iOS 8.2 beta 中得到解决,包含在 Xcode 6.2 beta 中。
    【解决方案3】:

    我也遇到了这个问题,通过以下步骤找到了解决方案:-

     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.
    

    >

    希望这对任何人都有帮助。

    【讨论】:

      【解决方案4】:

      谢谢小伙子,但我终于找到了解决方案。 对于那些仍在寻找解决方案的人,这是对我有帮助的一个:

      有一个文件 /etc/launchd.conf 不会被 Yoseph 使用。我刚刚删除了它。您也可以在该文件中取消设置 DYLD_INSERT_LIBRARIES 环境变量。希望对大家有所帮助。

      【讨论】:

        【解决方案5】:

        确保您在路径下选择了“Xcode --> Preferences --> Locations --> Command Line Tools --> Xcode 6.0,如果没有选择它。另一个选项是在 iOS Simulator 下执行“Reset Content And Settings “。希望这会有所帮助!

        【讨论】:

        • 命令行工具与 iOS 模拟器无关。
        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2014-11-16
        • 1970-01-01
        • 2017-02-28
        • 2014-11-15
        • 1970-01-01
        • 1970-01-01
        • 2017-02-27
        相关资源
        最近更新 更多