Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28228

Add support for xcframeworks

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 8.0.1
    • None
    • iOS/tvOS/watchOS, macOS

      An increasing number of iOS/macOS frameworks is shipped in the ".xcframework" structure/format.

      In qmake we can easily use xcframeworks as follows:

      embedFramework.files = /path/Libraries/xcframeworks/Purchases.xcframework
      embedFramework.path = Frameworks
      QMAKE_BUNDLE_DATA += embedFramework
      LIBS += -framework Purchases
      QMAKE_LFLAGS += -F/path/Libraries/xcframeworks/Purchases.xcframework
      

      In cmake there is similar functionality but this works only with normal ".frameworks" but not with xcframeworks:

      set_property(TARGET MyAppProject PROPERTY
          XCODE_EMBED_FRAMEWORKS /path/Libraries/xcframeworks/Purchases.xcframework
      )
      target_link_libraries(MyAppProject PUBLIC
          "-framework Purchases"
      )
      

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

            cadam Cristian Adam
            Harald Meyer Harald Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes