由于我更新到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。