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 have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unity 5.6 b9, iOS Cardboard native integration missing GVROverlayView.h file

Discussion in 'AR/VR (XR) Discussion' started by gerardreches, Mar 1, 2017.

  1. gerardreches

    gerardreches

    Joined:
    Feb 2, 2017
    Posts:
    8
    I tried to compile a clean project for iOS in the latest Unity 5.6 beta (b9) with native Cardboard integration, but the build fails with the next error:

    'GVROverlayView.h' file not found
    There is an #import of this file in CardboardAppController.mm, but the file GVROverlayView.h doesn't exist in the project.

    There is something that I can do to solve this? It seems to me a too obvious mistake to be a bug.
     
  2. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958
    Please file a bug report with a simple repro project and report the case id here.
     
  3. gerardreches

    gerardreches

    Joined:
    Feb 2, 2017
    Posts:
    8
    Case id: 886362
     
  4. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958
    Thank you.
     
  5. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958
    In your XCode project folder, there should be a Pods folder. Underneath that should be a GVRSDK/Base/Sources folder and in there should be the header you are missing. Can you check to make sure that you do have that file in that location?
     
  6. gerardreches

    gerardreches

    Joined:
    Feb 2, 2017
    Posts:
    8
    Something strange here:

    Building the Unity project from my mac results in a Xcode project without the GVRSDK directory inside the Pods folder. But from my Windows machine the resulting Xcode project has the GVRSDK directory.

    Both machines are using Unity 5.6.0b9.
     
  7. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958
    Dumb question, but you did enable VR mode and add the Cardboard VR device on the Mac?
     
  8. AteoMarcel

    AteoMarcel

    Joined:
    Jan 5, 2017
    Posts:
    17
    I get the exact same error. I have VR mode enabled. And I only get this error since I integrated google Firebase into the project. (And had to upgrade the cocoa pod installation)
     
  9. Narlix

    Narlix

    Joined:
    Jul 3, 2009
    Posts:
    111
    was a solution found? I got the same issue 5.6.0f3

    I noticed that the plugin directory does not contain the required header files. so something tells me that it is the unitypackage of googlevr that is missing something. but its an old issue, and probably has more than 3 users :p
     
  10. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958
    Can you try Build & Run and select "Replace" to recreate your xcode workspace/project?
     
  11. Narlix

    Narlix

    Joined:
    Jul 3, 2009
    Posts:
    111
    I am on windows so, build and run is not available for the iOS platform. i am using the iOS builder for windows (but that would never work with missing header files).
    and i always delete the bin folder before rebuilding. seems that Ctrl+B says its building but doesnt.

    Could it be with the iOS build support module on the windows platform?
     
  12. Narlix

    Narlix

    Joined:
    Jul 3, 2009
    Posts:
    111
    ps, I upgraded from 5.6.0f3 to 2017.1.0b6 (May 16) and the issue is the same.
     
  13. jiman14

    jiman14

    Joined:
    Oct 2, 2016
    Posts:
    1
    Hello, the problem still there, I use Mac for compile, last version of Unity 2017, Firebase and GVR.
    I test a project with GVR (and without Firebase) and it's working fine, the XCode project it's correctly generated. But when I add Firebase to the Unity project, the build & run fails at the end of the process (the buid without run doesn't work). And when I open the project in Unity get the GVROverlayView.h file not found error.

    Do you resolved this error?