Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

ARKit iOS plist injection on build

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!

Product Version: UE 4.21
more ▼

asked Nov 21 '18 at 09:10 AM in Packaging & Deployment

avatar image

6 4 4

avatar image Blixa3000 Nov 21 '18 at 10:29 AM

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.

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.

avatar image LeFxGuy Nov 22 '18 at 07:04 PM

Did you submit a bug report via submission form?

avatar image Blixa3000 Nov 30 '18 at 11:32 AM

not yet, but will do

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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">
             <string>Permit Camera Usage? It is used to capture your facial expressions</string>

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!

more ▼

answered Feb 14 '19 at 10:38 AM

avatar image

16 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question