代码= 53"模拟器验证失败."

mar*_*dan 20 xcode xcodebuild ios

自从我尝试运行后更新到XCode 6.2

xcodebuild -project Demo.xcworkspace -scheme Demo clean build test
Run Code Online (Sandbox Code Playgroud)

我总是得到:

iPhoneSimulator: SimVerifier returned: Error Domain=NSPOSIXErrorDomain Code=53 
"Simulator verification failed." UserInfo=0x7f82b9e091a0 
{
    NSLocalizedFailureReason=A connection to the simulator verification service could
    not be established., 

    NSLocalizedRecoverySuggestion=Ensure that Xcode.app is installed on a volume with 
    ownership enabled., 

    NSLocalizedDescription=Simulator verification failed.
}
Run Code Online (Sandbox Code Playgroud)

有没有遇到过这个?

截图

Mic*_*ire 21

/Library/Developer我没有简单地删除目录,而是更新了所有实例的权限,dyld_sim以匹配Apple在此帖中提到的Jeremy .首先,使用以下命令在您的机器上查找此实例:

sudo find / -name dyld_sim
Run Code Online (Sandbox Code Playgroud)

然后,检查每个权限:

ls -l "<file location\file name>"
Run Code Online (Sandbox Code Playgroud)

如果你没有看到:

-rwxr-xr-x  1 root  wheel  
Run Code Online (Sandbox Code Playgroud)

然后,您需要修改权限才能正确匹配.在我的情况下,集团所有权是错误的,并列为admin而不是wheel.运用

sudo chown :wheel "<file location\file name>"
Run Code Online (Sandbox Code Playgroud)

更改每个错误实例的组所有权更正了问题.如果问题是标志而不是所有权,则需要使用chmod.

  • 我的变化:`find/Library/Developer/CoreSimulator -name dyld_sim -ls`来检查所有权; `sudo find/Library/Developer/CoreSimulator -name dyld_sim -exec chgrp wheel {} \;`来改变所有权 (16认同)

小智 5

在尝试运行模拟器(由Jeremy Huddleston Sequoia建议)并移除不可用的模拟器(如pwc建议)后,我仍然没有爱.

Jeremy认为这是dyld_sim的权限问题.所以我去寻找dyld_sim文件.我找到了两个,一个在/ Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.1.simruntime ...另一个在/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform ...

/ Library/Developer下的8.1版本是从去年10月开始的.面对重新安装,我决定删除/ Library/Developer/CoreSimulator目录(只包含8.1模拟器的配置文件),看看发生了什么.

都好.迦太基现在为我正确建造.

我的假设是Xcode构建有点丢失并且拾起旧的.在我的情况下,与权限或不可用的模拟器无关.


spf*_*ich 0

sudo rm -rf /库/开发人员/*

然后我从开发者网站而不是应用程序商店下载了 XCode,并重新安装。这为我解决了这个问题。