Hello all,
I'm having trouble running my unit tests over SSH after upgrading from Xcode 4
to Xcode 6. My problem appears to be reproducible with a default Xcode project:
1. Using Xcode 6.1.1 (6A2008a)
2. Create an empty Cocoa application
3. Run unit tests via an SSH session using: `xcodebuild -scheme
MyCocoaApplication test`
Expected behavior: Unit tests behave the same as they do when the same command
is ran locally on the machine in a Terminal window with no SSH session.
Found behavior:
$ xcodebuild -scheme MyCocoaApplication test
=== BUILD TARGET MyCocoaApplication OF PROJECT MyCocoaApplication WITH
CONFIGURATION Debug ===
Check dependencies
=== BUILD TARGET MyCocoaApplicationTests OF PROJECT MyCocoaApplication WITH
CONFIGURATION Debug ===
Check dependencies
Testing failed:
Test target MyCocoaApplicationTests encountered an error (Test session
exited(-1) without checking in. If you believe this error represents a bug,
please attach the log file at
/var/folders/h2/xngxkxm15_93gm4n50p7s_mm0000gp/T/com.apple.dt.XCTest-status/Session-2015-01-15_12:35:52-0qPMDN.log)
** TEST FAILED **
$ cat
/var/folders/h2/xngxkxm15_93gm4n50p7s_mm0000gp/T/com.apple.dt.XCTest-status/Session-2015-01-15_12:35:52-0qPMDN.log
2015-01-15 12:35:52.372 Beginning test session with Xcode 6A2008a
2015-01-15 12:35:52.372
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -scheme
MyCocoaApplication test
2015-01-15 12:35:52.372 Testing on device: <DVTLocalComputer: 0x7fc76a8b14e0
(My Mac | x86_64h)>
2015-01-15 12:35:52.372 Writing testing status log to
/var/folders/h2/xngxkxm15_93gm4n50p7s_mm0000gp/T/com.apple.dt.XCTest-status/Session-2015-01-15_12:35:52-0qPMDN.log.
2015-01-15 12:35:52.372 Initializing test infrastructure.
2015-01-15 12:35:52.372 Waiting for connection to unix domain socket.
2015-01-15 12:35:52.516 Launch session started, setting a disallow-finish-token
on the run operation.
2015-01-15 12:35:53.129 Adding console adaptor for test process.
2015-01-15 12:35:55.689 Test operation failure: Test session exited(-1) without
checking in.
2015-01-15 12:35:55.689 _finishWithError:Error
Domain=IDEUnitTestsOperationsObserverErrorDomain Code=3 "Test session
exited(-1) without checking in." UserInfo=0x7fc76ade8110
{NSLocalizedDescription=Test session exited(-1) without checking in.}
didCancel: 1
What am I missing? How can I run my unit tests via SSH?
Thanks,
- Andrew Keller
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com
This email sent to [email protected]