error on build for ios device....
ld: warning: ignoring file /Users/andre/Downloads/UnittWebSocketClient/bin/Debug-iphonesimulator/libUnittWebSocketClient.a, file was built for archive which is not the architecture being linked (armv7): /Users/andre/Downloads/UnittWebSocketClient/bin/Debug-iphonesimulator/libUnittWebSocketClient.a
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_WebSocket", referenced from:
objc-class-ref in ViewController.o
"_OBJC_CLASS_$_WebSocketConnectConfig", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
this is my answer.
checkout from this url : https://code.google.com/p/unitt/source/checkout
include [unitt\iOS\UnittWebSocketClient\trunk\UnittWebSocketClient] into your Project. (.h, .m)
remove libUnittWebSocketClient.a lib file from your Project.
Related
I am trying to compile a simple project (program main.m and a library TTTdictionary.m), but it gives me this error:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_NSString", referenced from:
objc-class-ref in main-dba0a1.o
"_OBJC_CLASS_$_TTTDictionary", referenced from:
objc-class-ref in main-dba0a1.o
"_objc_autoreleasePoolPop", referenced from:
_main in main-dba0a1.o
"_objc_autoreleasePoolPush", referenced from:
_main in main-dba0a1.o
"_objc_enumerationMutation", referenced from:
_GetActiveDictionaryNames in main-dba0a1.o
_main in main-dba0a1.o
"_objc_msgSend", referenced from:
_GetDictionaryNameFromBundlePath in main-dba0a1.o
_GetActiveDictionaryNames in main-dba0a1.o
_main in main-dba0a1.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Similar error message appears when I try to compile main.m file in ./example/ folder. I put them in the same folder and I have symbol(s) not found for architecture x86_64 error again.
What am I doing wrong? The command in Terminal is clang -framework CoreServices main.m -o main.
It is not finding "main", which means it does not know you are compiling a library rather than an executable. Add -dynamiclib to your clang options and you fix that one.
Those other missing functions are undocumented CoreServices functions. Add -framework CoreServices to fix these.
Then you have only warnings. :)
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_EntityImage", referenced from:
objc-class-ref in JSONParser.o
"_OBJC_CLASS_$_clsCommonEntity", referenced from:
objc-class-ref in JSONParser.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I followed the instruction to instal JSONModel to my project. However, I am having an issue with Apple Mach - O Linker Error.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_NSEntityDescription", referenced from:
objc-class-ref in JSONModel+CoreData.o
"_OBJC_CLASS_$_NSManagedObject", referenced from:
l_OBJC_$_CATEGORY_NSManagedObject_$_JSONModel in JSONModel+CoreData.o
objc-class-ref in JSONModel+CoreData.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I added SystemConfiguration.framework as well.
Please help me. Thank you.
Add CoreData.framework to your target.
When I build in Xcode 5 for IOS7 I get this error:
Undefined symbols for architecture armv7s:
"_OBJC_CLASS_$_CIFilter", referenced from:
objc-class-ref in UIImage+Filter.o
"_kCIInputImageKey", referenced from:
-[UIImage(Filter) filterWithPreset:] in UIImage+Filter.o
"_OBJC_CLASS_$_CIImage", referenced from:
objc-class-ref in UIImage+Filter.o
"_OBJC_CLASS_$_CIContext", referenced from:
objc-class-ref in UIImage+Filter.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I notice that the error goes away if I remove the UIImage+Filter.h/m file and UIImageView+Filter.h/m
Easy... Make sure you import CoreImage framework
I work with the this tutorial: http://sonnyparlin.com/2011/12/pulltorefresh-ios-5-and-arc-tutorial/
I dont get an error in the code just two things:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_PullToRefreshView", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I add the QuartzCore framework but it dont help. what I need to do?
thanks :)
You should add the PullTorefresh.m to your project too, not just the .h.