You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Based on this, I tried xcodebuild -project travis-ios-test.xcodeproj -scheme travis-ios-test -sdk iphonesimulator8.3 -destination 'platform=iOS Simulator,name=iPhone 5s' test and it works. Other permutations of -sdk and -destination that I have tried fail. Using xctool rather than xcodebuildworks. I haven't investigated whether xctool can do multi-destination builds.
Next step here is either locating the intersection of the permutations that we'd like to test with the permutations that actually work on Travis, or investigating a wholesale switch to xctool.
Tried a few more things, narrowed the failure case down, emailed Travis support:
Hi,
I'm trying to get iOS tests running on Travis. I need to test specific combinations of hardware and iOS version, so I'm using the -destination option for xcodebuild, which is also supported by xctool.
However, this does not work on Travis. I've created a minimal test project to demonstrate the issue. Using xcodebuild, the command simply hangs until killed by Travis's 10 minute timeout:
The only way I've been able to get xcodebuild or xctool to work on Travis is by omitting the "OS" option for -destination entirely, but this doesn't satisfy my use case:
I apologize for the big delay. We've had some unexpected team availability shortages this past week.
I must admit that this is the first time I've encountered your use case, and I fear that all of my questions about how to proceed are very naïve. I've been unable to find any information internally about how to test against specific hardware / iOS profiles. Given the fact that your builds are succeeding locally, I have to assume there's something specific about our build VM environment that's causing this, which may be because it's a virtualized environment, or perhaps the stalling behavior is because of a window prompt awaiting input. Such problems typically require flipping all of the debugging and tracing flags and triggering screen captures in the background.
Assuming you're still having issues with -destination, I'd like to fork your project and do some debugging with a background screencapture tool loop. What do you think?
I replied affirmatively.
It seems like our best bet right now is:
Use xctool instead of xcodebuild, as the former seems to have better failure modes
Test against a default -destination for now rather than a hardware / iOS version matrix
Activity
incanus commentedon May 9, 2015
We should check out the new iOS 8
XCTestExpectationfor the delegate callbacks.#conferencelearningincanus commentedon May 12, 2015
We are starting to use
XCTestExpectationover in #1517. This will likely work well for the delegate stuff.Run iOS tests again
jfirebaugh commentedon Jun 1, 2015
I've been doing some debugging to try to pinpoint why Travis hangs. I created a test repo with a minimal iOS test and replicated the hang on Travis.
On Travis's Xcode 6.3 beta image, we get the following ouput from diagnostic commands:
Based on this, I tried
xcodebuild -project travis-ios-test.xcodeproj -scheme travis-ios-test -sdk iphonesimulator8.3 -destination 'platform=iOS Simulator,name=iPhone 5s' testand it works. Other permutations of-sdkand-destinationthat I have tried fail. Usingxctoolrather thanxcodebuildworks. I haven't investigated whetherxctoolcan do multi-destination builds.Next step here is either locating the intersection of the permutations that we'd like to test with the permutations that actually work on Travis, or investigating a wholesale switch to
xctool.jfirebaugh commentedon Jun 1, 2015
Tried a few more things, narrowed the failure case down, emailed Travis support:
incanus commentedon Jun 15, 2015
@jfirebaugh Have you heard back from Travis on this? Any leads?
jfirebaugh commentedon Jun 15, 2015
Yeah, got this back a few days ago:
I replied affirmatively.
It seems like our best bet right now is:
-destinationfor now rather than a hardware / iOS version matrixjfirebaugh commentedon Jun 15, 2015
Done. Followup in #1727.