3

This just started happening with my project and I have no idea what to do.

I've been using the Parse framework and everything has been fine so far. But now, even though the library is included:

enter image description here

and linked:

enter image description here

I still get a "'Parse/Parse.h' file not found" error when I import it into classes. Even weirder (at least to me), the project still builds and runs. When I build or clean the project, the warning disappears, but then it reappears right away.

Any idea how I can fix this?

Joel Derfner
  • 2,207
  • 6
  • 33
  • 45

5 Answers5

6

For all who have not found issue:

  1. Go to Build settings and search for "Framework Search Paths", then remove everything and put ./ and make it recursive (by double-clicking on it)

  2. IMPORTANT - Don't download Parse framework on Windows and then copy to Mac! inside framework there are some links and while copying they get corrupted. Download the framework directly from Mac and when added to xcode make sure it has "Headers" folder under it in XCode frameworks.

I hope it helps some people.

Artin
  • 241
  • 4
  • 9
  • Point 2 tripped me up. Cheers – Ralpharoo May 26 '14 at 07:28
  • 1
    adding one more point to above answer. we have to do that both in project and target settings.. for me adding ./ and making recursive only in target settings dint help, so i had done same thing in project setting as well, this time it worked .. – RockandRoll Feb 18 '15 at 07:47
  • But i dint get why to make it recursive.. what happens when we make it recursive can anyone explain? – RockandRoll Feb 18 '15 at 07:50
  • @RockandRoll If your framework is in the directory I don't think you need it to be recursive, i.e. specifying `path/to/dir` in `Framework Search Paths` and your framework is `path/to/dir/MyCustom.framework`. Choosing `Levels` rather than `Combined` when looking at Build Settings might help clarify what is going on. – neuralmer Aug 01 '17 at 18:46
0

have you tried by changing the #import "Parse/Parse.h" to #import ?

Bharath
  • 314
  • 2
  • 8
0

The compiler will search for the header files in a special search path. In your case, it seems that the file "Parse/Parse.h" is not in your compiler's header file search path. Check this in your compiler settings.

nicky_zs
  • 3,633
  • 1
  • 18
  • 26
0

How many targets do you have? If more than one, maybe the debug target doesn't include the framework.

simalone
  • 2,768
  • 1
  • 15
  • 20
-1

I have the same problem when I use the demo called "TodoTable", and I solve this by deleting the link in target -> Build Phases -> Link Binary With Libraries -> Parse.framework, and then, adding it again. You may do it by clicking + button, and choosing Add other..., then, in the project folder, you can find the Parse.framework file. After that, rebuilding your project, and it will be ok.

aldrin
  • 4,482
  • 1
  • 33
  • 50
ZwEin
  • 124
  • 1
  • 3