Skip to content
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.

iOS build issues with Unity 5.6.2f1 and GVR 1.60 #632

Closed
tb9will opened this issue Jun 23, 2017 · 3 comments
Closed

iOS build issues with Unity 5.6.2f1 and GVR 1.60 #632

tb9will opened this issue Jun 23, 2017 · 3 comments

Comments

@tb9will
Copy link

tb9will commented Jun 23, 2017

Since updating to Unity 5.6 and GVR 1.60 I haven't been able to get a scene built and installed on an iOS device.
I will list all the steps i've taken below. If I am missing anything please let me know.

  • In Unity I have iOS as the selected platform.

  • Under Player Settings > Other Settings - Virtual Reality Supported is check and Cardboard is the selected Virtual Reality SDK.

  • From there I follow the instructions listed in the README here:

screen shot 2017-06-23 at 10 14 23 am

  • Open the Unity-iPhone.xcworkspace

  • After trying to build in xcode I get these errors:
    screen shot 2017-06-23 at 10 21 41 am

  • Go to Project Settings > Build Phases > [CP] Check Pods Manifest.lock. diff "${PODS_PODFILE_DIR_PATH}/Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/null My ${PODS_PROFILE_DIR_PATH} and ${PODS_ROOT} variables are not set correctly.

  • Change them to point to the correct places: diff "${SRCROOT}/Podfile.lock" "${SRCROOT}/Pods/Manifest.lock" > /dev/null

  • Attempt to build again and receive the 'GVROverlayView.h' file not found error.

  • Follow the steps found in the issue here: #504 (comment)

  • close the .xcodeproj and open the .xcworkspace

  • Attempt to build again and get 108 Apple Mach-O Linker (id) errors:
    screen shot 2017-06-23 at 10 43 03 am

I'm stuck here and now sure what else to do. I've tried completely uninstalling Unity and reinstalling.

Thanks for any help.

@justlim77
Copy link

justlim77 commented Jul 3, 2017

Hey tb9will,

I was having the exact same problem as you did - until I traced back my steps and realized I forgot to delete the Pod(s) folder that resided in the Unity-iPhone foldout within the Xcode project itself (not referring to the Pods folder in the Finder window). After confirming that the offending folder within the Xcode project is deleted (along with the Pod reference), repeat the steps again and you will find that it will build.

screenshot at jul 04 04-32-55

Also make sure you open the *.xcworkspace and not the *.xcodeproj file. I find that if there's anything to do with Cocoapods, then opening the *.xcworkspace is preferred.

@Yerchick
Copy link

Yerchick commented Jul 5, 2017

Also there is tiny possibility, that you could forgot to delete previous GVR SDK properly. I've had a lot of problems with that

@fredsa
Copy link
Member

fredsa commented Oct 24, 2017

We've updated the Get started with Google VR in Unity on iOS guide. The new guide includes a note about the importance of opening the generated *.xcworkspace file instead of the *.xcodeproj file.

Closing this issue as I believe the above problems are fixed by a combination of:

  • Updating to the latest Unity 5.6 or Unity 2017 release
  • Updating to the latest Google VR SDK for Unity
  • Opening the the generated *.xcworkspace Xcode workspace
  • Following the steps in the above mentioned getting started guide

@tb9will Please let us know (by filing a new issue) if you encounter any issues creating a working Xcode project using the latest Unity 5.6 or Unity 2017 and the latest Google VR SDK for Unity using the updated guide.

@fredsa fredsa closed this as completed Oct 24, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants