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

[iOS] CMake translation handling fails

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS
    • 5b0e765ab0 (qt/qttools/dev) e3b004ef2e (qt/qttools/6.3) e3b004ef2e (qt/tqtc-qttools/6.3) 5b0e765ab0 (qt/tqtc-qttools/dev) e3b004ef2e (qt/qttools/6.3.1) e3b004ef2e (qt/tqtc-qttools/6.3.1) 5b0e765ab0 (qt/qttools/6.4) 5b0e765ab0 (qt/tqtc-qttools/6.4)

    Description

      Defining these in CMakeLists.txt fails in iOS.
      This works fine in all other platforms.

      qt_add_translations(foo "translations" TS_FILES ${MODEL_TS_FILES} QM_FILES_OUTPUT_VARIABLE qmfiles)
      qt_add_resources(foo "translations" PREFIX "/i18n" FILES ${qmfiles} BASE ${CMAKE_CURRENT_BINARY_DIR})
      

      CMake error is output as below.

      CMake Error in duck/tick/CMakeLists.txt:
      The custom command generating
      
      /Users/qtsupport/build-localist-Qt_6_3_0_for_iOS/duck/tick/tick_de.qm
      
      is attached to multiple targets:
      
      duck_tick_resources_3
      duck_tick_lrelease
      
      but none of these is a common dependency of the other(s). This is not
      allowed by the Xcode "new build system".
      

      Please use Qtbug103470.zip to reproduce the error.

      Attachments

        Issue Links

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

          Activity

            People

              alexandru.croitor Alexandru Croitor
              nagrohn Nahomi Gröhn (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: