QT_NO_XCODE_EMBED_FRAMEWORK_IN_CONSUMERS
禁止将共享库嵌入到使用该库的应用程序包中。
该属性自 Qt 6.12 起引入。
注意: 仅当目标平台为 iOS 时,才会使用此 属性。
这是一个布尔属性,用于阻止共享库被自动嵌入到应用程序包中,具体说明请参见qt_finalize_target()。
与在应用程序目标上设置并完全禁用嵌入的QT_NO_XCODE_EMBED_FRAMEWORKS 不同,此属性应在不应被嵌入的库目标上进行设置。
任何链接到该库的应用程序,都会将其排除在其程序包之外:
set_target_properties(mylib PROPERTIES
QT_NO_XCODE_EMBED_FRAMEWORK_IN_CONSUMERS ON
)© 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.