Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-117598

macdeploytqt: could not parse otool output; fails to deploy Qt frameworks and dependencies

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • None
    • 6.5.1
    • None
    • macOS
    • 7071aa8af (dev)

    Description

      Running macdeployqt on a GitLab CI build agent randomly fails to parse the output from otool. Below is a copy paste of macdeployqt run with verbosity level 3 (-verbose=3).

      QProcess: Destroyed while process ("otool") is still running.
      Log: Using otool:
      Log: inspecting "/Users/gitlab/<PATH-TO-BUNDLE>/<BUNDLE>.app/Contents/MacOS/<APP>
      ERROR: Could not parse otool output: ""
      QProcess: Destroyed while process ("otool") is still running. 
      WARNING:
      WARNING: Could not find any external Qt frameworks to deploy in "/Users/gitlab/<PATH-TO-BUNDLE>/<BUNDLE>.app"
      WARNING: Perhaps macdeployqt was already used on "/Users/gitlab/<PATH-TO-BUNDLE>/<BUNDLE>.app" ?
      WARNING: If so, you will need to rebuild "/Users/gitlab/<PATH-TO-BUNDLE>/<BUNDLE>.app" before trying again.
      

       

      Below is a copy paste of a successful macdeployqt run (-verbose=3),

      QProcess: Destroyed while process ("otool") is still running.
      Log: Using otool:
      Log:  inspecting "/Users/gitlab/<PATH-TO-BUNDLE>/<BUNDLE>.app/Contents/MacOS/<APP>"
      Log: Using otool:
      Log:  inspecting "/Users/gitlab/<PATH-TO-QTDIR>/lib/QtWidgets.framework/Versions/A/QtWidgets"
      Log: Adding framework:
      Log: Framework name "QtWidgets.framework" 
      .
      .
      .
      

      The message from QProcess (Destroyed while processing ("otool") is still running) is present in both successful runs and failing runs.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            samij Sami Järvinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes