Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

360 Video Sample Project - Xcode Build Error

Discussion in 'AR/VR (XR) Discussion' started by KyleFormella, May 10, 2019.

  1. KyleFormella

    KyleFormella

    Joined:
    Jul 19, 2018
    Posts:
    7
    I'm attempting to tinker with Unity's "360 Video Sample Project" which I'm running in Unity 2018.3.9f1.

    After compiling for iOS and attempting to build to an iPhone on 12.2 using Xcode10.12.1, I get the following error. Any advice is appreciated!
    -----------------------------------------

    Undefined symbols for architecture arm64:

    "_gvr_set_default_viewer_profile", referenced from:
    _GvrCardboardHelpers_SetViewerProfile_mDB0C699FDCB5A196CE00C8DF46BEF98FEBF5701B in Bulk_Assembly-CSharp_0.o
    _GvrCardboardHelpers_gvr_set_default_viewer_profile_m50574D203B7F33671D04CA06EE30C148648B0852 in Bulk_Assembly-CSharp_0.o

    (maybe you meant: _GvrCardboardHelpers_gvr_set_default_viewer_profile_m50574D203B7F33671D04CA06EE30C148648B0852)

    "_gvr_reset_tracking", referenced from:
    _GvrCardboardHelpers_Recenter_m7B37F6030ACB9A981A16AFD7F0DA2A896E2E4276 in Bulk_Assembly-CSharp_0.o
    _GvrCardboardHelpers_gvr_reset_tracking_m568D64D0ED14BBD9B7DA2D4F1165C73F30C2D518 in Bulk_Assembly-CSharp_0.o

    (maybe you meant: _GvrCardboardHelpers_gvr_reset_tracking_m568D64D0ED14BBD9B7DA2D4F1165C73F30C2D518)

    "_gvr_get_time_point_now", referenced from:
    _AndroidNativeKeyboardProvider_gvr_get_time_point_now_m06805997F8027305F0BD844EDD089F6EAC7536EB in Bulk_Assembly-CSharp_0.o
    _AndroidNativeKeyboardProvider_UpdateData_m5B14E49F782CD4AF662B91E28978A951B9C6CDC3 in Bulk_Assembly-CSharp_0.o

    (maybe you meant: _AndroidNativeKeyboardProvider_gvr_get_time_point_now_m06805997F8027305F0BD844EDD089F6EAC7536EB)

    ld: symbol(s) not found for architecture arm64

    clang: error: linker command failed with exit code 1 (use -v to see invocation)[ICODE]
    [/ICODE]
     
  2. KyleFormella

    KyleFormella

    Joined:
    Jul 19, 2018
    Posts:
    7
    Just in case someone else experiences the same, I realized the issue. I needed to enable "Virtual Reality Supported" under Project Settings > XR Settings. Then I chose the "Cardboard" SDK.
     
    rprrs and elhongo like this.
  3. rprrs

    rprrs

    Joined:
    Jan 16, 2015
    Posts:
    3
    Thank you! Audios, in my case i was getting the followings errors:

    Undefined symbol: _gvr_set_default_viewer_profile
    Undefined symbol: _gvr_get_time_point_now
    Undefined symbol: _gvr_reset_tracking

    i was using android target and i forgot configure again in the XR settings the "Virtual Reality Supported"
     
  4. makaka-org

    makaka-org

    Joined:
    Dec 1, 2013
    Posts:
    1,004
    When updating project from Unity 2018.3 to 2019 I have this problem.
    I've deleted previously builded ios project in target folder (and also in Xcode system folder: Macintosh HD⁩ ▸ ⁨Users⁩ ▸ ⁨{user} ▸ ⁨Library⁩ ▸ ⁨Developer⁩ > Xcode) and all works now.

    P.S. Also I builded it without paid Apple Dev Program (my article about it).
     
    chelder likes this.
  5. chelder

    chelder

    Joined:
    Apr 21, 2015
    Posts:
    14
    This was the solution for me :)
     
    makaka-org likes this.
  6. myasovik

    myasovik

    Joined:
    Feb 4, 2016
    Posts:
    15
    In my case removing flag "Virtual Reality Support" and then putting it back fixed the problem.
    I had it after updating to 2019