Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. iOS error: Multiple commands produce conflicting outputs for task LinkStoryboards
Forum Updated to NodeBB v4.3 + New Features

iOS error: Multiple commands produce conflicting outputs for task LinkStoryboards

Scheduled Pinned Locked Moved Solved Mobile and Embedded
1 Posts 1 Posters 775 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Martin Burchell
    wrote on last edited by
    #1

    I couldn't see this error reported anywhere so thought it might be helpful to post the solution.

    I'm in the process of moving our app from Qt5 to Qt 6.5. When building for iOS, I was getting the error:

    error: Multiple commands produce conflicting outputs
    	note: /Users/martin/workspace/camcops/build-camcops-Qt_6_5_1_qt_ios_armv8_64_install-Release/Release-iphoneos/camcops.app/LaunchScreen.storyboardc/ (for task: ["LinkStoryboards"])
    	note: /Users/martin/workspace/camcops/build-camcops-Qt_6_5_1_qt_ios_armv8_64_install-Release/Release-iphoneos/camcops.app/LaunchScreen.storyboardc/ (for task: ["LinkStoryboards"])
    
    ...
    
    warning: duplicate output file '/Users/martin/workspace/camcops/build-camcops-Qt_6_5_1_qt_ios_armv8_64_install-Release/camcops.build/Release-iphoneos/camcops.build/LaunchScreen.storyboardc' on task: CompileStoryboard /Users/martin/workspace/camcops/tablet_qt/ios/LaunchScreen.storyboard (in target 'camcops' from project 'camcops')
    warning: duplicate output file '/Users/martin/workspace/camcops/build-camcops-Qt_6_5_1_qt_ios_armv8_64_install-Release/camcops.build/Release-iphoneos/camcops.build/LaunchScreen-SBPartialInfo.plist' on task: CompileStoryboard /Users/martin/workspace/camcops/tablet_qt/ios/LaunchScreen.storyboard (in target 'camcops' from project 'camcops')
    

    Reading the iOS platform notes, it turns out that the method I was using to specify the storyboard file in my project .pro file no longer works in Qt6.5

    Before the change I was doing this:

    ios {
    ...
        app_launch_screen.files = $$files($${MY_SOURCE_ROOT}/ios/LaunchScreen.storyboard)
        QMAKE_BUNDLE_DATA += app_launch_screen
    ...
    }
    

    I've now fixed the problem as follows:

    ios {
    ...
        QMAKE_IOS_LAUNCH_SCREEN = $${MY_SOURCE_ROOT}/ios/LaunchScreen.storyboard
    ...
    }
    
    1 Reply Last reply
    1
    • M Martin Burchell has marked this topic as solved on

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved