# find\_library or add\_library does not work with xcframework for iOS/Mac

**URL:** https://discourse.cmake.org/t/find-library-or-add-library-does-not-work-with-xcframework-for-ios-mac/4065
**Category:** Code
**Tags:** os:macos, os:ios
**Created:** [September 10, 2021, 6:54pm UTC](https://discourse.cmake.org/t/find-library-or-add-library-does-not-work-with-xcframework-for-ios-mac/4065 "2021-09-10T18:54:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![skandpal](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/8e7dd6/32.png) [@skandpal](https://discourse.cmake.org/u/skandpal)
#### Post date: [September 10, 2021, 6:54pm UTC](https://discourse.cmake.org/t/find-library-or-add-library-does-not-work-with-xcframework-for-ios-mac/4065/1 "2021-09-10T18:54:10Z")

</div>

If we are building a framework containing an iOS and iOS simulator slice then we have to use xcframework (Xcode 13 only supports xcframeworks) but cmake does not look like support it. Is there a way to use xcframework in cmake.

---

<div class="post-metadata">

### Author: ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)
#### Post date: [September 11, 2021, 7:54am UTC](https://discourse.cmake.org/t/find-library-or-add-library-does-not-work-with-xcframework-for-ios-mac/4065/2 "2021-09-11T07:54:26Z")

</div>

Not currently, at least not with direct support from CMake. There’s some discussion for at least part of the picture in [issue 21752](https://gitlab.kitware.com/cmake/cmake/-/issues/21752).
