Sayali Shinde
Sayali Shinde

Reputation: 311

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

I am getting below error after pod update in Google VR Sdk

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)

Upvotes: 1

Views: 290

Answers (2)

Alexander Telegin
Alexander Telegin

Reputation: 704

The problem is that the GVR-iOS-SDK GitHub repo doesn't contain the libGVRSDK.a. You shouldn't use this repo - just use CocoaPods and it will work just fine!

Upvotes: 0

Sayali Shinde
Sayali Shinde

Reputation: 311

I was using Xcode 7.3, when I switched to Xcode 8 and above version, issue is resolved.

Upvotes: 0

Related Questions