In iOS, you need to specify why you need access to the camera. The way to do this is to add an entry to the Info.plist file in the root folder of the iOS project. The Info.plist file is an Extensible Markup Language (XML) file that you can edit in any text editor. A simpler way to do this, however, is by using the Generic PList Editor provided by Visual Studio.
Add the required Camera Usage Description using the Generic PList Editor, as follows:
- Locate the WhackABox.iOS project.
- Right-click on Info.plist and click Open With..., as shown in the following screenshot:
- Select Generic PList Editor and click OK, as shown in the following screenshot:
- Locate the plus (+) icon at the bottom of the property list.
- Click the plus (+) icon to add a new key. Make sure that the key is in the root of the document and not under another property, as shown in the following screenshot:
The Generic PList Editor helps you to find the right property...