# trouble with PUBLIC\_HEADER

**URL:** https://discourse.cmake.org/t/trouble-with-public-header/11665
**Category:** Usage
**Created:** [September 12, 2024, 10:39pm UTC](https://discourse.cmake.org/t/trouble-with-public-header/11665 "2024-09-12T22:39:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wtholliday](https://discourse.cmake.org/user_avatar/discourse.cmake.org/wtholliday/32/4931_2.png) [@wtholliday](https://discourse.cmake.org/u/wtholliday)
#### Post date: [September 12, 2024, 10:39pm UTC](https://discourse.cmake.org/t/trouble-with-public-header/11665/1 "2024-09-12T22:39:08Z")

</div>

I’m trying to build an xcframework for iOS and macOS for [oneTBB](https://github.com/oneapi-src/oneTBB). I’m having trouble getting the generated frameworks to have headers.

> <https://github.com/oneapi-src/oneTBB/issues/1512>
>
> The frameworks generated by TBB\_BUILD\_APPLE\_FRAMEWORKS have no headers. Is there… a way to enable copying them? Does something need to be updated in CMakeLists.txt?
> 
> \<img width="176" alt="image" src="https://github.com/user-attachments/assets/f0eccc58-5a42-4d86-a246-4485d9da9abf"\>
> 
> thanks!

I tried adding `PUBLIC_HEADER "../include/oneapi/tbb.h"` but CMake doesn’t stick the file in the framework, and also doesn’t even print a warning.

Reproducing on macOS with:

```auto
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DTBB_BUILD_APPLE_FRAMEWORKS=On
make -j 12
find ./appleclang_15.0_cxx11_64_release/tbb.framework -name "*.h"

```
