When you use xcode to package your ios app made with ue5, under what file do you add code when using xcode even though you made the game with ue5. I need to add a tracking permissions request on start up but I dont see anywhere for me to add this code in xcode. I tried adding a swift file to the project and I tried adding the code under the source file. Ultimately if you need to add say a permission request how would you do that for an ue5 project in xcode?
Not really sure if that will work, but as I didn’t find any options to set a value in the project settings you could try the following. Select your target within your ‘Games’ folder and edit the info.plist file by selecting ‘info’ on the right and adding a privacy key (see example for ‘Camera Usage’)
Ive tried adding all the privacy keys but the permissions still doesn’t pop up.
Im using the test flight app to test this and the pop up hasnt shown and the permissions cant be found in the app settings.
So far I did not find any useful information. If you get into the project settings and selecting ‘Xcode Projects’, it looks like the project is using custom plist.info files for mac and ios. I tried to request camera usage consent for a macos project as that is easier to test, but that didn’t work either. Will have a further look into that.
I think Ive figured out a solution. I realised that no matter what project I use to generate an xcode project, it uses the same info plist build settings as the last one. I just have to figure out how to wipe the build settings to default so maybe the tracking location plist value might go away. Just a thought. Do u have any info on how to do this. I already tried pressing the default button in xcode project settings in ue5.
Did you check that line in the project settings? That entry is just a test for my own project, but it has no effect.
So your app is currently asking for tracking permission and you would like to get rid of it? Then I would go through the project config files and look for additional plist files as well in order to check the for the related entry for tracking permission.
I just checked this by creating a new project from the AR template and looking for the camera usage description string in the Xcode workspace. It turned out that the description string is added by the ARKit plugin itself, and no matter what I change in the Info.Template.plist, it will always be overwrittten by the description string of the ARKit plugin.
Also any additional entry you add in the project settings on ‘Additional Plist Data’ will be added to the Info.Template.plist file. However, if I add the camera usage description there was no such request in the game, and my UE5.4 AR project is no longer working after the upgrade to Xcode 16.