QT_NO_XCODE_EMBED_FRAMEWORKS

使应用程序不参与其共享库依赖项的自动嵌入。

该属性于 Qt 6.12 版本中引入。

注意: 仅当目标平台为 iOS 时,才会使用此 属性。

这是一个布尔属性,用于禁用将共享库依赖项自动嵌入到应用程序包中的功能,具体说明参见qt_finalize_target()。

如果您希望自行部署 Qt 框架和其他共享库,请在应用程序目标上设置此属性:

set_target_properties(myapp PROPERTIES
    QT_NO_XCODE_EMBED_FRAMEWORKS ON
)

若要仅排除部分依赖项而非全部,请使用QT_NO_XCODE_EMBED_FRAMEWORK_IN_CONSUMERS。

另请参阅 qt_finalize_target()和QT_NO_XCODE_EMBED_FRAMEWORK_IN_CONSUMERS。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.