2

I am trying to check out Nocilla but I can't seem to get my test target to build when I include it. I cloned the Nocilla repo and built the static lib (targeting simulator) from source. I am linking the nocilla static lib to my test target.

I have all of Nocilla's public headers included in my project but for some reason Xcode complains that it cannot find headers which are located in the same relative location from which they are being referenced.

Trying to run my tests results in the following compilation error:

'LSHTTPRequest' file not found

Nocilla provides installation instructions which include using CocoaPods. I am not interested in using CocoaPods. Does anyone have any clues for me as to why my tests cannot find these header files? Am I missing a build step to ensure they are copied to the test execution location?

Thanks!!

enter image description here

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Nick
  • 19,198
  • 51
  • 185
  • 312

1 Answers1

0

You must set the User Header Search Paths for the project that wants to include the static library headers:

enter image description here

The exact location of the header files will vary on the relative location between the two projects of course.

trojanfoe
  • 120,358
  • 21
  • 212
  • 242