Hi in my Xcode project I included libxml2.dylib framework. I am still getting a error:
libxml2/tree.h not found.
How to resolve this issue?
I didn't give any search header paths. I am using Xcode 4.2
In my own projects that use libxml2, I modified the Header Search paths to explicitly tell the compiler where to find the header files:
As you can tell from the "$(SDKROOT)" bit, it's actually built into the SDK that gets installed with Xcode.
change the Header Search Paths to this:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/usr/include/libxml2
you are welcome :)
Read this documents.........i think this url is helpful for you....
see this topic in this url Setting up your project file
if you did not know header search path in Xcode , then follow step
go to target->click on BUild Setting-> search heder in search bar -> then you see search Path -> and check header search path
you go in Build Phase "Link with binary Libarys" and add libxml2 frame work
You follow all step after use step then click all tab (not combined tab)
I have similar issue and fix issue by following steps as per this article :
http://www.optimusmobility.com/2013/06/11/how-to-resolve-libxmltree-h-file-not-found-error/
Related
I have been over all the earlier posts, questions and answers - most of which advise to update the Build Settings and Header Search Paths. I have followed all this advice with no resolution.
My header search path is set to the below folders:
$(TARGET_BUILD_DIR)/usr/local/lib/include
$(OBJROOT)/UninstalledProducts/include
$(BUILT_PRODUCTS_DIR)
$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include
I have also now updated my Cordova version and am using 5.5 and a platform ios version of 3.9.2 - this update made no difference.
My Preference -> Locations -> Advanced Build Location is already Unique.
Please help. What am I missing?
For xcode7 add "$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include" to your Header Search Paths.
I realised that I had put the changed Header Search Path from the other helpful answers into the actual line that says 'Header Search Paths' <Multiple Values> so that the new string applied to both the Debug and Release items. The additional path should only be added to the Release line. And the <Multiple Values> should therefore be left blank. The Debug line shouldn't be changed.
I'm using the Parse and PubNub SDK in my project called My Sample App and since I updated my Xcode to 6.3.1 I can't run the project because Xcode doesn't find the header files. I had the same issue with the previous version, but then I just needed to delete and add them again to make it work, unfortunately it doesn't work now. I also tried to delete the Library Search Path and Framework Search Path without any success. Is there any trick that fixes this issue?
This is the exact error:
'PNImports.h' file not found
Add $(PROJECT_DIR) to your Library Search Path in project settings AND select recursive option
Surround Library Search Path with single quotes
I get the error
GooglePlus/GooglePlus.h file not found
when I try to build the project. I just added the Google Plus framework into the project, and after that, I tried to import the framework in the app delegate.m file, but I’m just getting this error.
Drag and Drop the google-plus-ios-sdk-1.7.1 folder into Framework search path in Build Settings.
Its works fine for me.
I had the same problem, under "Build Settings > Search Path > Framework Search Paths" i had
$(inherited) non-recursive
$(PROJECT_DIR)/My non-recursive
Project/Frameworks non-recursive
i think spaces are breaking the directory path
changing it to $(PROJECT_DIR)/"My Project"/Frameworks solved my problem..
Take note that My Project is my project name, Frameworks is where my GooglePlus.bundle & .framework, in case yours contains spaces, adding quotation marks corrects it.. for example: $(PROJECT_DIR)/"My Project"/"Google Frameworks".
I think you have to remove current framework and bundle for Google plus and then download the latest one framework for Google plus from https://developers.google.com/+/mobile/ios/sdk/google-plus-ios-sdk-1.5.1.zip & add them from project's Build_Settings>Build_Phases.
This way i have solved my problem, may be u too can get it.
Thanks
K.D
I had the same problem and what got it fixed was removing the spaces from the names of parent folder(s) of the framework. With spaces in the names of parent folder(s), Xcode will show multiple directories in "Framework Search Paths".
And sorry, I could not add it as a comment as I don't have enough reputation.
One thing which I was missing adding
-ObjC in linker flag , but it did not removed the error.
Then I removed #import <GooglePlus/GooglePlus.h> from .pch file and added into my ViewController.h. It worked.
I had modified the path of Build Settings->Search Paths->Framework Search Paths to $(PROJECT_DIR)/yourProject/3rdParty/"Google API".
Here, it's important to add the quoter mark. If you miss the mark, then Xcode will know as $(PROJECT_DIR)/yourProject/3rdParty/"Google" and API.
Drug&Drop needed framework from Pods/Frameworks of your workspace to YourProject/Frameworks and select "Directory reference"
This just started happening with my project and I have no idea what to do.
I've been using the Parse framework and everything has been fine so far. But now, even though the library is included:
and linked:
I still get a "'Parse/Parse.h' file not found" error when I import it into classes. Even weirder (at least to me), the project still builds and runs. When I build or clean the project, the warning disappears, but then it reappears right away.
Any idea how I can fix this?
For all who have not found issue:
Go to Build settings and search for "Framework Search Paths", then remove everything and put ./ and make it recursive (by double-clicking on it)
IMPORTANT - Don't download Parse framework on Windows and then copy to Mac! inside framework there are some links and while copying they get corrupted. Download the framework directly from Mac and when added to xcode make sure it has "Headers" folder under it in XCode frameworks.
I hope it helps some people.
have you tried by changing the #import "Parse/Parse.h" to #import ?
The compiler will search for the header files in a special search path. In your case, it seems that the file "Parse/Parse.h" is not in your compiler's header file search path. Check this in your compiler settings.
How many targets do you have? If more than one, maybe the debug target doesn't include the framework.
I have the same problem when I use the demo called "TodoTable", and I solve this by deleting the link in target -> Build Phases -> Link Binary With Libraries -> Parse.framework, and then, adding it again. You may do it by clicking + button, and choosing Add other..., then, in the project folder, you can find the Parse.framework file. After that, rebuilding your project, and it will be ok.
in the last 4 hours I try to add Three20 to my iOS poject.
I try to avoid it a long time but now I am on a point in which i can't :)
So I added it correctly all to my projects and after around 2 hours of work it compile perfectly!!!
Badly, I got a "No such file or directory found"-error when try to
#import "Three20/Three20.h"
I try nearly every string in the "Header search paths" I can imagine to get this working, but I have no idea...
here is a screenshot of my directory listing:
http://i.stack.imgur.com/9yWjM.png
here is my Header search paths:
http://i.stack.imgur.com/uXEWP.png
What am I doing wrong?
Have you tried to add the three20 framework manually or using the included ttmodule.py script? The script usually takes care of everything. You can either import the framework into an old xcode3 or current xcode4 based project. The python script is located in src/scripts/
Short answer: everything. Three20 has a very clear documentation. Just follow the Adding Three20 to your project section from https://github.com/facebook/three20
At least for Xcode 4.2 and 4.3, you should do a previous step before you click on Product->Archive. This step is clicking on: Product -> Build for -> Build for archiving.
In USER_HEADER_SEARCH_PATHS in Build Setting under the Search Paths section add this:
$(BUILT_PRODUCTS_DIR)/../../three20
$(BUILT_PRODUCTS_DIR)/../three20