# Cmake with JUCE 7 on MacOS 15 - can't build juceaide

**URL:** <https://forum.juce.com/t/cmake-with-juce-7-on-macos-15-cant-build-juceaide/68538>\
**Category:** General JUCE discussion\
**Created:** [March 18, 2026, 8:00pm UTC](https://forum.juce.com/t/cmake-with-juce-7-on-macos-15-cant-build-juceaide/68538 "2026-03-18T20:00:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![leehu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/leehu/32/3280_2.png) [@leehu](https://forum.juce.com/u/leehu)\
**Post date:** [March 18, 2026, 8:00pm UTC](https://forum.juce.com/t/cmake-with-juce-7-on-macos-15-cant-build-juceaide/68538/1 "2026-03-18T20:00:19Z")

</div>

Hi, wonder if anyone has a solution to this.

Trying to create a new CMake project with JUCE 7 on MacOS 15.

When I run:

```auto
cmake -B cmake-build-install -DCMAKE_INSTALL_PREFIX=/Users/lee/dev/JUCE

```

I get an error:

```auto
error: 'CGWindowListCreateImage' is unavailable: obsoleted in macOS 15.0 -
  Please use ScreenCaptureKit instead.

```

This is called from when trying to build juceaide.

```auto
Image createNSWindowSnapshot (NSWindow* nsWindow)

```

Does anyone know if there is an easy solution to this without having to move to JUCE 8?

Thanks

---

<div class="post-metadata">

**Author:** ![kerfuffle](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/kerfuffle/32/11805_2.png) [@kerfuffle](https://forum.juce.com/u/kerfuffle)\
**Post date:** [March 18, 2026, 8:13pm UTC](https://forum.juce.com/t/cmake-with-juce-7-on-macos-15-cant-build-juceaide/68538/2 "2026-03-18T20:13:06Z")

</div>

The solutions are:

- use an older version of macOS
- use Projucer instead of CMake
- comment out the functions with the issue in the JUCE code
- update to JUCE 8

---

<div class="post-metadata">

**Author:** ![leehu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/leehu/32/3280_2.png) [@leehu](https://forum.juce.com/u/leehu)\
**Post date:** [March 18, 2026, 8:53pm UTC](https://forum.juce.com/t/cmake-with-juce-7-on-macos-15-cant-build-juceaide/68538/3 "2026-03-18T20:53:05Z")

</div>

Thx for the reply. Never actually thought of just commenting out the code - will give that a go!

---

<div class="post-metadata">

**Author:** ![leehu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/leehu/32/3280_2.png) [@leehu](https://forum.juce.com/u/leehu)\
**Post date:** [March 18, 2026, 9:05pm UTC](https://forum.juce.com/t/cmake-with-juce-7-on-macos-15-cant-build-juceaide/68538/4 "2026-03-18T21:05:39Z")

</div>

worked. thx!

---

<div class="post-metadata">

**Author:** ![anthony-nicholls](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/anthony-nicholls/32/1246_2.png) [@anthony-nicholls](https://forum.juce.com/u/anthony-nicholls)\
**Post date:** [March 18, 2026, 9:08pm UTC](https://forum.juce.com/t/cmake-with-juce-7-on-macos-15-cant-build-juceaide/68538/5 "2026-03-18T21:08:06Z")

</div>

If it’s just that you don’t want to move your whole codebase to JUCE 8, but you have a JUCE 8 licence, you could probably cherry pick the fix.

> <https://github.com/juce-framework/JUCE/commit/10cf5a98a2dcaca225d8c15e3aa3798e00160749>
>
> \- Required when the deployment target is macOS 15+
> \- As the ScreenCaptureKit fra…mework isn't available on all supported versions
> of Xcode it's dynamically loaded
