AFAICS this is functionality from the cocoapods
gem. So you need to work with its authors to resolve the problem of long running.
To workaround the output timeout problem, you can start a spinner (code that would print stuff at regular intervals) at the before_install:
phase and stop it at after_install:
phase – since this Travis’ functionality runs at the install:
phase.