# Xcode Framework

**URL:** https://discourse.cmake.org/t/xcode-framework/13912
**Category:** Development
**Tags:** gen:xcode
**Created:** [April 10, 2025, 6:39pm UTC](https://discourse.cmake.org/t/xcode-framework/13912 "2025-04-10T18:39:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![OctoBHVR](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/o/dc4da7/32.png) [@OctoBHVR](https://discourse.cmake.org/u/OctoBHVR)
#### Post date: [April 10, 2025, 6:39pm UTC](https://discourse.cmake.org/t/xcode-framework/13912/1 "2025-04-10T18:39:38Z")

</div>

Would it be possible to add support for adding references to frameworks in the generated Xcode project? In the “General” → “Framework, Libraries, and Embedded content”. Especially I would like to be able to create a weak reference to a framework in case I am running my project on an Apple OS that does not have the framework available. Currently the only way to do this is to go in “Build Phases” → “Link Binary with Libraries” and set the framework as optional. It seems it cannot be done with CMake. Thanks.
