Cannot figure out why it is failing to build - swift

when trying to build my app it keeps failing due to this error.
Does anyone know how to perhaps fix this?
Thank you,
Nick
Undefined symbols for architecture x86_64:
"___isOSVersionAtLeast", referenced from:
-[AbstractActionSheetPicker createToolbarLabelWithTitle:titleTextAttributes:andAttributedTitle:] in AbstractActionSheetPicker.o
-[AbstractActionSheetPicker configureAndPresentPopoverForView:] in AbstractActionSheetPicker.o
-[SWActionSheet window] in SWActionSheet.o
-[SWActionSheet initWithView:windowLevel:] in SWActionSheet.o
ld: symbol(s) not found for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)

Related

How to fix "undefined symbols" for compiling mplayer

When I try to compile mplayer on MacOS (12.4) I get an error
Undefined symbols for architecture x86_64:
"_x264_encoder_open_163", referenced from:
_X264_init in libavcodec.a(libx264.o)
Undefined symbols for architecture x86_64:
"_x264_encoder_open_163", referenced from:
_X264_init in libavcodec.a(libx264.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [mencoder] Error 1
make: *** Waiting for unfinished jobs....
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [mplayer] Error 1
Any ideas how to fix this?
The issue seem to have been with the x264 library.
And for some reasons a first reinstall of x264 did not work. But when (after some other attempts to install what is missing) I did again
brew reinstall x264
something was compiled. But then I did run the following three commands in exactly this order:
./configure
make clean
make
And to my total surprise it did compile finally mplayer. And it works (and fixes a bug only I seem to have).

Trying to implement sharekit getting errors

Hello I am new to iphone development. I'm trying to implement share kit and am getting this error
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SSReadingList", referenced from:
objc-class-ref in libShareKit.a(SHKReadingList.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
dont know what to do i tried using https://github.com/ShareKit/ShareKit/wiki/Installing-sharekit this link and all the steps are done still what is this error about have no clue about

Ar metio build error

When I'm trying to run the project i receive the following errors
Here is the log.
Undefined symbols for architecture armv7: __ZN6metaio40getScreenRotationForInterfaceOrientationE22UIInterfaceOrientation", referenced from: -[MetaioSDKViewController viewDidLoad] in MetaioSDKViewController.o -[MetaioSDKViewController willAnimateRotationToInterfaceOrientation:duration:] in MetaioSDKViewController.o -[ARELViewController willAnimateRotationToInterfaceOrientation:duration:] in ARELViewController.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Does any one knows what the reason might be.
This project has bind with the Metio . AR framework.
Thanks
Click on your Project and go to Build Settings and change the value of Build Active Architecture only to yes.
Let me know if it solves the error:)

Getting "_OBJC_CLASS_$_NgnEngine" error after linking iOS fat library

Why i am still getting this error even after linking fat library
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_NgnEngine", 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)
and linking everything in "User-Defined
I am following the instruction which written here Link ios-ngn-stak to your app
any help please, this is tiring me and it is my senior project
please refer this two link for getting solution if your issue:-
Error : "_OBJC_CLASS_$_NgnEngine"
Xcode with iOS - Creating a library in a way that is easy to run in debug mode, distribute, iterate

Undefined symbols for architecture i386: "_PerformXMLXPathQuery"

I looked at all the others that had a similar title but none of those solutions worked for some reason... Hoping someone can help!
Undefined symbols for architecture i386:
"_PerformXMLXPathQuery", referenced from:
-[WeatherForecast connectionDidFinishLoading:] in WeatherForecast.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
"_PerformXMLXPathQuery", referenced from:
-[WeatherForecast connectionDidFinishLoading:] in WeatherForecast.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am new to iOS so any help would be greatly appreciated!!
Seems like you are compiling for the simulator (i386) with a library for the Device (ARM). Either compile for the device and run on it or get an i386 version of the library and run with it on the simulator.
For those who need it, the issue was that my XPathQuery.m file was not in the Complied Sources list. It was as simple as that!
Just posting this for future reference! Hope it helps someone!