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
Related
ld: warning: ignoring file /Users/CNS/Downloads/Demo Source Code 2/iOS/TYCommonLic_Demo/TYCommonLic_Demo/libTYCommonLib.a, missing required architecture x86_64 in file /Users/CNS/Downloads/Demo Source Code 2/iOS/TYCommonLic_Demo/TYCommonLic_Demo/libTYCommonLib.a (2 slices)
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_SalesSlipModel", referenced from:
objc-class-ref in ViewController.o
"_OBJC_CLASS_$_TYSwiperController", referenced from:
objc-class-ref 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)
getting this error. please help how to resolve it?
You need to link m file :
Finally found the answer. In your target settings, locate build phases and navigate to compile sources. Once there just ad the .m file that is getting the error to the list.
I want to create a custom framework but also want to add card.io framework into my custom framework. So, anyone have an idea to create this in proper way. If yes then please provide me any idea or demo if possible.Currently I facing below error at the build time.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_CardIOPaymentViewController", referenced from:
objc-class-ref in ViewController.o
"_OBJC_CLASS_$_CardIOUtilities", referenced from:
objc-class-ref 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)
I am using RNCryptor from here. but cannot seem to get my app to compile correctly. I get the following errors in the log:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_RNDecryptor", referenced from:
objc-class-ref in EncryptionTransformer.o
"_OBJC_CLASS_$_RNEncryptor", referenced from:
objc-class-ref in EncryptionTransformer.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can anyone tell me whats wrong here?
I would guess you built RNCryptor for ARM but you're building your application to run on the Simulator (i386).
Following the instructions here: http://hoishing.wordpress.com/2011/08/23/gdata-objective-c-client-setup-in-xcode-4/
I added GData to my iOS 5 project. When it's time to archive the project I get the following error:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_GDataServiceGoogleYouTube", referenced from:
objc-class-ref in DataManager.o
"_OBJC_CLASS_$_GDataEntryYouTubeVideo", referenced from:
objc-class-ref in DataManager.o
objc-class-ref in ListController.o
objc-class-ref in ShareController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've checked the build settings for the GData.xcodeproj -> GDataTouchStaticLib, and this is what I set them to as seen by this pic: )
Any help is appreciated, to help get my project archived.
You haven't linked the libraries properly. Make sure you follow the directions carefully when it comes to adding the library paths. See Undefined symbols for architecture armv7 for more information.
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.