Undefined symbols for architecture x86_64: for libTYCommonLib.a - ios

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.

Related

Undefined symbols for architecture armv7: "_openat", referenced from: _vlc_openat in MobileVLCKit

I want to play online stream use vlc in iOS.
I find this
http://www.videolan.org/vlc/download-ios.html
to do that and can run SimplePlayback source code in simulator.
But when build it for iOS device, I get same error:
ld: warning: directory not found for option '-L"/Users/Data/Projects/B2/Document/VLCKit-2.2.0-rc1/Examples_iOS/SimplePlayback/../../build/Release-iphonesimulator"'
ld: warning: directory not found for option '-L"/Users/Data/Projects/B2/Document/VLCKit-2.2.0-rc1/Examples_iOS/SimplePlayback/../../build/Release-iphonesos"'
ld: warning: directory not found for option '-F/Users/ali/Downloads/build'
Undefined symbols for architecture armv7:
"_openat", referenced from:
_vlc_openat in MobileVLCKit(lt4-filesystem.o)
(maybe you meant: _vlc_openat)
"_fdopendir", referenced from:
_DirRead in MobileVLCKit(libfilesystem_plugin_la-directory.o)
_FileOpen in MobileVLCKit(libfilesystem_plugin_la-file.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can any one help me?
Thanks

compile error during build when initialize an object from static library

I have the following compile error when try to create and initialize an object in Data parser class. The code is
Component *component=[[Component alloc] initWithInputComObjects:inputComObjects withOutputComObjects:outputComObjects];
where initWithInputComObjects:inputComObjects:withOutputComObjects:outputComObjects is a method inside the .m file in the library
ld: warning: directory not found for option '-L/Users/admin/Desktop/KNXComfort/Pods/build/Debug-iphoneos'
ld: warning: ignoring file /Users/admin/Desktop/KNXComfort/KNXComfort/libKNXCommuncationLib.a, missing required architecture i386 in file /Users/admin/Desktop/KNXComfort/KNXComfort/libKNXCommuncationLib.a (3 slices)
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_Channel", referenced from:
objc-class-ref in DataParser.o
"_OBJC_CLASS_$_ComObject", referenced from:
objc-class-ref in DataParser.o
"_OBJC_CLASS_$_Component", referenced from:
objc-class-ref in DataParser.o
"_OBJC_CLASS_$_Device", referenced from:
objc-class-ref in DataParser.o
(maybe you meant: _OBJC_CLASS_$_DevicesCollectionViewController, _OBJC_CLASS_$_DevicesCollectionViewCell )
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Undefined symbols for architecture i386
You are trying to build for the i386 processor but the library you are trying to use wasn't built to support that architecture.
You either need to remove i386 from your build (build for a device) or rebuild the library to include support for i386.

Use pod install MWPhotoBrowser error

when i run my project, Then it will be error like this:
ld: warning: directory not found for option '-L/Users/Andou/Desktop/JobProject/yundoumiao/yundoumiaoRV2/yundoumiaoRV2/Pods/build/Debug-iphoneos'
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_MWPhoto", referenced from:
objc-class-ref in YDMediaManager.o
"_OBJC_CLASS_$_MWPhotoBrowser", referenced from:
objc-class-ref in DetailViewController.o
objc-class-ref in PhotoViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
how can i solve this problem.please tell me. Thanks for help.

Error : Undefined symbols for architecture

I am getting below error. It was working fine and I don't have any idea about what caused this issue.
ld: warning: ignoring file /Users/akashpatel/Developer/iOS_development/FantasyCricket/Fantasy_cricket/Library/JMC/JMCClasses/Libraries/CrashReporter.framework/CrashReporter, missing required architecture arm64 in file /Users/akashpatel/Developer/iOS_development/FantasyCricket/Fantasy_cricket/Library/JMC/JMCClasses/Libraries/CrashReporter.framework/CrashReporter (3 slices)
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_PLCrashReport", referenced from:
objc-class-ref in CrashReporter.o
"_OBJC_CLASS_$_PLCrashReporter", referenced from:
objc-class-ref in CrashReporter.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried removing and adding CrashReporter from and to project.
Select your project, go to Build Settings and have a look at the Architectures. You should delete arm64 from the Architectures and also from Valid Architectures and Build the app again.

ld: warning: ignoring file

I am getting below warning
ld: warning: ignoring file [path]/libMAKit.a, missing required architecture i386 in file Undefined symbols for architecture i386:
"_OBJC_CLASS_$_MAViewController", referenced from: _OBJC_CLASS_$_AnalysisViewController in AnalysisViewController.o
"_OBJC_CLASS_$_MAChartView", referenced from: objc-class-ref in AnalysisViewController.o
"_OBJC_CLASS_$_MAKitTheme_WelterWeightDark", referenced from: objc-class-ref in AnalysisViewController.o
"_OBJC_METACLASS_$_MAViewController", referenced from: _OBJC_METACLASS_$_AnalysisViewController in AnalysisViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Looks like libMAKit.a not have simulator (i386) architecture, if you have source you can rebuild it but frequently third party libs ships without i386 architecture and can be usable only on real device
Try to find some missing files (red letters) like images. We spend most of one day just to figure it out that I didn't had all the images locally. (Sorry if it's bad english)

Resources