external framework File/File.h (Parse/Parse.h) file not found

Joel Derfner picture Joel Derfner · Sep 10, 2014 · Viewed 9.8k times · Source

So every time I update my app, Xcode claims not to be able to find a particular external framework even though it's there. It's happened again with Xcode 6 and my usual methods (I'm fairly inexperienced, so these basically involve clicking and typing things until something happens (I exaggerate but not by much)) aren't working.

I'm getting a Lexical or Preprocessor Issue error that says 'Parse/Parse.h' file not found.' But here are screenshots of it in the project and added to the library:

enter image description here

enter image description here

I also followed the steps in the most upvoted answer at ‘ld: warning: directory not found for option’ but still nothing.

Any idea what to do? Any idea at all? I'm tearing my hair out here.

Answer

Sukhchain picture Sukhchain · Oct 17, 2014

Actually I was facing the same problem but after doing lots of (removing/adding parse framework) efforts I come to know that parse.framework is already added and error was still there.

Real Problem was not in link Binary for main project but it was with Tests link Binary. Lets say your project name is "project1" and Xcode create one more folder with it called "project1Tests". So select "project1Tests" and add parse.framework in link Binary.

Check out the hierarchy:

PROJECT
project1

TARGETS
project1
project1Tests (you need to select this to add parse framework).

Hope this would help you resolve this issue.