AVFoundation/AVFoundation.h file not found - iphone

When I create an iOS project,and "Build Phases -> Link binary with Libraries", I add the AVFoundation.framework lib and use #import "<AVFoundation/AVFoundation.h>". I get a compilation error:
"AVFoundation/AVFoundation.h file not found".
Here's my code:
#import <UIKit/UIKit.h>
#import "<AVFoundation/AVFoundation.h>"
How can I resolve this?

Use
#import <AVFoundation/AVFoundation.h>
There is only two types of #import statements:
#import <file.h>
and
#import "file.h"
There is no type like : #import "<file.h>" you are making mistake here: #import "<AVFoundation/AVFoundation.h>"
In general the #import "QuartzCore/QuartzCore.h" form is "find my very
own header, if you can't find it look for a system header", and the
form is "find a system header". In theory
the locations are compiler defined and they could be implemented
differently on a given platform, but I haven't run into a C compiler
that does anything different.
Reference: SO

You have extra quotes.
Use
#import <AVFoundation/AVFoundation.h>
not
#import "<AVFoundation/AVFoundation.h>"

please do not use
#import "<AVFoundation/AVFoundation.h>"
use this
#import <AVFoundation/AVFoundation.h>
we can import two type of library
first one is System Library which are developed by Apple developer
are imported as
#import <Library.h>
Second one is Classes implemented by Application developer
like as
#import "Library.h"

Related

toolbar dirty rendering syncfusion documenteditorcontainer

I'm testing documenteditorcontainer from syncfusion. I've followed the start guide but I'm not having the expected rendering.
Here is the rendering
Any help would be appreciated.
Thanks
This issue occurs as DocumentEditor’s dependent component styles are not referred in styles.css file. So, please add below CSS reference in your styles.css file to resolve this issue.
Seems this information is missing in the documentation, we will refresh it.
#import '../node_modules/#syncfusion/ej2-base/styles/material.css';
#import '../node_modules/#syncfusion/ej2-buttons/styles/material.css';
#import '../node_modules/#syncfusion/ej2-inputs/styles/material.css';
#import '../node_modules/#syncfusion/ej2-popups/styles/material.css';
#import '../node_modules/#syncfusion/ej2-lists/styles/material.css';
#import '../node_modules/#syncfusion/ej2-navigations/styles/material.css';
#import '../node_modules/#syncfusion/ej2-splitbuttons/styles/material.css';
#import '../node_modules/#syncfusion/ej2-dropdowns/styles/material.css';
#import '../node_modules/#syncfusion/ej2-angular-documenteditor/styles/material.css';
Note: I work for Syncfusion.

File not found when trying to import a header file into the bridging header?

I'm trying to import my speech recognition framework into my project. Sadly my project is in Swift and speech rec is in objc. I don't see a problem with this. I have created a bridging header file before importing the framework and compiled to make sure it has no errors. Then I dragged the framework into my project. Got a successful compile again. Now I type this in my header file:
#ifndef Bridging_Header_h
#define Bridging_Header_h
#import "SpeechKit/SpeechKit.h"
#endif
And then I get the error: "SpeechKit/SpeechKit.h" file not found
I have tried reimporting the framework. Deleting and making a new header file etc. Nothing seems to work. I don't get why it's not picking up the header files from the framework.
Does anyone have any ideas? All help would be greatly appreciated.
Thank you so much.
Try #import "SpeechKit.h" or #import <SpeechKit/SpeechKit.h> instead #import "SpeechKit/SpeechKit.h"
use #import <SpeechKit/SpeechKit.h> in bridging header and don't forget to place import SpeechKit in your swift file

A library within a project that I would like to use another library

It seems this has been asked before, however I have not found an answer that works for me.
Setup: I am currently creating two static library, that are used in a project. So lets say I have Project, Liba and Libb. Project links to both Liba and Libb, Libb has an import tag for Liba. Project does not directly use Liba, but I have it in the workspace because I have read that we are not supposed to have a library directly link another library. Surprisingly this all works. Where I run into issues is that I want Libb to also use StackMob. For some reason Libb can't find StackMob.h when importing. I have added the Stackmob library to my workspace in a similar way I have for my other libraries.
Here are the relevant code snippets of each class.
Project.h
#import "Libb/Libb.h"
#interface project
{
Libb* _libb;
}
#end
Project.m
#implementation Project
{
_libb = [[Libb alloc] init];
}
#end
Libb.h
#class Liba
#class StackMob
#interface Libb
{
Liba* _liba;
}
#end
Libb.m
#import "Liba/Liba.h"
#import "Stackmob.h" //This is where I get the error. I have also tried "StackMob/StackMob.h"
#implementation Libb
{
//Code here....
}
Thanks for the help. If you need me to clarify, please ask. I realize some of the code I provided is not necessary, but I thought it may help understanding how I have things setup.
Add $(SRCROOT)/../StackMob/Headers to Header Search Paths in build settings to allow the project to find the header files.

Error in facebook integration in ios6?

I working on facebook integration in ios6.I added social,accounts frameworks and import as follows
#import "social /Social.h"
#import "accounts /Accounts.h"
but i got "social /Social.h not found" error.Any idea. Thanks in advance
Try this
#import <Social/Social.h>
Make capital letter as initial when importing iOS frameworks.
Just like this.
#import "Social/Social.h"
#import "Accounts/Accounts.h"

ASIHTTPRequest import issue

I am trying to get up and running with ASIHTTPRequest. I have followed the instructions as per http://allseeing-i.com/ASIHTTPRequest/Setup-instructions, having added the classes to a new group called ASIHTTPRequest and added the binaries. However when I try to add the imports, I get import errors on the .m files:
#import "ASIAuthenticationDialog.h"
#import "ASIAuthenticationDialog.m"
#import "Reachability.h"
#import "Reachability.m"
Any help would be much appreciated, I am new to Objective-C.
You do not import .m files only header files .h