Closed ElizaSapir closed 7 years ago
👍
+1
I have this successfully compiling in a Swift project.
It looks like you're not linking the library binaries. Check your framework search paths
in Build Settings and make sure they include GVRKit/frameworks
.
Also check your library search paths
:
If you installed via cocoapods, this should be handled automatically, but you might be overriding those paths and not specifying inherited
in the overrides.
Hey @jamezilla,
Thanks for your quick response.
I was able to run swift project only when I attached testVR-Bridging-Header.h
, couldn't just
import GVRKit
BUT the issue on my side is not with a simple app, I have my own SDK and I am trying to add GVRKit
as dependency on my podspec with no success.
Already have same logic for google "IMASDK", the difference is that IMA SDK is dynamic and importable with no problem.
BR, Eliza
Cocoapod dependencies are not aligned correctly. We had to release GVRKit in binary format, initially it was a source only pod. The reason was that GVRKit has a dependency on GVRSDK, which is a static binary library. So GVRKit had to be a static binary framework.
Not sure if that helps, I would also encourage you to look at the source code of GVRKit and see if you can use that: https://github.com/googlevr/gvr-ios-sdk/tree/master/Samples/GVRKit
@sanjayc77 can I get the full path to GVRKit including GVRSDK and all other configurations/ libs needed? I will try to add it statically.
Thanks!
Not sure what you mean full path to GVRKit and GVRSDK. Do you mean path to libGVRXXX.a in their Cocoapod package zip?
In the pod spec, you can find a link (GVRSDK https://github.com/CocoaPods/Specs/blob/master/Specs/3/7/9/GVRSDK/1.10.0/GVRSDK.podspec.json#L90) to the .tar.gz. Unzip and look under Libraries folder.
@sanjayc77 nothing helped, please reopen this issue if possible since for me it won't be closed until you have swift support for internal SDK's.
Thanks!
Hey,
Since your SDK is not modular it can't be used and imported on Swift SDKs. When trying to add GVRKit as a dependency on my pod spec got below issues:
Do you have any solution for me?
Thanks,
Eliza