Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Undefined symbols for architecture x86_64 problem #4

TomLiu opened this Issue Apr 26, 2012 · 2 comments


None yet
3 participants

TomLiu commented Apr 26, 2012

Hi, thank your for your code. When I tried to use your code, I met the a problem after I add the file to my project. Do you have idea how to slove this? Thank you a lot. the error info is

"Undefined symbols for architecture x86_64:
"_kSMDomainUserLaunchd", referenced from:
-[StartAtLoginController startAtLogin] in StartAtLoginController.o
"_SMCopyAllJobDictionaries", referenced from:
-[StartAtLoginController startAtLogin] in StartAtLoginController.o
"_SMLoginItemSetEnabled", referenced from:
-[StartAtLoginController setStartAtLogin:] in StartAtLoginController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)"


alexzielenski commented Apr 26, 2012

You need to link the ServiceManagement framework in your target.

Same error here after upgrading to Xcode 4.5, but I indeed have ServiceManagement in my target.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment