# Select only Iphone as Targeted devices

**URL:** <https://forum.ionicframework.com/t/select-only-iphone-as-targeted-devices/245690>\
**Category:** Appflow\
**Created:** [December 18, 2024, 2:25pm UTC](https://forum.ionicframework.com/t/select-only-iphone-as-targeted-devices/245690 "2024-12-18T14:25:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maximeoffshift](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@maximeoffshift](https://forum.ionicframework.com/u/maximeoffshift)\
**Post date:** [December 18, 2024, 2:25pm UTC](https://forum.ionicframework.com/t/select-only-iphone-as-targeted-devices/245690/1 "2024-12-18T14:25:28Z")

</div>

Hello,

I have tried to select only iphone by adding this in Info.plist

```auto
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>

```

But I get this error

```auto

 User supplied UIDeviceFamily key in the Info.plist will be overwritten. Please use the build setting TARGETED_DEVICE_FAMILY and remove UIDeviceFamily from your Info.plist. (in target 'App' from project 'App')

```

I tried to add TARGETED\_DEVICE\_FAMILY as an env variable inside AppFlow dashboard but still the same message.

No luck.

How can I achieve this ?

Thank you.

---

<div class="post-metadata">

**Author:** ![maximeoffshift](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@maximeoffshift](https://forum.ionicframework.com/u/maximeoffshift)\
**Post date:** [December 19, 2024, 3:27pm UTC](https://forum.ionicframework.com/t/select-only-iphone-as-targeted-devices/245690/2 "2024-12-19T15:27:25Z")

</div>

This forum seems dead as I have 0 view after more than a day.

The solution was in the file “project.pbxproj”.

There is two times the field “TARGETED\_DEVICE\_FAMILY”, which needs to be set to 1.
