fastlane: gym hangs on xcrun

Original issue by @contra - Imported from fastlane/gym#143

screen shot 2015-11-13 at 12 30 19 pm

When gym runs xcrun, it never continues because the xcrun command never closes itself.

Running xcrun xcodebuild -list -project './platforms/ios/Charmed.xcodeproj' by hand shows this:

screen shot 2015-11-13 at 12 31 55 pm

It seems as if gym is expecting that xcrun will print the info then close, but in reality it is printing the info and staying open so gym never continues.

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Reactions: 1
  • Comments: 45 (41 by maintainers)

Most upvoted comments

@TKBurner No issues in any of our machines.

Jenkins machine: Ruby 2.2.1, terminal app, bash. My machine: Ruby 2.2.3, iTerm, oh my zsh.

Timeout set: 600ms

@kugaevsky commented

Had the same trouble few days ago. My problem was that xcrun xcodebuild -list -project looking for user scheme in project directory. xcuserdata is where it should be located.

The solution for me was to install xcodeproj gem – gem install xcodeproj. Create small script to recreate user schemes

#!/usr/bin/env ruby
require 'xcodeproj'
xcproj = Xcodeproj::Project.open("MyProject.xcodeproj")
xcproj.recreate_user_schemes
xcproj.save

And execute it. After this xcrun xcodebuild -list -project runs smooth. Hope it helps you!