getting linker errors symbol(s) not found for architecture i368 - objective-c

I am using iFrameExtractor it get compiled successfully on iphone device but when i am using it on simulator it show following error.
"_av_dict_set", referenced from:
-[VideoFrameExtractor initWithVideo:usesTcp:] in VideoFrameExtractor.o
"_avcodec_open2", referenced from:
-[VideoFrameExtractor initWithVideo:usesTcp:] in VideoFrameExtractor.o
-[VideoFrameExtractor setupAudioDecoder] in VideoFrameExtractor.o
"_avformat_close_input", referenced from:
-[VideoFrameExtractor dealloc] in VideoFrameExtractor.o
"_avformat_find_stream_info", referenced from:
-[VideoFrameExtractor initWithVideo:usesTcp:] in VideoFrameExtractor.o
"_avformat_open_input", referenced from:
-[VideoFrameExtractor initWithVideo:usesTcp:] in VideoFrameExtractor.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
can any one help me out with clear step by step solution. As I am new to ios.
Thank you
Chandra Pr.

looks like its not finding the required ffmpeg libraries, might be because your libs are compiled for device but looks like you are trying to build on simulator.

Related

Stripe + Swift architecture arm64 error

I am trying to integrate Stripe with Xcode using Swift. I installed the podfile for Stripe and imported #import "Stripe.h" to my bridging file. All of other files in the bridge file work fine except Stripe. This is the error that i get when i initialize Stripe.setDefaultPublishableKey(""):
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_Stripe", referenced from:
type metadata accessor for ObjectiveC.Stripe in AppDelegate.o
"_OBJC_CLASS_$_STPPaymentCardTextField", referenced from:
objc-class-ref in STPCheckoutView.o
"_OBJC_CLASS_$_STPAPIClient", referenced from:
objc-class-ref in STPCheckoutView.o
"_OBJC_CLASS_$_STPCard", referenced from:
objc-class-ref in STPCheckoutView.o
"_StripeDomain", referenced from:
-[STPCheckoutView createToken:] in STPCheckoutView.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any help would be much appreciated.

Apple Mach-O Linker Error for arm64

I know there are a few topics on this, but none seem to do the trick;
I'm testing to the device and I get 5 errors, all Apple Mach-O Linker Errors. The code looks likes this;
Any thoughts? I've tried to play around with the Active Architecture but nothing seems to work.
Thank you!
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_ALAssetsLibrary", referenced from:
objc-class-ref in libCordova.a(CDVURLProtocol.o)
"_kUTTagClassMIMEType", referenced from:
___30-[CDVURLProtocol startLoading]_block_invoke in libCordova.a(CDVURLProtocol.o)
"_OBJC_CLASS_$_CLLocation", referenced from:
l_OBJC_$_CATEGORY_CLLocation_$_JSONMethods in libCordova.a(CDVShared.o)
"_UTTypeCopyPreferredTagWithClass", referenced from:
___30-[CDVURLProtocol startLoading]_block_invoke in libCordova.a(CDVURLProtocol.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
By looking at your errors I think you need to import some frameworks , Just try to import following frameworks :
CoreLocation
ALAssetsLibrary
MobileCoreServices.framework

GPUImage issues running on simulator

So I've been trying to get GPUImage library to work in a project, and whilst it works on the device, does not work on simulator. I've tried in Xcode 5, using both Retina and non-retina simulators and get the following error:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_GPUImageBuffer", referenced from:
objc-class-ref in StartViewController.o
"_OBJC_CLASS_$_GPUImageVideoCamera", referenced from:
objc-class-ref in StartViewController.o
"_OBJC_CLASS_$_GPUImageView", referenced from:
objc-class-ref in StartViewController.o
"_OBJC_CLASS_$_GPUImageiOSBlurFilter", referenced from:
objc-class-ref in StartViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
My Build Settings are as follows;
I need for this to run on simulator as well as on device. I have tried making Build Active Architecture Only NO, as well as playing around with Valid Architectures, to have armv7 by itself, armv7 and armv7s, and just armv64, but to no avail.
Any help would be amazing.
Thanks in advance
Build Phases -> Link Binary With Libraries ...then add "GPUImage.framework", "libGPUImage.a"
I just deleted "arm64" from "Valid Architectures" and it works for me now. Maybe it helps.

Apple mach O linker Xcode iOS

Have this Error, plese send me code correct thanks
Loook code debug: http://textsnip.com/3jrghq (copy/pasted code below:)
symbols for architecture arm64:
"_OBJC_CLASS_$_PFUser", referenced from: objc-class-ref in LoginViewController.o
"_OBJC_CLASS_$_PFPush", referenced from: objc-class-ref in ParseExampleAppDelegate.o
"_OBJC_CLASS_$_PFInstallation", referenced from: objc-class-ref in ParseExampleAppDelegate.o
"_OBJC_CLASS_$_PFQuery", referenced from: objc-class-ref in ViewController.o
objc-class-ref in ParseExampleViewController.o
objc-class-ref in Buongiorno.o
objc-class-ref in ParseImageViewController.o
objc-class-ref in Compleanno.o
objc-class-ref in Buonanotte.o
"_OBJC_CLASS_$_Parse", referenced from: objc-class-ref in ParseExampleAppDelegate.o
(maybe you meant: _OBJC_CLASS_$_ParseImageViewController, _OBJC_CLASS_$_ParseExampleViewController , _OBJC_CLASS_$_ParseExampleAppDelegate , _OBJC_CLASS_$_ParseExampleCell )
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Thanks
If can please write code correct
Which version of Parse are you using? arm64 support was not included until v1.2.15 and you are trying to include it in an arm64 binary. I'd update the library version or just run it in the non-64 bit simulator.
Now the framework has been updated. You can have solutions of this warnings.
Just download the latest framework from this Link.
As of 1st Feb 2015, apple will not approve the apps without supporting architecture arm64.
In order to work this for parse, you have to update the framework.
This works for me. Hope it help someone else also.
Thanks...

Objective C Video Player lots of errors

So On the simulator It works all perfect. No errors, nothing
Now I want to put it on my iPod and I get some unknow errors and I dont't know how to fix them.
-I have the MediaPlayer.framework and it is included in my build
Here is the error:
ld: warning: ignoring file /Users/NAME/Desktop/XCode/PROJECT/MediaPlayer.framework/MediaPlayer, file was built for unsupported file format which is not the architecture being linked (armv7)
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_MPMoviePlayerViewController", referenced from:
objc-class-ref in MoviePlayViewController.o
"_MPMoviePlayerDidEnterFullscreenNotification", referenced from:
-[MoviePlayViewController viewDidLoad] in MoviePlayViewController.o
"_MPMoviePlayerWillExitFullscreenNotification", referenced from:
-[MoviePlayViewController viewDidLoad] in MoviePlayViewController.o
"_MPMoviePlayerPlaybackDidFinishNotification", referenced from:
-[MoviePlayViewController viewDidLoad] in MoviePlayViewController.o
"_MPMoviePlayerPlaybackDidFinishReasonUserInfoKey", referenced from:
-[MoviePlayViewController playbackFinished:] in MoviePlayViewController.o
"_MPMoviePlayerWillEnterFullscreenNotification", referenced from:
-[MoviePlayViewController viewDidLoad] in MoviePlayViewController.o
"_MPMoviePlayerDidExitFullscreenNotification", referenced from:
-[MoviePlayViewController viewDidLoad] in MoviePlayViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can anyone tell me what the error means and what I have to check? :)
Thanks
The only thing whcih is understandable for me is: unsupported file format.
It can't find the MediaPlayer.framework I believe is the problem. You need to update your Library Header Search Path in the build settings. It is looking for it on your desktop I believe.
You may need to add it to your target, relink it, or just make sure its pointing in the correct place.