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

[iOS] CMake translation handling fails

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS
    • 353716dfa (dev), b27c7440e (6.9)

    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

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

          Activity