Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

AR App not asking for Camera Permission on iOS Device

Discussion in 'AR' started by hamishryan6, Jul 27, 2020.

  1. hamishryan6

    hamishryan6

    Joined:
    Jul 27, 2020
    Posts:
    4
    Hi All,

    I am only just beginning to use Unity and have been following some online tutorials. I have created my AR Session Origin and AR Session and exported my Unity Scene as a Xcode project. When I launch this project, I am greeted with the "Mady with Unity" screen and then stuck on the Skybox instead of my camera. I haven't been asked to allow Camera Permissions (which I assume is why my camera is not connected), and cannot enable it manually in my iPhone Settings. Any idea on why this may be happening? and how I can fix it?

    I am using Unity 2020.1.0f1 Personal and Xcode 11.6 using my iPhone 7 Plus running iOS 13.6.

    Thanks in advance!
     
  2. KyryloKuzyk

    KyryloKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    1,035
    Please ensure that ARKit XR Plugin is enabled in Project Settings -> XR Plug-in Management.
     
    iyohan, claraguoguo and hamishryan6 like this.
  3. hamishryan6

    hamishryan6

    Joined:
    Jul 27, 2020
    Posts:
    4
    Thanks! That worked
     
    Haizat1801 likes this.
  4. fluffyLLC

    fluffyLLC

    Joined:
    Oct 20, 2020
    Posts:
    1
    Hello! I am experiencing the same issue as hamishryan6 was. However, the AR kit plugin is checked, I am building using verified releases of the ARkit, ARFoundation, and XRPlugin Management packages, and as far as I can tell all of my player settings are correct. Is there something I am missing in Xcode? Any advice would be appreciated. I have tried different versions of unity, reinstalling the plugins, and starting a new project from scratch. I have been trying to solve this problem for three days with no success, and frankly I have no clue what I am doing wrong. At this point I am desperate for novel advice, or a more experienced perspective. (Unity personal 2020.2.1, Xcode 12.3, iPhone 11 Pro max, IOS 14.3)
     
    Last edited: Jan 22, 2021
    Hugo-ElectricMonkeys likes this.
  5. KyryloKuzyk

    KyryloKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    1,035
    Have you tried to run the samples repo? To identify why your project is not working, you can find what's different in your project compared to the samples.
     
  6. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,787
    Team would like you to put in a bug report for us, also including a repro project with the report.
     
  7. jandolina

    jandolina

    Joined:
    Sep 5, 2019
    Posts:
    4
    Are there any updates on this? I have AR Foundation, AR Subsystems, ARKit, XR Interaction Preview.7, XR Legacy Helpers and XR Plugin Management imported into my project. All builds fine in Unity, all builds fine in Xcode. The app runs but there seems to be no camera interaction and it does not ask for camera access on first run.
     
  8. neuroGear

    neuroGear

    Joined:
    Nov 25, 2012
    Posts:
    8
    Same issue here. Running on 2020.3.0f1 and with both verified packages of ARFoundation and latest ones.

    EDIT: Rebuilt project from scratch and it all works fine now. I might have missed something before... So just make sure you are adding correct components and everything is properly set in project settings
     
    Last edited: Mar 22, 2021
    KyryloKuzyk and xobobo like this.
  9. AdamBebko

    AdamBebko

    Joined:
    Apr 8, 2016
    Posts:
    159
    Same issue here
     
  10. anan7940

    anan7940

    Joined:
    Sep 9, 2021
    Posts:
    1
    I'M in the same issue unity version is 2021.1.15f
     
  11. EL-soNK

    EL-soNK

    Joined:
    Jul 13, 2015
    Posts:
    28
    To whom it may concern: I was in the same boat, black screen, phone device did not ask for cam permission... was using 2021.1 -- then downgraded project to 2020.3 (LTS), de-installed and then re-installed all packages (URP, AR) = now it works like a charm.