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

iOS: qmake generates wrong rules for QMAKE_BUNDLE_DATA

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.5.0 Beta
    • 5.5.0 Alpha
    • Build tools: qmake
    • None
    • iOS/tvOS/watchOS
    • 6accf40a147b97b8eda8b71268de013d72192359,2c0730839bd771c71c042dce012a1380ff66ef18

    Description

      There is a regression introduced by https://codereview.qt-project.org/#/c/105751/ .

      qmake projects having code like:

      images.files = $$PWD/images 
      images.dirs = Library 
      QMAKE_BUNDLE_DATA += images
      

      will add relative path to the project.pbxproj and that makes compilation to abort

      2015-04-01 11:26:37.337 xcodebuild[10426:754263] [MT] DVTAssertions: ASSERTION FAILURE in /SourceCache/DVTFrameworks/DVTFrameworks-6608/DVTFoundation/FilePaths/DVTFilePath.m:802
      Details: fsrep is relative ('../images') parentPath must not be nil but it is.
      Object: <DVTFilePath>
      Method: +_filePathForParent:fileSystemRepresentation:length:allowCreation:
      Thread: <NSThread: 0x7fcfa8c2e290>{number = 1, name = main}
      Hints: None
      Backtrace:
      0 0x0000000105d5024a -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
      1 0x0000000105d4fc9f _DVTAssertionHandler (in DVTFoundation)
      2 0x0000000105d4ff8e _DVTAssertionFailureHandler (in DVTFoundation)
      3 0x0000000105b8f3db +[DVTFilePath _filePathForParent:fileSystemRepresentation:length:allowCreation:] (in DVTFoundation)
      4 0x0000000105b8efed +[DVTFilePath _filePathForParent:pathString:] (in DVTFoundation)
      5 0x0000000105b8ed5d +[DVTFilePath filePathForPathString:] (in DVTFoundation)
      6 0x00000001076b00f3 +[PBXFileType fileTypeForPath:getExtraFileProperties:] (in DevToolsCore)
      7 0x000000010763ee6b -[PBXFileReference _getEffectiveFileType:fileProperties:] (in DevToolsCore)
      8 0x000000010763eff4 -[PBXFileReference fileType] (in DevToolsCore)
      9 0x00000001076417ff -[PBXFileReference awakeFromPListUnarchiver:] (in DevToolsCore)
      10 0x00007fff9806a0f5 -[NSArray makeObjectsPerformSelector:withObject:] (in CoreFoundation)
      11 0x000000010764e645 -[PBXPListUnarchiver decodeRootObject] (in DevToolsCore)
      12 0x0000000107619069 +[PBXProject projectWithFile:errorHandler:readOnly:] (in DevToolsCore)
      13 0x0000000107843a32 -[Xcode3Project initWithFilePath:extension:workspace:error:] (in DevToolsCore)
      14 0x000000010647b9d3 __73+[IDEContainer retainedContainerAtFilePath:fileDataType:workspace:error:]_block_invoke_2 (in IDEFoundation)
      15 0x00007fff91942c13 _dispatch_client_callout (in libdispatch.dylib)
      16 0x00007fff91943e5e _dispatch_barrier_sync_f_invoke (in libdispatch.dylib)
      17 0x0000000105d87eed DVTDispatchBarrierSync (in DVTFoundation)
      18 0x0000000105b8c194 -[DVTDispatchLock performLockedBlock:] (in DVTFoundation)
      19 0x000000010647b3df __73+[IDEContainer retainedContainerAtFilePath:fileDataType:workspace:error:]_block_invoke (in IDEFoundation)
      20 0x0000000105cc6c79 -[DVTModelObjectGraph performBlockCoalescingModelChanges:] (in DVTFoundation)
      21 0x000000010617cd57 +[IDEContainer retainedContainerAtFilePath:fileDataType:workspace:error:] (in IDEFoundation)
      22 0x0000000106188436 -[IDEWorkspace _configureWrappedWorkspaceWithError:] (in IDEFoundation)
      23 0x000000010647b43d __73+[IDEContainer retainedContainerAtFilePath:fileDataType:workspace:error:]_block_invoke (in IDEFoundation)
      24 0x000000010617cd6b +[IDEContainer retainedContainerAtFilePath:fileDataType:workspace:error:] (in IDEFoundation)
      25 0x000000010617c16d +[IDEContainer retainedWrappedWorkspaceForContainerAtFilePath:fileDataType:error:] (in IDEFoundation)
      26 0x00000001068740b8 -[Xcode3CommandLineBuildTool _resolveInputOptionsWithTimingSection:] (in Xcode3Core)
      27 0x0000000106883939 -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
      28 0x0000000105b839b6 (in xcodebuild)
      29 0x00007fff8a8ab5c9 start (in libdyld.dylib)
      make[2]: *** [iphoneos-release] Abort trap: 6
      make[1]: *** [release-iphoneos] Error 2
      

      Attachments

        For Gerrit Dashboard: QTBUG-45424
        # Subject Branch Project Status CR V

        Activity

          People

            buddenha Oswald Buddenhagen
            andras@kdab.com Andras Mantia
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes