Details
-
Suggestion
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 8.0.1
-
None
Description
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"
)
Attachments
Issue Links
- relates to
-
QTBUG-101277 Support consuming and generating XCFramework with CMake
- Open