Xcode not searching correct subdirectory for headers - ios

I am using Cocoapods for dependency resolution in an iOS project.
The problem I am having is that the compiler is unable to find the correct subdirectory where the headers are located.
See in the image below the directory in which the compiler is searching for the header file:
However, the file is in the subdirectory /Users/Scott/Documents/GitHub/ios-demo/Pods/iOS-KML-Framework/KML. How do I specifically enable that subdirectory to be searched? I have tried suggestions here and here but those did not seem to work.
Any help would be greatly appreciated!

try set Header Search Path or Library Search Path in Building Setting:

Related

Cocoapod path reference error

I have newly added cocoapods into my application, now getting “parser error” while compiling the code in client machine, But the same source code working fine in my system (without any changes).
Please find below error along with screen shot.
../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAccessToken.h
And also i have added this tag ($(inherited) - > non-recursive) into below paths in Target -> Build settings.
Header Search Path,
Framework Search path,
Library Search Path.
i hope this is cocoapods path reference issue, Please any one help me out of this issue.
Note: Have sent file to client as a .zip.
Finally i came up with answer, I have sent source file to client end(other systems) as a .tar.gz format instead of .zip file.
This is solved my issue.Hope it will help for some one in the future.....

FLAnimatedImage_AFNetworking error File not found

I'm trying to use this https://github.com/jagbolanos/FLAnimatedImage_AFNetworking and I'm getting the following error:
AFHTTPRequestOperation.h file not found.
I have tried using AFNetworking and FLAnimatedImage by just dragging the files in and by Cocoapods.
Any solutions? Thanks
AFHTTPRequestOperation.h file not found.
The error occurs because of the path problem. The Xcode is not getting the path of this file.
I was able to solve the same problem with the following code.
Add this to the Library Search Paths in Build Settings and make sure you select recursive, delete other library paths which might be absolute paths.
$(PROJECT_DIR)
May be it will help you.

Unable to find headers in static library

I'd like to add DTCoreText to my project. I followed the instructions (starting at the DTCoreTExt GitHub page) to setup the project using CocoaPods. Finally I've created a "libPod.a" library file.
I've added the library file to my project (by copying the file in to a project sub-folder and added the file to the "Linked Frameworks and Libraries".
Finally I've tried to run the "Smoke test" as defined in the "DTCoreText Programming Guide".
Without success. XCode can't find the DTCoreText.h file (or any other file of this lib).
Have I missed something? Please help! :o)
Did you check the Header Search Paths in the Build Settings to ensure the path is correct?
Thanks to #Michael and #eharo2, you pointed into the right direction.
I wasn't aware that it's necessary to copy ALL header files together with the library file.
Btw. the relevant path is defined in the Build Settings under Search Paths in Library Search Paths

ZXingObjC iOS archive issue: 'ZXingObjC/ZXingObjC.h' file not found Edit

I followed the instructions in the readme file and it worked fine when I ran it as debug config on simulator or device, but when I archived I got this error:
'ZXingObjC/ZXingObjC.h' file not found
I tried to set header search path in build settings as something like ./libs/ZXingObjC-8f83c0b and then got the error
libs/ZXingObjC-8f83c0b/ZXingObjC/ZXingObjC.h:20:9: 'ZXingObjC/ZXAztecDecoder.h' file not found
any idea how to fix it? thanks
add in Header Search Paths
$(SRCROOT)/../..
recursive
I figured it out.
- add "$(BUILD_ROOT)/../IntermediateBuildFilesPath/UninstalledProducts" to header search path
- go to ZXingObjC project's build settings, change public header folder path from $(PROJECT_NAME)Headers to $(PROJECT_NAME)

Xcode - "no such file or directory" for headers

I'm hoping that somebody with some experience of iOS development can help with this issue.
I'm working with PhoneGap and ZXing. I've followed the enclosed readme, as well as these instructions: http://yannickloriot.com/2011/04/how-to-install-zxing-in-xcode-4/
PhoneGap plugin: https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/BarcodeScanner
It seems many others have experienced this problem. When I compile, I get these errors:
ZXingWidgetController.h: No such file or directory
QRCodeReader.h: No such file or directory
In my project -> Build Settings -> Header Search Paths, I have defined:
$(SRCROOT)/zxing/cpp/core/src/
$(SRCROOT)/zxing/iphone/ZXingWidget/Classes (recursive)
I have checked the locations of those folders, and they match what is defined in the header search paths. In the plugins folder, the file "BarcodeScanner.h" has these lines, where the errors are being produced:
#import "ZXingWidgetController.h"
#import "QRCodeReader.h"
Any ideas? I've scoured the Internet and tried just about everything. I'm just about to go insane.
It sounds like it's an old project.
I'd create a new project. The header search paths shouldn't be needed.
Then add all the files in the original project to the new one. (Of course, there may be a few subtleties that being familiar with iOS would make easier.)

Resources