git克隆不编译(未定义符号_clock_gettime_nsec_np)GoogleVR SDK

git clone does not compile (undefined symbol _clock_gettime_nsec_np) Google VR SDK

我在 Google VR Sdk

中更新 pod 后出现以下错误

Undefined symbols for architecture x86_64:

"_clock_gettime_nsec_np", referenced from:

base::GetCurrentTimeNanos() in libGVRSDK.a(get_current_time.o)

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

我用的是Xcode 7.3,当我切换到Xcode 8及以上版本时,问题已解决。

问题是 GVR-iOS-SDK GitHub 存储库不包含 libGVRSDK.a。你不应该使用这个 repo - 只需使用 CocoaPods 就可以了!