Search Unity

Project upgraded from Google Cardboard to Google VR runs in Unity but fails when building for iOS

Discussion in 'AR/VR (XR) Discussion' started by Claus79, Mar 31, 2017.

  1. Claus79

    Claus79

    Joined:
    Mar 9, 2015
    Posts:
    6
    I started my project using Google Cardboard then I imported the new GoogleVR package to replace it. When I hit play in Unity my project works fine but when I try to build it for iOS I get errors on both the Xcode project and the Unity Cloud build project. I'm using Unity v5.5.0f3 on Mac

    On Xcode:

    1. ld: warning: arm64 function not 4-byte aligned: ltmp0 from /Users/gamedev/Desktop/VR1-iOS/Libraries/libiPhone-lib.a(unwind_test_arm64.o)
    2. ld: warning: arm64 function not 4-byte aligned: _unwind_tester from /Users/gamedev/Desktop/VR1-iOS/Libraries/libiPhone-lib.a(unwind_test_arm64.o)
    3. Undefined symbols for architecture arm64:
    4. "_endSettingsDialog", referenced from:
    5. -[DismissDialogViewController viewDidAppear:] in libvrunity.a(unity.o)
    6. ld: symbol(s) not found for architecture arm64
    7. clang: error: linker command failed with exit code 1 (use -v to see invocation)
    on Unity cloud build:

    1. 7: ERROR: While executing gem ... (Gem::UnsatisfiableDependencyError)
    2. 8: Unable to resolve dependency: 'bvr (= 1.5.22)' requires 'mercurial-ruby (= 0.7.12)'
    3. 9: Before retry #1: sleeping 5.0 seconds
    4. 10: ERROR: While executing gem ... (Gem::UnsatisfiableDependencyError)
    5. 11: Unable to resolve dependency: 'bvr (= 1.5.22)' requires 'mercurial-ruby (= 0.7.12)'
    6. 12: Before retry #2: sleeping 10.0 seconds
    7. [Unity] -----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/Assembly-CSharp.dll
    8. 14: [Unity] Compilation failed: 24 error(s), 0 warnings
    9. 15: [Unity] error CS2001: Source file `Assets/Cardboard/DemoScene/FPS.cs' could not be found
    10. 16: [Unity] error CS2001: Source file `Assets/Cardboard/DemoScene/Teleport.cs' could not be found
    11. 17: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/Audio/CardboardAudio.cs' could not be found
    12. 18: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/Audio/CardboardAudioListener.cs' could not be found
    13. 19: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/Audio/CardboardAudioRoom.cs' could not be found
    14. 20: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/Audio/CardboardAudioSource.cs' could not be found
    15. 21: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/Cardboard.cs' could not be found
    16. 22: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/CardboardEye.cs' could not be found
    17. 23: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/CardboardHead.cs' could not be found
    18. 24: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/CardboardPostRender.cs' could not be found
    19. 25: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/CardboardPreRender.cs' could not be found
    20. 26: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/CardboardProfile.cs' could not be found
    21. 27: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/GazeInputModule.cs' could not be found
    22. 28: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/Pose3D.cs' could not be found
    23. 29: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/StereoController.cs' could not be found
    24. 30: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/StereoRenderEffect.cs' could not be found
    25. 31: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/UI/CardboardReticle.cs' could not be found
    26. 32: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/UI/ICardboardPointer.cs' could not be found
    27. 33: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/VRDevices/BaseAndroidDevice.cs' could not be found
    28. 34: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/VRDevices/BaseCardboardDevice.cs' could not be found
    29. 35: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/VRDevices/BaseVRDevice.cs' could not be found
    30. 36: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/VRDevices/CardboardAndroidDevice.cs' could not be found
    31. 37: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/VRDevices/CardboardiOSDevice.cs' could not be found
    32. 38: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/VRDevices/UnityEditorDevice.cs' could not be found
    33. 39: [Unity] error CS2001: Source file `Assets/Cardboard/DemoScene/FPS.cs' could not be found
    34. 40: [Unity] error CS2001: Source file `Assets/Cardboard/DemoScene/Teleport.cs' could not be found
    35. 41: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/Audio/CardboardAudio.cs' could not be found
    36. 42: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/Audio/CardboardAudioListener.cs' could not be found
    37. 43: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/Audio/CardboardAudioRoom.cs' could not be found
    38. 44: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/Audio/CardboardAudioSource.cs' could not be found
    39. 45: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/Cardboard.cs' could not be found
    40. 46: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/CardboardEye.cs' could not be found
    41. 47: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/CardboardHead.cs' could not be found
    42. 48: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/CardboardPostRender.cs' could not be found
    43. 49: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/CardboardPreRender.cs' could not be found
    44. 50: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/CardboardProfile.cs' could not be found
    45. 51: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/GazeInputModule.cs' could not be found
    46. 52: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/Pose3D.cs' could not be found
    47. 53: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/StereoController.cs' could not be found
    48. 54: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/StereoRenderEffect.cs' could not be found
    49. 55: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/UI/CardboardReticle.cs' could not be found
    50. 56: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/UI/ICardboardPointer.cs' could not be found
    51. 57: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/VRDevices/BaseAndroidDevice.cs' could not be found
    52. 58: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/VRDevices/BaseCardboardDevice.cs' could not be found
    53. 59: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/VRDevices/BaseVRDevice.cs' could not be found
    54. 60: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/VRDevices/CardboardAndroidDevice.cs' could not be found
    55. 61: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/VRDevices/CardboardiOSDevice.cs' could not be found
    56. 62: [Unity] error CS2001: Source file `Assets/Cardboard/Scripts/VRDevices/UnityEditorDevice.cs' could not be found
    57. 63: [Unity] Compilation failed: 24 error(s), 0 warnings
    58. [Unity] -----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/Assembly-CSharp.dll
    59. 74: [Unity] Compilation failed: 3 error(s), 0 warnings
    60. 75: [Unity] Assets/GoogleVR/Legacy/Scripts/GazeInputModule.cs(24,32): error CS0246: The type or namespace name `GvrPointerInputModule' could not be found. Are you missing an assembly reference?
    61. 76: [Unity] Assets/GoogleVR/Legacy/Scripts/UI/GvrReticle.cs(16,27): error CS0246: The type or namespace name `GvrReticlePointer' could not be found. Are you missing an assembly reference?
    62. 77: [Unity] Assets/GoogleVR/Scripts/Audio/GvrAudio.cs(127,53): error CS0246: The type or namespace name `GvrAudioSoundfield' could not be found. Are you missing an assembly reference?
    63. 78: [Unity] Assets/GoogleVR/Legacy/Scripts/GazeInputModule.cs(24,32): error CS0246: The type or namespace name `GvrPointerInputModule' could not be found. Are you missing an assembly reference?
    64. 79: [Unity] Assets/GoogleVR/Legacy/Scripts/UI/GvrReticle.cs(16,27): error CS0246: The type or namespace name `GvrReticlePointer' could not be found. Are you missing an assembly reference?
    65. 80: [Unity] Assets/GoogleVR/Scripts/Audio/GvrAudio.cs(127,53): error CS0246: The type or namespace name `GvrAudioSoundfield' could not be found. Are you missing an assembly reference?
    66. [Unity] -----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/Assembly-CSharp.dll
    67. 91: [Unity] Compilation failed: 3 error(s), 0 warnings
    68. 92: [Unity] Assets/GoogleVR/Legacy/Scripts/GazeInputModule.cs(24,32): error CS0246: The type or namespace name `GvrPointerInputModule' could not be found. Are you missing an assembly reference?
    69. 93: [Unity] Assets/GoogleVR/Legacy/Scripts/UI/GvrReticle.cs(16,27): error CS0246: The type or namespace name `GvrReticlePointer' could not be found. Are you missing an assembly reference?
    70. 94: [Unity] Assets/GoogleVR/Scripts/Audio/GvrAudio.cs(127,53): error CS0246: The type or namespace name `GvrAudioSoundfield' could not be found. Are you missing an assembly reference?
    71. 95: [Unity] Assets/GoogleVR/Legacy/Scripts/GazeInputModule.cs(24,32): error CS0246: The type or namespace name `GvrPointerInputModule' could not be found. Are you missing an assembly reference?
    72. 96: [Unity] Assets/GoogleVR/Legacy/Scripts/UI/GvrReticle.cs(16,27): error CS0246: The type or namespace name `GvrReticlePointer' could not be found. Are you missing an assembly reference?
    73. 97: [Unity] Assets/GoogleVR/Scripts/Audio/GvrAudio.cs(127,53): error CS0246: The type or namespace name `GvrAudioSoundfield' could not be found. Are you missing an assembly reference?
    I've noticed that most of the answers to this kind of problem refer to SourceTree (This is what I'm using) ignoring .dll file when pushing the source code. At the moment I don't have any .gitignore file in my working directory.
     

    Attached Files:

  2. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958
    Is 5.5.0f3 really the version you are on? Can you go to Unity->About and make sure that is the version you are on?
     
  3. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958
    It does look like you are missing a lot of the Google SDK stuff from your project, though.
     
  4. Claus79

    Claus79

    Joined:
    Mar 9, 2015
    Posts:
    6
    I have upgraded to Unity 5.6 and I got only two errors:

    Code (CSharp):
    1. "_endSettingsDialog", referenced from:
    2. -[DismissDialogViewController viewDidAppear:] in libvrunity.a(unity.o)
    3.  
    4. Undefined symbols for architecture arm64:
    5.   "_isOpenGLAPI", referenced from:
    6.       _iOSDevice_isOpenGLAPI_m3529398287 in Bulk_Assembly-CSharp_0.o
    7.      (maybe you meant: _iOSDevice_isOpenGLAPI_m3529398287)
    8. ld: symbol(s) not found for architecture arm64
    when checking between the libraries linked (in Build Settings) I noticed I had both libvrunity.a and libgvrunity.a so I removed the first one and the error is disappeared, but I still have the second about OpenGL. The strange thing is that the project work flawlessly in unity.
     
  5. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958
    What happens if you switch between the libraries you removed so that you are using libvrunity and remove libgvrunity?