Babul
Babul

Reputation: 1268

How to set Header Search Path according to .h and .m

It is a very basic question, But i did not find solution...

I am trying to import a .h file from the integrated project in to my project. It says SpeechToTextModule.h file not found

I go through these links..

Xcode 4.2 how include one project into another one?

What is Header Search Path in Xcode 4.3? How to use it?

http://iphoneincubator.com/blog/xcode/how-to-add-multiple-static-library-files-with-different-architectures-to-xcode

My project Architecture:

I am trying to import the "SpeechToTextModule.h" in "ViewController.h"

enter image description here

see the above image once .. i selected speechToText.xcodeproj then "show in Finder" then "Get Info" i got following path

/Users/stellent/Documents/Sppech2Text/Speech2ooText/3rd Party

i placed the above path in Header Search Paths

is this correct?

I set my header search paths in both Projects and Targets also, and i tried in both recursive and non-recursive

i given all these links like below image

enter image description here

This is my project structure:

enter image description here

enter image description here

enter image description here

Upvotes: 0

Views: 728

Answers (1)

BhushanVU
BhushanVU

Reputation: 3455

  1. Copy SpeechToText Project and put it inside folder containing Speech2ooText project.

  2. Now Drag and drop this (SpeechToText) project inside Speech2ooText Project.

  3. Go to Build Settings of Speech2ooText--> Header Search Paths and add this path

    ${SRCROOT}/3rd Party

    ${SRCROOT} --> it is the path to your main project (Speech2ooText in your case) and by
    giving '/3rd Party' we are telling headers are inside this folder.

Upvotes: 1

Related Questions