ios – Code = 53“模拟器验证失败”

由于我更新到XCode 6.2,当我尝试运行

xcodebuild -project Demo.xcworkspace -scheme Demo clean build test

我总是得到:

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.
}

有没有人遇到这个?

解决方法

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

sudo find / -name dyld_sim

然后,检查每个的权限:

ls -l "<file location\file name>"

如果你没看到:

-rwxr-xr-x  1 root  wheel

那么您将需要修改权限才能正确匹配。在我的情况下,组的所有权是错误的,并列为管理员而不是轮。运用

sudo chown :wheel "<file location\file name>"

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

相关文章

在有效期内的苹果开发者账号(类型为个人或者公司账号)。还...
Appuploader官网--IOS ipa上传发布工具,证书制作工具跨平台...
苹果在9月13号凌晨(北京时间)发布 iOS 16,该系统的设备可...
计算机图形学--OpenGL递归实现光线追踪
Xcode 14打出来的包在低版本系统运行时会崩溃,报错信息是Li...