Undefined symbols for architecture x86_64

I'm trying to create an application that sends keystrokes to another process and I keep getting this error:


Undefined symbols for architecture x86_64:

"_keyCodeForKeyString", referenced from:

-[ViewController StartSpam:] in ViewController.o

ld: symbol(s) not found for architecture x86_64

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

Is "keyCodeForKeyString" a function you wrote? This linker error message suggests that the source file defining it is not marked as being part of your app target. Find that source file, and use the File property inspector on the right to check the target membership entry for your app target.

Dear QuinceyMorris, thank you for your answer!

No, It's another function for wifi cam.
I did, clean build, re-build. It doesn't work.
Perhaps something else? :(

P.S.: But! It helps for another mistakes. I had some mistakes like "don't know -class- ..."
Suggestion below worked for me

Many thanks

Find that source file, and use the File property inspector on the right to check the target membership entry for your app target.
Undefined symbols for architecture x86_64
 
 
Q