By Redon
on Wed, 03/11/2015 - 03:40
When I was using Xcode6.1.1 to compile the Vuforia4.0 sample project export from the Unity 4.6.3f1 on iOS platform, I got a linker error below: Undefined symbols for architecture armv7: "UnityKeyboard_GetText(std::string*)", referenced from: KeyboardOnScreen::getText() const in libiPhone-lib.a(iPhoneKeyboard.o) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
An examination of libiPhone-lib.a shows the following:
libiPhone-lib.a: Mach-O universal binary with 2 architectures libiPhone-lib.a (for architecture armv7): current ar archive random library libiPhone-lib.a (for architecture i386): current ar archive random library
I have verified that Keyboard.mm is being compiled and it contains the so called undefined reference.
How can I do to solve this problem?
Thanks.
Linker Error on Xcode6.1.1 Undefined symbols for architecture a