Xcode: ld: framework not found AVFoundation - ios

Can anybody give me some hints on this frustrating problem.
I added WatchKit OS2 to current iOS project in Xcode 7.1.1 and when i emulate the WatchOS and iOS in simulator everything works fine.
But when i try to build it for device i get this error for Watch App Extension:
ld: framework not found AVFoundation
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I googled a lot and can't find a solution to this.

Let me introduce my problem. Hope to give you some inspiration.

Related

Adding Firebase iOS SDK with cocoapads causes library missing error

I added the Firebase iOS SDK with cocoapods and after the integration I tried to run the project and got the library missing error:
ld: library not found for -lGoogleToolboxForMac
clang: error: linker command failed with exit code 1 (use -v to see invocation)
And i found one same stackoverflow question and i tried its answer and that did not work for me.
I am using Xcode 7.3.1 and my project is hybrid project.

building for tvOS, but linking in object file built for iOS, for architecture arm64

I am using LexiContext framework in my tvOS app.
It works fine in simulator when I try to archive the app, I get:
ld: in /Users/Kashif/Dropbox/T+ve/Projects/AooForTv/lexicontext-1.2-1444206402/libLexicontext.a(Lexicontext.o), building for tvOS, but linking in object file built for iOS, for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any idea how to get around this.
For others, facing similar issue; apparently there is no way around this. If you find it, please let me know.

Why is iOS Xcode project giving error for missing OSX framework AVKit?

So my iOS project was working fine, then all of a sudden I am getting the following error when I try to run in simulator:
ld: framework not found AVKit for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
And when I try to archive I get this error:
ld: framework not found AVKit for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
From what I can tell, AVKit is an OSX framework and not an iOS framework.
So why is my project suddenly confused and wanting an OSX framework, and do I convince it that it does not need it?
Well apparently AVKit is available in the iOS 8 SDK so I need to upgrade Xcode to version 6 in order to add it.
See this question: Need help: 'Wrong Architecture' causing app to crash when launching in iOS 7 but works fine in iOS 8
And it should be set as an Optional framework if you want to support iOS 7 and below as well.

Estimote iOs SDK error

I added the Estimote SDK to the project and when I try to run it in a device I have the following error:
ld: framework not found Metal for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
To do it I followed the manual installation from here: https://github.com/Estimote/iOS-SDK
I'm using XCODE 5.1
I hope somebody can help me,
Thanks
The only solution I found after trying a lot of different things was to update to iOS 8

iOS - Can't Build on Device but Simulator on Xcode 4.6

I'm now using Xcode 4.6 but cannot build my app on a device but perfectly working on simulator. It is looking my lbxml2, I already followed the solutions given by other users like adding "${SDK_DIR}/usr/include/libxml2" to Header Search Paths under Build Setting, include in Link Binary With Libraries under Build Phases but still no luck.
Before I switched to Xcode 4.6, it was building on Xcode 4.5. So, I really don't know what is wrong.
Thanks!
EDIT:
I am getting this error:
ld: library not found for -lxml2
clang-real++: error: linker command failed with exit code 1 (use -v to see invocation)
Command /Applications/Xcode 4.6/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ failed with exit code 1
How are you trying to link your library in?
A "-lxml2" line in your build settings?
When I add my dylibs to my project, I usually do it the way you see in my screenshot.
Try this and see if it works for you also:

Resources