Lots of issues building a Cardboard VR app in both Unity 5.6 and Unity 2017.
First the Apple Mach-O Linker issue, then a GvrAudio error, then some Allocate() error.
I finally gave up, deleted the GoogleVR folder (tried sdk 1.60 and 1.70), built the app to make sure it wasn’t a generic build issue, and it built with the split screen working! (no Google VR but VR selected in Unity).
So, total confusion now… the tutorials online (including by Unity) are for other devices or using earlier versions, prior to the native VR in Unity.
What’s the deal? Do we need the Google VR sdk, which I can’t get to work during the build, or as long as VR is selected in Unity with Cardboard, can the reticle etc. be added natively?
I can’t help with anything Google VR SDK related, but what build issues (especially linker) are you seeing? Did you make sure to open the xcworkspace and not the xcproject in Xcode when building?
Finally got a build to run (sdk 1.60 import), however Xcode still shows multiple warnings:
ld: warning: arm64 function not 4-byte aligned
ld: warning: arm64 function not 4-byte aligned: ltmp0 from …(unwind_test_arm64.o)
ld: warning: object file (…/Build/Products/Release-iphoneos/libPods-Unity-iPhone.a(Pods-Unity-iPhone-dummy.o)) was built for newer iOS version (9.2) than being linked (7.0)
I think the target iOS version was set too low, maybe was a problem? But the 2 errors above remain.