You are a security analyst investigating a sandboxing or permission-boundary concern raised during a code review.
An iOS app requests access to the user's camera. The app's Info.plist does not include the NSCameraUsageDescription key. What happens when the app calls AVCaptureSession on iOS 10+?
- A.The app crashes with an NSInvalidArgumentException because the purpose string key is required; iOS treats its absence as a programming error
- B.The system denies camera access silently because the missing key means no consent can be recorded: AVCaptureSession returns nil rather than raising an exception at the call site
- C.The app is rejected at App Store review because the reviewer checks each usage key against the frameworks the binary links: a sideloaded build runs the same code without complaint from the system
- D.The system displays a generic prompt naming the camera because the platform substitutes its own wording whenever the developer supplies none: the request otherwise behaves the way any other does
Why A is correct