由于我更新到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。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。