Pas*_*Pup 9 xcode jnlp ios jenkins
我一直试图让xcodebuild测试使用Jenkins在远程机器上工作.我遇到了无法通过SSH启动GUI的错误,并通过如下建议通过JNLP启动从站解决了这个错误: 在Xcode 6下通过SSH运行xcodebuild测试时超时.现在我收到一个新错误:
错误域= IDEUnitTestsOperationsObserverErrorDomain代码= 3"在等待测试过程签入时由于超时而取消测试..."
无论我是在终端上还是通过Jenkins成功构建和运行测试,我都会遇到这些错误:
iPhoneSimulator:SimVerifier返回:错误域= NSPOSIXErrorDomain代码= 53"模拟器验证失败." {NSLocalizedFailureReason =无法建立与模拟器验证服务的连接.,NSLocalizedRecoverySuggestion =确保在已启用所有权的卷上安装Xcode.app.,NSLocalizedDescription =模拟器验证失败.}
iPhoneSimulator:无法连接到"com.apple.instruments.deviceservice.lockdown"(错误域= com.apple.CoreSimulator.SimError代码= 146"无法在当前状态下查找:关闭"
我确保在安装了XCode的地方启用了所有权,我已经重置了模拟器上的内容和设置,并且我已将我的plist文件移动到/ Library/LaunchAgents中.我试过谷歌搜索这些错误,找不到任何与我的问题有关的东西.有没有人有任何其他建议?
其他信息:
XCode版本6.2(6C131e)
日志文件:
2015-03-24 12:14:10.719 Beginning test session with Xcode 6C131e
2015-03-24 12:14:10.720 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild test -project proj.xcodeproj -scheme development -destination platform=iOS Simulator,name=iPad Air
2015-03-24 12:14:10.720 Testing on device: <DVTiPhoneSimulator: 0x7f8235cb3570> {SimDevice: SimDevice : iPad Air (625C9344-19B9-4F6C-B70B-8BDD3B753E17) : state={ Booted } deviceType={ SimDeviceType : com.apple.CoreSimulator.SimDeviceType.iPad-Air } runtime={ SimRuntime : 8.2 (12D508) - com.apple.CoreSimulator.SimRuntime.iOS-8-2 }}
2015-03-24 12:14:10.720 Writing testing status log to /var/folders/mx/9d2jm4sj6t54sld_9cj1bgz40000gn/T/com.apple.dt.XCTest-status/Session-2015-03-24_12:14:10-QR746X.log.
2015-03-24 12:14:10.720 Initializing test infrastructure.
2015-03-24 12:14:10.749 Creating the connection.
2015-03-24 12:14:10.749 Listening for proxy connection request from the test bundle (all platforms)
2015-03-24 12:14:10.749 Resuming the connection.
2015-03-24 12:14:10.749 Test connection requires daemon assistance.
2015-03-24 12:14:10.933 Checking test manager availability..., will wait up to 120s
2015-03-24 12:14:10.936 testmanagerd handled session request.
2015-03-24 12:14:10.936 Waiting for test process to launch.
2015-03-24 12:14:15.951 Launch session started, setting a disallow-finish-token on the run operation.
2015-03-24 12:14:15.952 Waiting for test process to check in..., will wait up to 120s
2015-03-24 12:14:15.979 Adding console adaptor for test process.
2015-03-24 12:16:15.956 Unable to get debug console for logging target process thread state.
2015-03-24 12:16:15.956 Test operation failure: Canceling tests due to timeout in Waiting for test process to check in...
2015-03-24 12:16:15.956 _finishWithError:Error Domain=IDEUnitTestsOperationsObserverErrorDomain Code=3 "Canceling tests due to timeout in Waiting for test process to check in..." UserInfo=0x7f8231c1dff0 {NSLocalizedDescription=Canceling tests due to timeout in Waiting for test process to check in...} didCancel: 1
Run Code Online (Sandbox Code Playgroud)
我仍然看到错误消息,但我能够让 Jenkins 运行我的单元测试。以下是对我有用的步骤: