Search code examples
xcodecommand-linecompiler-errorsstatic-librariesxcodebuild

iOS: Building project from terminal using xcodebuild


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.


Solution

  • 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"