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

REG[4.8-5.6] QMake generated xcodeproj doesn't support Time Machine backup

    XMLWordPrintable

    Details

    • Commits:
      554e44b77de8df75cfa7b9a4dc81a795509e7de9 (5.9.6) 7c3053b301a70b04f5ab4ed9c3f3a6c84cb89616 (5.11.1)

      Description

      Generate .xcodeproject. Build with Xcode. See that whole application directory will be excluded from the Time Machine.

      Comparing to Qt 4.8.7 this doesn't happen. Difference is that Qt 4 creates build subdirectory for build files. But Qt5 creates build files to the application directory.

      Qt 4.8:
      Check that "timemachine" application folder is not excluded:

      sudo mdfind "com_apple_backup_excludeItem = 'com.apple.backupd'" | grep "timemachinetest"
      

      Create Qt 4.8 xcodeproj file:

      /work/qt/installer/4.8/cocoa_gcc/bin/qmake -spec macx-xcode
      

      Build Xcode project:

      xcodebuild -target timemachitetest
      

      Check excluded application directories:

      sudo mdfind "com_apple_backup_excludeItem = 'com.apple.backupd'" | grep "timemachinetest"
      /work/timemachinetest/build/timemachinetest.build
      /work/timemachinetest/build
      

      Notice that both excluded directories are generated build directories
      Delete generated files:

      rm -fr build Info.plist timemachinetest.xcodeproj moc_mainwindow.cpp ui_mainwindow.h 
      

      Qt5:
      Check that "timemachine" application folder is not excluded:

      sudo mdfind "com_apple_backup_excludeItem = 'com.apple.backupd'" | grep "timemachinetest"
      

      Create Qt 5.6 xcodeproj file:

      /work/qt/installer/5.6/clang_64/bin/qmake -spec macx-xcode
      xcodebuild -target timemachinetest
      

      Check excluded application directories:

      sudo mdfind "com_apple_backup_excludeItem = 'com.apple.backupd'" | grep "timemachinetest"
      /work/timemachinetest
      

      Notice that Application directory is excluded and won't be backup from Time Machine.
      Delete generated files:

      rm -fr Info.plist moc_mainwindow.cpp ui_mainwindow.h Release timemachinetest.build timemachinetest.xcodeproj
      

      User have to remove exclusion manually if application directory is wanted to be backed up by Time Machine

      tmutil removeexclusion /work/timemachinetest
      

      So problem seems to be that timemachinetest.build is generated to the application directory and Xcode will exclude that directory. Qt4 it's located in "build"-subdirectory and won't cause the issue.

        Attachments

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

          Activity

            People

            • Assignee:
              vestbo Tor Arne Vestbø
              Reporter:
              markan Marko Kangas
            • Votes:
              3 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes