Reputation: 71
I'm trying to play around with the sample iOS app on the Google VR SDK but I'm running into problems after cloning and installing. I've added and installed CocoaPods.
The error I receive after running the Treasurehunt.xcworkspace file is:
Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_GVRAudioEngine", referenced from: objc-class-ref in TreasureHuntRenderer.o "_OBJC_CLASS_$_GVRCardboardView", referenced from: objc-class-ref in TreasureHuntViewController.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
I predicted that it would be the .m files not being compiled properly, but the TreasureHunt .m files seem to all be there. Can anyone tell me what I'm missing?
Thanks in advance.
Upvotes: 1
Views: 527
Reputation: 564
the problem can be probably enabled bitcode, I had same issues when I try to run on physical device - try in Project preferencies under Build Settings search for Bitcode and set value to NO.
this helps if GVRSDK is working on simulator and not on physical device.
Upvotes: 0
Reputation: 11
It looks like Google inconveniently changed the name of the pod from "GVRSDK" to "CardboardSDK". So try adding the line pod 'CardboardSDK'
to your Podfile. Then run pod update
while you're in your project folder in the terminal. In each of your TreasureHunt.m files, replace every instance of "GVR" with "GCS". This should direct it to the CardboardSDK instead.
Upvotes: 1