0

I have a static library in the project. I have setup header search path correctly to point library directory recursively. Could someone please tell me why is following error while buling project from terminal using xcodebuild?

admin$ xcodebuild install DSTROOT=. INSTALL_PATH=/bin

/Users/admin/iNewsArticle.h:11:9: fatal error: 'XPathQuery/TFHpple.h' file not found
#import <XPathQuery/TFHpple.h>
        ^
1 error generated.

[EDIT]

If you getting this error; see my other related post - iOS: Absolute project path with xcodebuild for solution.

Community
  • 1
  • 1
Paresh Masani
  • 7,474
  • 12
  • 73
  • 139

1 Answers1

1

Have you tried:

#import "XPathQuery/TFHpple.h"

The angle-brackets are used by the system search paths (basically whatever frameworks you have included).... if you have a recursive header search path you may also just be able to use:

#import "TFHpple.h"
Kendall Helmstetter Gelner
  • 74,769
  • 26
  • 128
  • 150
  • Thanks Kendall. I thought same that there is something wrong with angle-brackets and quoted includes but it didn't make any difference. I basically linked each library so angle-brackets works fine without worrying about "Header Search Path" but when I ran this command from terminal, after this error, I tried setting "header search path" and also tried using quoted inclusions but no help. I researched more on compilation messages on XCode and noticed that sub projects also compiled from root project so I ran same command from the root project directory and it worked!! – Paresh Masani May 16 '13 at 08:14