I am getting an error stating the following and tried many modifications with my current coding with no solution. Please let me know what I must proceed to do, much appreciated.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_ViewController", referenced from:
objc-class-ref in AppDelegate.o
objc-class-ref in HomeController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Check in HomeViewController is defined properly in HomeviewController interface and implementation file(check spelling too) and Homeviewcontroller.m is added in Target...and also same for App delegate
Make sure the class named "ViewController" is added to your target and being compiled.
Related
I've created a coreML model, that when I try to use in my Objective-C project gives me the following error:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_MLFeatureValue", referenced from:
objc-class-ref in logistic_model_8000.o
"_OBJC_CLASS_$_MLModel", referenced from:
objc-class-ref in logistic_model_8000.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
PS: I am not sure about other details that I can add to the question that may help in answering it. If you need more details, please put it in comments.
"Link Binary With Library"
ADD:
CoreML.framework
I am trying to use AVRoutePickerView in my app but when I build the project I am getting linking error:
Undefined symbols for architecture arm64:
"_OBJC_METACLASS_$_AVRoutePickerView", referenced from:
_OBJC_METACLASS_$_PttVolumeView in PttVolumeView.o
"_OBJC_CLASS_$_AVRoutePickerView", referenced from:
objc-class-ref in SettingsVolumeCell.o
_OBJC_CLASS_$_PttVolumeView in PttVolumeView.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
This is AVKit library. I don't understand why I am getting it?
Can someone help?
Thanks in advance and regards
I have finally found solution,
Just adding AVKit framework to Embedded and Linked libraries in
project settings
I'm trying to the Xcode Tutorial on a iOS ToDoApp. I've done all the steps and certainly I've got compile errors.
I've searched around and I've seen that I'm not the only one with this problem, and I have tried peoples solutions but with no success.
This is my error message:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_ToDoItem", referenced from:
objc-class-ref in ToDoListTableViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
It seems you are missing ToDoItem.m (or better said the #implementation ToDoItem) in your project. Either it's not there at all or the file is not included in the build target.
Try to search #implementation ToDoItem in your project. If it's missing, you have to add it. If it's not missing, make sure that the file is added to the target you are trying to build.
i have a try to run the application and application give me this error
if anyone know that then please provide solution
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_FBSBJSON", referenced from:
objc-class-ref in AppController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
There are some possible things due to which this error may come:
while adding the SBJSON you might not be checked that copy option .
or go to compiled sources and see your .m file is specified there or not .
I have an error like this
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_ViewController", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How can you solve this problem? Please help me.
Find the file ViewController.m in your project and select it.
Use the properties inspector (Apple-Option-1) to ensure that it's added to your target membership whatever that target may be. It will need have a tick next to the target.