Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved VR app crashed on iOS 17.02 - attempted to access privacy-sensitive data without a usage description

Discussion in 'VR' started by rickygai, Oct 1, 2023.

  1. rickygai

    rickygai

    Joined:
    Mar 9, 2022
    Posts:
    103
    macOS Ventura 13.6
    Unity 2022.3.10f1
    Xcode 15
    iPhone13, iOS 17.02
    Android 13

    My VR iOS app crashed with message below on Xcode when clicked the upper right corner Settings icon, trying to scan 2D barcode to adjust the cardboard types of headset.

    upload_2023-10-1_18-10-7.png

    Xcode message when the VR app crashed upon Settings icon tapped:

    upload_2023-10-1_18-2-51.png

    However, it is running fine on Android 13.

    Please advise.
     
  2. rickygai

    rickygai

    Joined:
    Mar 9, 2022
    Posts:
    103
    Just found the answer under Xcode,

    upload_2023-10-1_18-48-9.png

    - Click on project name "Unity-iPhone"
    - Click "Info" tab
    - Click the up/down of the first Key "Bundle name" and select "+" to add a new key.
    - Click on the new key up/down to scroll down the list and select "Privacy - Camera Usage Description"
    - Key in $(PRODUCT_NAME) needs camera access to scan QR code.
    - DONE.