Skip to content

Instantly share code, notes, and snippets.

@soopercorp
Last active October 6, 2015 14:38
Show Gist options
  • Save soopercorp/3008480 to your computer and use it in GitHub Desktop.
Save soopercorp/3008480 to your computer and use it in GitHub Desktop.
linker error
CTCoreMessage *msg = [[CTCoreMessage alloc] init];
CTCoreAddress *from = [[CTCoreAddress alloc] initWithName:@"Hardik Ruparel" email:@"####@gmail.com"];
[msg setTo:[NSSet setWithObject:from]];
[msg setFrom:[NSSet setWithObject:from]];
NSLog(@"%@",[NSSet setWithObject:@"####@gmail.com"]);
[msg setBody:@"Testing Body"];
[msg setSubject:@"dshjksdsd"];
CTCoreAttachment *attachment = [CTCoreAttachment alloc];
[attachment initWithContentsOfFile:@"/Users/hr/test.txt"];
[msg addAttachment:attachment];
[CTSMTPConnection sendMessage:msg server:@"smtp.gmail.com" username:@"##@gmail.com"
password:@"###" port:587 useTLS:YES useAuth:YES];
Ld "/Users/hr/Library/Developer/Xcode/DerivedData/Youcrypt_Mac_alpha-cngnzqotkkwxazalbyblynyzcdmc/Build/Products/Debug/Youcrypt Mac alpha.app/Contents/MacOS/Youcrypt Mac alpha" normal x86_64
cd "/Users/hr/code/easyenc/easyenc/Youcrypt Mac alpha"
setenv MACOSX_DEPLOYMENT_TARGET 10.7
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -L/Users/hr/Library/Developer/Xcode/DerivedData/Youcrypt_Mac_alpha-cngnzqotkkwxazalbyblynyzcdmc/Build/Products/Debug "-L/Users/hr/code/easyenc/easyenc/Youcrypt Mac alpha/libetpan/build-mac/build/Debug" -F/Users/hr/Library/Developer/Xcode/DerivedData/Youcrypt_Mac_alpha-cngnzqotkkwxazalbyblynyzcdmc/Build/Products/Debug "-F/Users/hr/code/easyenc/easyenc/Youcrypt Mac alpha" -filelist "/Users/hr/Library/Developer/Xcode/DerivedData/Youcrypt_Mac_alpha-cngnzqotkkwxazalbyblynyzcdmc/Build/Intermediates/Youcrypt Mac alpha.build/Debug/Youcrypt Mac alpha.build/Objects-normal/x86_64/Youcrypt Mac alpha.LinkFileList" -mmacosx-version-min=10.7 -lz -ObjC -fobjc-arc /Users/hr/Library/Developer/Xcode/DerivedData/Youcrypt_Mac_alpha-cngnzqotkkwxazalbyblynyzcdmc/Build/Products/Debug/RestKit.framework/RestKit -lxml2 -framework QuartzCore -framework SystemConfiguration -framework CoreServices -framework CoreData -framework Security -framework Cocoa -framework Sparkle -framework MailCore -o "/Users/hr/Library/Developer/Xcode/DerivedData/Youcrypt_Mac_alpha-cngnzqotkkwxazalbyblynyzcdmc/Build/Products/Debug/Youcrypt Mac alpha.app/Contents/MacOS/Youcrypt Mac alpha"
ld: warning: directory not found for option '-L/Users/hr/code/easyenc/easyenc/Youcrypt Mac alpha/libetpan/build-mac/build/Debug'
ld: warning: ignoring file /Users/hr/code/easyenc/easyenc/Youcrypt Mac alpha/MailCore.framework/MailCore, file was built for unsupported file format which is not the architecture being linked (x86_64)
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_CTCoreMessage", referenced from:
objc-class-ref in PreferenceController.o
"_OBJC_CLASS_$_CTCoreAddress", referenced from:
objc-class-ref in PreferenceController.o
"_OBJC_CLASS_$_CTCoreAttachment", referenced from:
objc-class-ref in PreferenceController.o
"_OBJC_CLASS_$_CTSMTPConnection", referenced from:
objc-class-ref in PreferenceController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment