# How to exclude Mac or Apple Vision from destinations of an iOS build?

**URL:** https://discourse.cmake.org/t/how-to-exclude-mac-or-apple-vision-from-destinations-of-an-ios-build/13978
**Category:** Code
**Tags:** gen:xcode, os:ios
**Created:** [April 24, 2025, 12:30pm UTC](https://discourse.cmake.org/t/how-to-exclude-mac-or-apple-vision-from-destinations-of-an-ios-build/13978 "2025-04-24T12:30:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![paul.masristone](https://discourse.cmake.org/user_avatar/discourse.cmake.org/paul.masristone/32/3134_2.png) [@paul.masristone](https://discourse.cmake.org/u/paul.masristone)
#### Post date: [April 24, 2025, 12:30pm UTC](https://discourse.cmake.org/t/how-to-exclude-mac-or-apple-vision-from-destinations-of-an-ios-build/13978/1 "2025-04-24T12:30:07Z")

</div>

In `set_target_properties` I can choose between iPhone and iPad as destinations for my iOS app using `XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY`.

However Xcode also shows destinations **Mac (Designed for iPad)** and **Apple Vision (Designed for iPad)**. How can I selectively exclude these? eg. I want to keep Apple Vision and exclude Mac.

---

<div class="post-metadata">

### Author: ![Stv1](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@Stv1](https://discourse.cmake.org/u/Stv1)
#### Post date: [May 17, 2025, 8:48am UTC](https://discourse.cmake.org/t/how-to-exclude-mac-or-apple-vision-from-destinations-of-an-ios-build/13978/2 "2025-05-17T08:48:58Z")

</div>

Hi,  
I have a similar question, for my part I want to remove both **Mac (Designed for iPad)** and **Apple Vision (Designed for iPad**. Did you find a solution?  
Thanks.

---

<div class="post-metadata">

### Author: ![paul.masristone](https://discourse.cmake.org/user_avatar/discourse.cmake.org/paul.masristone/32/3134_2.png) [@paul.masristone](https://discourse.cmake.org/u/paul.masristone)
#### Post date: [May 17, 2025, 9:53am UTC](https://discourse.cmake.org/t/how-to-exclude-mac-or-apple-vision-from-destinations-of-an-ios-build/13978/3 "2025-05-17T09:53:46Z")

</div>

No solution yet. For what it’s worth ChatGPT thinks there’s no way of doing this, except manually in Xcode.

---

<div class="post-metadata">

### Author: ![Stv1](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@Stv1](https://discourse.cmake.org/u/Stv1)
#### Post date: [May 20, 2025, 9:32am UTC](https://discourse.cmake.org/t/how-to-exclude-mac-or-apple-vision-from-destinations-of-an-ios-build/13978/4 "2025-05-20T09:32:09Z")

</div>

OK thanks, that’s what I expected. Maybe in a future update of Xcode. To be continued!
