facebookarchive / xctool

An extension for Apple's xcodebuild that makes it easier to test iOS and macOS apps.
Apache License 2.0
6.91k stars 738 forks source link

xctool hangs "Collecting info for testables..." on CI only #702

Closed mokagio closed 8 years ago

mokagio commented 8 years ago

xctool clean test works fine locally, but consistently hangs on CI after:

    [INFO] Collecting info for testables...

This happens both on Travis CI and Circle-CI. Here's the Circle build and Travis build. Too see more failures look at the Travis CI builds list.

Some related issues:

The fact that it hangs on different CI providers makes me think the issues is related with xctool itself rather that the CI.

I'd like to help fixing this if I can, although I'm not sure where to begin, apart from the fact that this is where that log is fired.

Any ideas on how to diagnose this?

aymericio commented 8 years ago

I get also this message in this moment but in local with a Swift project. Nothing happen after.

danielribeiro commented 8 years ago

Make sure xctool was built with currnet xcode version. I've seen this a lot on xctool built with Xcode 7.2.1 vs one with Xcode 7.3.1

danielgalasko commented 8 years ago

Any updates on this?

ExtremeMan commented 8 years ago

I don't think it is xctool issue. I remember seeing something similar when xcodebuild -showBuildSettings was hanging. Can you run with -showTasks and tell where exactly xctool is stuck?

danielribeiro commented 8 years ago

xcodebuild -showBuildSettings on xcode 7.3.1 has a known race condition.