fastlane: xcodebuild -showBuildSettings hangs, Xcode 9 Beta 5

New Issue Checklist

Issue Description

The xcodebuild -showBuildSettings command seems to hang on the latest Xcode beta.

Command timed out after 10 seconds on try 1 of 4, trying again… [20:18:59]: Command timed out after 10 seconds on try 2 of 4, trying again… [20:19:09]: Command timed out after 10 seconds on try 3 of 4, trying again… [20:19:19]: Command timed out after 10 seconds on try 4 of 4

Complete output when running fastlane, including the stack trace and command used

You can use: --capture_output as the last commandline argument to get that collected for you

Captured Output

Command Used: hockey

Output/Log

Successfully loaded Appfile at path '/Users/barrettjacobsen/Programming/Attainment/GoVisual/fastlane/Appfile'
- apple_id: 'barrett@attainmentcompany.com'
-------

+------+------------------------+-------------+
|              fastlane summary               |
+------+------------------------+-------------+
| Step | Action                 | Time (in s) |
+------+------------------------+-------------+
| 1    | rm -f                  | 0           |
|      | '/Users/barrettjacobs  |             |
|      | en/Programming/Attain  |             |
|      | ment/GoVisual          |             |
| 2    | increment_build_numbe  | 2           |
|      | r                      |             |
| 3    | commit_version_bump    | 0           |
| 4    | cocoapods              | 4           |
| 💥   | gym                    | 42          |
+------+------------------------+-------------+



✅ fastlane environment ✅

Stack

Key Value
OS 10.12.6
Ruby 2.0.0
Bundler? false
Git git version 2.13.3 (Apple Git-91)
Installation Source /usr/local/bin/fastlane
Host Mac OS X 10.12.6 (16G29)
Ruby Lib Dir /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
OpenSSL Version OpenSSL 0.9.8zc 19 Mar 2015
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode-beta.app/Contents/Developer/
Xcode Version 9.0

System Locale

Variable Value
LANG en_US.UTF-8
LC_ALL
LANGUAGE

fastlane files:

`./fastlane/Fastfile`
# Customise this file, documentation can be found here:
# https://github.com/krausefx/fastlane#customise-the-fastfile

workspace = "GoVisual.xcworkspace"
ipaDestination = Dir.pwd + "/IPAs/"




before_all do
  # ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."

  #cleanup IPAs folder
  sh "rm -f '" + ipaDestination + "'*.*"
  
  increment_build_number
  commit_version_bump
  cocoapods 
  #acknowledgePodsNotUPdated = prompt(text: "Pods are not currently being updated when doing a fastlane due to necessary manual modifications!", boolean: true)
end



lane :hockey do
  ENV['APP'] = 'com.attainmentcompany.GoTalk-Scene-Maker'
 
  gym({
    configuration: "Debug",
    scheme: "GoVisual",
    output_directory: ipaDestination,
    export_method: "development",
  })

  releaseNotesPath = File.expand_path(Dir.pwd +  '/../ReleaseNotes.txt')

  doneWithChanges = prompt(text: "Have release notes been updated yet?", boolean: true)

  unless doneWithChanges 
    system('open -Wne "' + releaseNotesPath + '"')
  end

  file = File.open(releaseNotesPath, "rb")
  notes = file.read

  hockey({
    api_token: hockeyApiToken,
    #ipa: Actions.lane_context[Actions::SharedValues::IPA_OUTPUT_PATH],
    notes: notes
  })
end

lane :hockeynotesdone do
  ENV['APP'] = 'com.attainmentcompany.GoTalk-Scene-Maker'
 
  gym({
    configuration: "Debug",
    scheme: "GoVisual",
    output_directory: ipaDestination,
    export_method: "development",
  })

  releaseNotesPath = File.expand_path(Dir.pwd +  '/../ReleaseNotes.txt')

  file = File.open(releaseNotesPath, "rb")
  notes = file.read

  hockey({
    api_token: hockeyApiToken,
    #ipa: Actions.lane_context[Actions::SharedValues::IPA_OUTPUT_PATH],
    notes: notes
  })
end
`./fastlane/Appfile`
app_identifier ENV['APP']

apple_id "barrett@attainmentcompany.com"```
</details>

### fastlane gems

| Gem      | Version | Update-Status |
| -------- | ------- | ------------- |
| fastlane | 2.51.0  | ✅ Up-To-Date  |


### Loaded fastlane plugins:

**No plugins Loaded**


<details><summary><b>Loaded gems</b></summary>

| Gem                       | Version      |
| ------------------------- | ------------ |
| slack-notifier            | 1.5.1        |
| rouge                     | 1.11.1       |
| xcpretty                  | 0.2.4        |
| terminal-notifier         | 1.7.1        |
| unicode-display_width     | 1.1.2        |
| terminal-table            | 1.7.3        |
| plist                     | 3.2.0        |
| CFPropertyList            | 2.3.4        |
| multipart-post            | 2.0.0        |
| word_wrap                 | 1.0.0        |
| tty-screen                | 0.5.0        |
| babosa                    | 1.0.2        |
| colored                   | 1.2          |
| highline                  | 1.7.8        |
| commander-fastlane        | 4.4.5        |
| excon                     | 0.54.0       |
| unf_ext                   | 0.0.7.2      |
| unf                       | 0.1.4        |
| domain_name               | 0.5.20161129 |
| http-cookie               | 1.0.3        |
| faraday-cookie_jar        | 0.0.6        |
| fastimage                 | 2.1.0        |
| gh_inspector              | 1.0.2        |
| uber                      | 0.0.15       |
| declarative               | 0.0.9        |
| declarative-option        | 0.1.0        |
| representable             | 3.0.4        |
| retriable                 | 2.1.0        |
| public_suffix             | 2.0.4        |
| addressable               | 2.5.1        |
| mime-types-data           | 3.2016.0521  |
| mime-types                | 3.1          |
| little-plugger            | 1.1.4        |
| multi_json                | 1.12.1       |
| logging                   | 2.1.0        |
| jwt                       | 1.5.6        |
| memoist                   | 0.15.0       |
| os                        | 0.9.6        |
| signet                    | 0.7.3        |
| googleauth                | 0.5.1        |
| httpclient                | 2.8.3        |
| google-api-client         | 0.12.0       |
| mini_magick               | 4.5.1        |
| multi_xml                 | 0.6.0        |
| security                  | 0.1.3        |
| xcpretty-travis-formatter | 0.0.4        |
| dotenv                    | 2.1.1        |
| bundler                   | 1.13.6       |
| faraday_middleware        | 0.10.1       |
| json                      | 1.8.6        |
| rubyzip                   | 1.2.0        |
| faraday                   | 0.12.1       |
| claide                    | 1.0.2        |
| colored2                  | 3.1.2        |
| nanaimo                   | 0.2.3        |
| xcodeproj                 | 1.5.1        |
| libxml-ruby               | 2.6.0        |
</details>


*generated on:* **2017-08-07**
</details>

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 28
  • Comments: 35 (17 by maintainers)

Most upvoted comments

Can confirm, it works in B6 for a sample project I used for my radar that didn’t work on B5 🎉

Having the same issue – running it on Command Line doesn’t seem to help so I don’t think this is a Fastlane issue but an Xcode issue.

This is an incredibly hacky workaround, but I managed to force the process to continue by

  1. setting the environment variable FASTLANE_XCODE_LIST_TIMEOUT to 0
  2. manually force-quitting the “xcodebuild” process in Activity Monitor when it got stuck

At which point the lane continued.

Just ran xcodebuild -showBuildSettings using today’s Xcode9 beta 6 on a simple Xcode project and it seems not to hang anymore. Haven’t tested running fastlane with this beta yet though, as I don’t have any project with a Fastfile on this computer, so I’ll have to test on my work computer for that tomorrow. But it’s promising (even if no mention of any of this in the Release Notes… 🤔 )!

If you set in Xcode > preferences > Locations the command line tools to Xcode 8 it works well but if you use the Xcode 9 beta 5 you’ll be stuck.

For fun, I tried this on the TestInclusions example from CocoaPods and there is no problem. Why?

Not 100% sure, but I don’t think those errors are new in Xcode 9, and from what I can tell they’re unrelated to this issue.

Thanks for the feedback folks

issue is solved with Xcode Version 9.0 beta 6 (9M214v)

I have to update my OS version before I can try it, so thank you for giving me hope

I tried setting Xcode to Xcode 8.3 with xcode-select and it still hung. nvm, it works with 8.3.

I’ve filed a radar as well, 33914240. Hopefully it will be fixed in the next beta.

Make sure to include that in the repro steps for your radar to make sure both our issues are addressed if they happen to be different underlying problems!

Here’s what fixed it in our case: https://github.com/realm/realm-cocoa/pull/5208