# Adding openssl.xcframework to XCode using CMake

**URL:** https://discourse.cmake.org/t/adding-openssl-xcframework-to-xcode-using-cmake/11035
**Category:** Code
**Tags:** os:macos
**Created:** [June 17, 2024, 5:14pm UTC](https://discourse.cmake.org/t/adding-openssl-xcframework-to-xcode-using-cmake/11035 "2024-06-17T17:14:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![puneet\_gurtoo](https://discourse.cmake.org/user_avatar/discourse.cmake.org/puneet_gurtoo/32/4676_2.png) [@puneet\_gurtoo](https://discourse.cmake.org/u/puneet_gurtoo)
#### Post date: [June 17, 2024, 5:14pm UTC](https://discourse.cmake.org/t/adding-openssl-xcframework-to-xcode-using-cmake/11035/1 "2024-06-17T17:14:37Z")

</div>

I have created a static xcframework for openssl to use in one of my iOS projects. Have attached the screenshot with structure of xcframework. Can we link this to XCode project using CMake ?  
Is this supported by CMake now ?

 ![Screenshot 2024-06-17 at 10.44.14 PM](https://discourse.cmake.org/uploads/default/original/2X/f/f42a25d4258658c7796c1b74f49338f2f21f0d63.jpeg)

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [March 13, 2025, 10:11pm UTC](https://discourse.cmake.org/t/adding-openssl-xcframework-to-xcode-using-cmake/11035/2 "2025-03-13T22:11:02Z")

</div>

I suspect so…but I’m not sure how the imported target should be constructed. Maybe the path to the `.xcframework` is the `LOCATION`?

@kyle.edwards or @brad.king ?
