Я пытаюсь использовать службы ввода текста для определения текущей раскладки клавиатуры:
TISInputSourceRef source = TISCopyCurrentKeyboardInputSource(); //Mach-O Linker Error
NSLog(@"languages: %@", TISGetInputSourceProperty(source, kTISPropertyInputSourceLanguages));
NSLog(@"localized name: %@", TISGetInputSourceProperty(source, kTISPropertyLocalizedName));
К какой («современной») углеродной функции я обращаюсь: #import <Carbon/Carbon.h>
Документы: (не говоря уже о x86 и x64) http://developer.apple.com/library/mac/#documentation/TextFonts/Reference/TextInputSourcesReference/Reference/reference.html
Undefined symbols for architecture x86_64:
"_TISCopyCurrentKeyboardInputSource", referenced from:
-[XXXFILE YYYEVENT:] in ZZZPROJECT.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Есть ли причина, по которой я не могу использовать TIS с компилятором x86_64
?