Fail to add NSCameraUsage Desciption

Hello everyone,I am a student who is working on my final project of my college.I do not get an official development account since I do not need to put my app on AppStore.

In my project,I need to use the camera of iOS device, and I know I need to add NSCameraUsageDesciption in Info.plist.However, as I add the description in my Info and build my project, it failed and says"Provisioning profile "iOS Team Provisioning Profile: <projectname>" doesn't include the NSCameraUsageDescription and NSPhotoLibraryUsageDescription entitlements." I also notice that in the Info.plist file, when I change the property type to entitlements,I just cannot find NSCameraUsageDescription when I add row. What's the problem?Is this because I am not an official developer?

Replies

When adding a description for camera usage in your Info.plist file, search for "Privacy - Camera Usage Description" instead of "NSCameraUsageDescription". This is the correct key to include the description needed for camera access in your iOS project.