# ARKit iOS plist injection on build

**URL:** <https://forums.unrealengine.com/t/arkit-ios-plist-injection-on-build/438034>\
**Category:** XR Development\
**Tags:** ARKit, permission, unreal-engine, iOS, bug-report, question\
**Created:** [November 21, 2018, 9:10am UTC](https://forums.unrealengine.com/t/arkit-ios-plist-injection-on-build/438034 "2018-11-21T09:10:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blixa3000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Blixa3000](https://forums.unrealengine.com/u/Blixa3000)\
**Post date:** [November 21, 2018, 9:10am UTC](https://forums.unrealengine.com/t/arkit-ios-plist-injection-on-build/438034/1 "2018-11-21T09:10:45Z")

</div>

Hi everyone.

Our ARapp build in UE4 got rejected by the apple appstore for the following reason -

_"We noticed that your app requests the user’s consent to access their camera but does not clarify the use of this feature in the permission modal alert. "_

even though we are using the standard permission modal alert that states _“The camera is used for augmented reality”._

The problem arises once I am trying to change the default string for NSCameraUsageDescription by entering my on string in the additional plist data box in the settings. Apparently **UE4 injects its own plist on build** and overwrites whatever I input in the box to the default string again.

Scanning through the build log it clearly states -

_“AppleARKit adding arkit requirement and camera permission to plist …”_

I am not sure if this is intended behaviour or a bug but I would love to find out how I can change this particular string in any way. Where is this default string stored that UE4 is injecting or how can I overwrite it after the fact?

Thanks forgiving my problem a thought!

---

<div class="post-metadata">

**Author:** ![Blixa3000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Blixa3000](https://forums.unrealengine.com/u/Blixa3000)\
**Post date:** [November 21, 2018, 10:29am UTC](https://forums.unrealengine.com/t/arkit-ios-plist-injection-on-build/438034/2 "2018-11-21T10:29:09Z")

</div>

For anyone who has similar problems.

I “fixed” it now by unzipping the packaged ipa, changing the string manualy in the plist and Re-Signing the the app via terminal on macOS based on [these informations](https://dzone.com/articles/ios-code-signing-part-5-signing-ios-apps).

Still I think it is a bug that UE4 keeps overwriting my custom plist data on build and I would love to see that particular issue forwarded to the developers.

---

<div class="post-metadata">

**Author:** ![LeFxGuy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LeFxGuy](https://forums.unrealengine.com/u/LeFxGuy)\
**Post date:** [November 22, 2018, 7:04pm UTC](https://forums.unrealengine.com/t/arkit-ios-plist-injection-on-build/438034/3 "2018-11-22T19:04:04Z")

</div>

Did you submit a bug report via submission form?

---

<div class="post-metadata">

**Author:** ![Blixa3000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Blixa3000](https://forums.unrealengine.com/u/Blixa3000)\
**Post date:** [November 30, 2018, 11:32am UTC](https://forums.unrealengine.com/t/arkit-ios-plist-injection-on-build/438034/4 "2018-11-30T11:32:59Z")

</div>

not yet, but will do

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1af62794](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1af62794](https://forums.unrealengine.com/u/anonymous_user_1af62794)\
**Post date:** [February 14, 2019, 10:38am UTC](https://forums.unrealengine.com/t/arkit-ios-plist-injection-on-build/438034/5 "2019-02-14T10:38:00Z")

</div>

I found another way to change the string, but still it is a temporary solution:

edit  
\Program Files\Epic Games\UE\_4.21\Engine\Plugins\Runtime\AppleARKit\Source\AppleARKit\AppleARKit\_IOS\_UPL.xml  
or wherever the engine code is and change the NSCameraUsageDescription value in there:

In my case:

```
<addElements tag="dict" once="true">
            <key>NSCameraUsageDescription</key>
            <string>Permit Camera Usage? It is used to capture your facial expressions</string>
</addElements>

```

Make sure to change the value for each engine update 🙂

After that the ipa would be fine 🙂

I taught that an engine rebuild will be needed, but the ipa build reads this xml file at runtime!

---

<div class="post-metadata">

**Author:** ![Kakajs2001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kakajs2001](https://forums.unrealengine.com/u/Kakajs2001)\
**Post date:** [April 17, 2023, 7:19am UTC](https://forums.unrealengine.com/t/arkit-ios-plist-injection-on-build/438034/6 "2023-04-17T07:19:19Z")

</div>

Ola uma boa madrugada sou Kaká js, estou com uma plist activationInfoXML e não sei fazer ativação alguém poderia vira meu sócio, precisando pra fazer um lucro aqui, vocês que tem mais esperiencia se pode me passa o contato de vocês agradeço!

---

<div class="post-metadata">

**Author:** ![PRESSURE2000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PRESSURE2000](https://forums.unrealengine.com/u/PRESSURE2000)\
**Post date:** [December 25, 2023, 2:12pm UTC](https://forums.unrealengine.com/t/arkit-ios-plist-injection-on-build/438034/7 "2023-12-25T14:12:03Z")

</div>

its happening in unreal 5.3.2 source build

how do I fix?
