For Xcode 16:
show the side Navigator and click on the Folder icon (Project Navigator)
Click on your project (the item at the top)
In side of the pane that opens, you'll see PROJECTS and TARGETS. Under TARGETS, click your app. (You might also see other targets like app tests listed here).
Click the Info tab and then find the Custom iOS Target Properties.
Either click the + button if you don't have any properties list or right click an existing property and choose to Add Row
The first property you want to add is a key called Privacy - Location When In Use Usage Description of type String and its value will be the phrase you want to show uses when they're requested to share their location.
The second key you might need to add depending if you're always using the location is Privacy - Location Always and When In Use Usage Description that you need to set if you always want to use location.
Alternatively, you can create a file in your project called info.plist and add the two key/value pairs to it.
Topic:
Privacy & Security
SubTopic:
General
Tags: